Operating System - Linux
1828346 Members
3205 Online
109976 Solutions
New Discussion

Re: process appears in top command but not in ps

 
kenny chia
Regular Advisor

process appears in top command but not in ps

Hi
I am checking the hpsmh process in my server.
When I run the top command, it displays the following process (see below). As you can see there are many hpsmh processes

10:30:58 up 309 days, 20:25, 2 users, load average: 1.06, 1.19, 1.07
132 processes: 129 sleeping, 3 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 50.0% 0.0% 0.6% 0.0% 0.0% 0.9% 48.3%
cpu00 15.6% 0.0% 1.1% 0.0% 0.0% 0.5% 82.5%
cpu01 84.3% 0.0% 0.1% 0.0% 0.0% 1.3% 14.1%
Mem: 3082428k av, 2964060k used, 118368k free, 0k shrd, 111888k buff
2246068k actv, 468320k in_d, 52504k in_c
Swap: 2048136k av, 0k used, 2048136k free 2690620k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
30961 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30963 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30964 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30965 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30966 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30967 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30968 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30969 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30970 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30971 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30972 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30973 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30974 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30975 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30976 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30977 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30978 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30979 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30980 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30981 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30982 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30983 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30984 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30985 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30986 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30987 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd
30988 hpsmh 25 0 6740 6740 3316 S 0.0 0.2 0:00 1 hpsmhd


But when I run ps -ef it only displays the following few hpsmh process (please see attachment). Why is this so?


All Your Bases Are Belong To Us!
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: process appears in top command but not in ps

Shalom,

They are starting and not closing and cleaning up nicely.

You probably need a new version of hpsmh and a schedules system boot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
JBR
Frequent Advisor

Re: process appears in top command but not in ps

Try to put off threads in top command using "H" .....

Best Regards
Van den Broeck Tijl
Valued Contributor

Re: process appears in top command but not in ps

Please listen to Steven's remark.

As for "top", macero is right, it as to do with threading.
If you want a decent visualisation of your threading trees I suggest installing "htop". It adds extra features over the normal top and you can use kill commands from within it which is quiet useful.
kenny chia
Regular Advisor

Re: process appears in top command but not in ps

I understand now, so top command is showing threads which the ps command does not.
All Your Bases Are Belong To Us!