- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dubt on Top Command
Operating System - HP-UX
1754964
Members
3105
Online
108828
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
06-18-2004 04:20 AM
06-18-2004 04:20 AM
Dear all,
i have one dubt on top command.
#top
...
...
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 26052 dante 154 22 30344K 1368K sleep 0:04 4.96 4.96 oracledante
0 ? 18760 oracle 148 20 29896K 204K sleep 997:14 2.37 2.36 ora_i201_da
0 ? 43 root 152 20 0K 0K run 221:48 1.29 1.29 vxfsd
0 ? 25131 dante 154 20 31864K 2852K
How is possible that if a process in in "sleep" states, it uses 4.96% of CPU?
example: (from top command)
...
..
RES STATE TIME %WCPU %CPU COMMAND
1368K sleep 0:04 4.96 4.96 oracledante
Thanks a lot Alessandro
i have one dubt on top command.
#top
...
...
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 26052 dante 154 22 30344K 1368K sleep 0:04 4.96 4.96 oracledante
0 ? 18760 oracle 148 20 29896K 204K sleep 997:14 2.37 2.36 ora_i201_da
0 ? 43 root 152 20 0K 0K run 221:48 1.29 1.29 vxfsd
0 ? 25131 dante 154 20 31864K 2852K
How is possible that if a process in in "sleep" states, it uses 4.96% of CPU?
example: (from top command)
...
..
RES STATE TIME %WCPU %CPU COMMAND
1368K sleep 0:04 4.96 4.96 oracledante
Thanks a lot Alessandro
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2004 04:31 AM
06-18-2004 04:31 AM
Solution
HI Alessandro,
It's only a snapshot of the state of the processes at that time. If a process sleeps (waiting for disk, network etc.,) more frequently then the probability of seeing it in sleep state is more which doesn't mean that process was sleeping all the time. Between two intervals of collection by top, it might have consumed some CPU cycles.
To really see how sleep alone consumes the cpu, do 'sleep 240&' and run top. Browse the screen by typing 'j' until you get to your command. You should see almost 0.0 utilization related to your sleep process.
-Sri
It's only a snapshot of the state of the processes at that time. If a process sleeps (waiting for disk, network etc.,) more frequently then the probability of seeing it in sleep state is more which doesn't mean that process was sleeping all the time. Between two intervals of collection by top, it might have consumed some CPU cycles.
To really see how sleep alone consumes the cpu, do 'sleep 240&' and run top. Browse the screen by typing 'j' until you get to your command. You should see almost 0.0 utilization related to your sleep process.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP