LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-19-2021, 06:11 PM   #1
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Rep: Reputation: 114Reputation: 114
top and htop


I'm having a problem with top and htop. I "think" top used to show more processes on the screen at one time than it does now. Htop doesn't show any processes at all. Any one else having this problem? I haven't used either programs for quite some time so I don't know when this started.

Looks like htop was upgraded on October 15th according to the ChangeLog.

Last edited by NakedRider; 10-19-2021 at 06:14 PM. Reason: reviewed changelog
 
Old 10-20-2021, 12:40 AM   #2
Mechanikx
Member
 
Registered: Jul 2018
Distribution: Slackware
Posts: 352

Rep: Reputation: 259Reputation: 259Reputation: 259
Both most recent versions are working fine for me. Try checking the display options in htop with F2.
 
Old 10-20-2021, 11:09 AM   #3
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Mechanikx View Post
Both most recent versions are working fine for me. Try checking the display options in htop with F2.
Thank you. I did that and it shows "F1 F2 F then in green Display Options". Can't get anything to work after that.
 
Old 10-20-2021, 04:49 PM   #4
SW64
Member
 
Registered: May 2014
Distribution: Slackware
Posts: 262

Rep: Reputation: 123Reputation: 123
Some suggestions:

Try logging into other terminals at ctl-shift-F2, ctl-shift-F3, etc. Ctl-shift-F1 to get back. Exit your desktop environment if you're in one (KDE, xfce, etc) to terminal. Or don't start startx and try it in the terminal. Log into other accounts and try there. Especially the root account.

Failing all that, try reinstall those two programs. This link is for 64 current.

https://mirrors.slackware.com/slackw...t/slackware64/

htop is in AP. I'm not sure where top is.
 
Old 10-20-2021, 06:09 PM   #5
ethelack
Member
 
Registered: Mar 2021
Location: New Zealand
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
Quote:
Originally Posted by SW64 View Post
...htop is in AP. I'm not sure where top is.
top and other process utilities such as pidof,pkill,pstree,uptime,vmstat are bundled in the series a/procps-ng package

The config files are ~/.toprc and ~/.config/htop/htoprc NakedRider could try deleting or renaming them to get the progs to start with the default settings.

Last edited by ethelack; 10-20-2021 at 06:24 PM.
 
1 members found this post helpful.
Old 10-21-2021, 02:03 PM   #6
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by ethelack View Post
top and other process utilities such as pidof,pkill,pstree,uptime,vmstat are bundled in the series a/procps-ng package

The config files are ~/.toprc and ~/.config/htop/htoprc NakedRider could try deleting or renaming them to get the progs to start with the default settings.
Thank you. I did that and it still didn't work.
 
Old 10-21-2021, 05:33 PM   #7
ethelack
Member
 
Registered: Mar 2021
Location: New Zealand
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
do other commands such as 'ps -Ao user,uid,comm,pid,pcpu --sort=-pcpu' and 'pstree' provide a process list?
 
Old 10-22-2021, 01:00 AM   #8
rajiverana
LQ Newbie
 
Registered: Oct 2021
Location: India Noida
Distribution: yes
Posts: 1

Rep: Reputation: Disabled
Discussion of Slackware Linux

Yes, you are right I am also having the same problem.

Last edited by rajiverana; 10-22-2021 at 01:38 AM.
 
Old 10-22-2021, 01:23 AM   #9
hish2021
Member
 
Registered: Jan 2021
Posts: 117

Rep: Reputation: Disabled
spammer reported: rajiverana
 
Old 10-22-2021, 03:57 AM   #10
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,987

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by hish2021 View Post
spammer reported: rajiverana
 
Old 10-22-2021, 10:57 AM   #11
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by ethelack View Post
do other commands such as 'ps -Ao user,uid,comm,pid,pcpu --sort=-pcpu' and 'pstree' provide a process list?
Thank you those both work.
 
Old 10-22-2021, 11:04 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
The post was edited and the spam content removed by rajiverana.
 
Old 10-22-2021, 11:10 AM   #13
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by SW64 View Post
Some suggestions:

Try logging into other terminals at ctl-shift-F2, ctl-shift-F3, etc. Ctl-shift-F1 to get back. Exit your desktop environment if you're in one (KDE, xfce, etc) to terminal. Or don't start startx and try it in the terminal. Log into other accounts and try there. Especially the root account.

Failing all that, try reinstall those two programs. This link is for 64 current.

https://mirrors.slackware.com/slackw...t/slackware64/

htop is in AP. I'm not sure where top is.
Thank you. Now we're getting somewhere. I exited KDE and ran htop from the terminal and it works fine. I also reinstalled the htop package but it didn't change anything. Not sure were to go from here. Thanks again for the replies.
 
Old 10-22-2021, 02:20 PM   #14
SW64
Member
 
Registered: May 2014
Distribution: Slackware
Posts: 262

Rep: Reputation: 123Reputation: 123
Quote:
Originally Posted by NakedRider View Post
I exited KDE and ran htop from the terminal and it works fine.
I gave you a bunch to see where it trip up. Many programs typically store config/data in the user account's home folder and each one of these terminals call up their configurations from different locations. Based on what you've reported thus far, the cause of your issue may lies somewhere in this particular KDE terminal emulator's configuration file. There are a few terminal emulators in Slackware so you'd need to tell us which one you're using that top/htop didn't worked in. Configuring/repairing terminals is not a strong suit of mine so I'll bow out here.
 
Old 10-22-2021, 03:33 PM   #15
NakedRider
Member
 
Registered: Nov 2008
Location: Sacramento, CA
Distribution: Slackware and only Slackware
Posts: 194

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by SW64 View Post
I gave you a bunch to see where it trip up. Many programs typically store config/data in the user account's home folder and each one of these terminals call up their configurations from different locations. Based on what you've reported thus far, the cause of your issue may lies somewhere in this particular KDE terminal emulator's configuration file. There are a few terminal emulators in Slackware so you'd need to tell us which one you're using that top/htop didn't worked in. Configuring/repairing terminals is not a strong suit of mine so I'll bow out here.
You nailed it. I'm using konsole. When I opened up an xterm console everything worked. So I opened up a new konsole and it worked. I changed profiles and used a new one. Everything now works. Not sure what was in the original profile but some there must have been the problem.
Thanks for your help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning a button for top or htop. indiajoe Linux - General 3 03-11-2012 06:00 AM
free, top and htop show different memory usage wulp Linux - General 2 07-13-2011 12:22 AM
Htop vs 'top' vs 'free' disparity schachwizard Ubuntu 2 09-22-2010 04:33 PM
Looking for direction with reagarding a top/htop like app energyAlchemist Programming 3 09-22-2009 08:39 PM
LXer: Htop, a tip-top ncurses interactive tool for system monitoring your desktop LXer Syndicated Linux News 0 03-26-2009 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration