- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Dumb question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 04:17 AM
03-15-2004 04:17 AM
How is possible to have more processes in running state than the number of CPU ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 04:19 AM
03-15-2004 04:19 AM
SolutionNo in any instant of time but most measurements are taken over a period of time, even if it's just one second. In that second, several processes might run.
To give exact answers, I guess, it would be interesting to know just how you are determining that a process is running.
Not such a dumb question though :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 04:22 AM
03-15-2004 04:22 AM
Re: Dumb question
Your processor time slices many times a second. Running is a state that many processes can be in. The other states are for processes that for example may be awaiting input or child processes to finish.
The only dumb question btw is the one not asked.
It was a very good question in my opinion.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 04:31 AM
03-15-2004 04:31 AM
Re: Dumb question
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 04:32 AM
03-15-2004 04:32 AM
Re: Dumb question
- Active (running)
- Waiting for a resource (IO, ...)
- Sleeping (one may say that you're in a sleeping state when waiting for a resource. My understanding is sleeping is from your own will ;-) - the process put itself to sleep whereas waiting for an IO the process has no choice !)
from the man ps you have :
state The state of the process:
0 Nonexistent
S Sleeping
W Waiting
R Running
I Intermediate
Z Terminated
T Stopped
X Growing
Therefore on a 4 cpus system only 4 processes can really be active at any one time.
Now, perf tools may give results for a certain amount of time - that you can adjust.
Regards,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 04:34 AM
03-15-2004 04:34 AM
Re: Dumb question
I was just look at top.
I've tryed to get similar output from ps this way :
while :
do
ps -efo s | grep R | wc -l
sleep 3
done
The issue is the reliability of the measurement tool ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 04:41 AM
03-15-2004 04:41 AM
Re: Dumb question
Not really the reliability as such but whilst your measuring tool, e.g. "ps" or "top" is getting cpu time then the processes you are monitoring can not, because in reality, two processes can't be on the CPU at any instant in time. Therefore an average is the best you can hope for.
Furthermore, the process table is actually changing whilst "ps" is working so it can't possibly be accurate. The "man" page for "ps" used to say something to this effect and added something like "but nothing about ps is reliable anyway". I think they took that out because "ps" is good enough for everyday use.
To find out exactly what is on the CPU at any one time, the kernel would have to find some way of dumping the process table without actually running. This would be rather cool