- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What process is using what cpu?
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
07-11-2003 01:24 PM
07-11-2003 01:24 PM
What process is using what cpu?
with hpux 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 01:33 PM
07-11-2003 01:33 PM
Re: What process is using what cpu?
It will show you which process is running on what cpu
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 01:38 PM
07-11-2003 01:38 PM
Re: What process is using what cpu?
In top you can see it.
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 01:48 PM
07-11-2003 01:48 PM
Re: What process is using what cpu?
top -s 10 -d 5 -f /tmp/top.out
That will run top refreshed every 10 seconds for 5 iterations and put the output in the file /tmp/top.out.
man top
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 04:02 PM
07-11-2003 04:02 PM
Re: What process is using what cpu?
# top
eg.
TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
? 6339 oradb 240 20 369M 12856K run 860:46 99.51 99.34 oracleprod
? 29 root 152 20 1856K 0K run 0:58 1.13 1.13 vxfsd
pts/0 7284 root 178 20 2864K 424K run 0:00 0.23 0.10 top
The CPU column shows the CPU# the process is executing.
The TIME column shows the time the process consumed.
The %CPU column shows the raw CPU percentage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 04:05 PM
07-11-2003 04:05 PM
Re: What process is using what cpu?
Along with top, you can use 'ps' also to get the information.
export UNIX95=1
ps -ef -o "pcpu args" |sort -n
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 04:09 PM
07-11-2003 04:09 PM
Re: What process is using what cpu?
while :
do :
done
This will do nothing but burn CPU cycles. Start multiple copies and you'll see top display the distribution of CPU cycles. Note also that HP-UX will change CPUs for the same process quite often. There's nothing to move in doing this--all the CPUs see all of memory.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2003 05:43 PM
07-11-2003 05:43 PM
Re: What process is using what cpu?
UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2003 12:41 AM
07-13-2003 12:41 AM
Re: What process is using what cpu?
o Glance, then select process
o ps -elp
o MeasureWare
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 12:39 AM
07-14-2003 12:39 AM
Re: What process is using what cpu?
my ps command should read
o ps -flp
Or if you want it for all processes
o ps -fel
The 6th column labled C is the CPU#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:18 AM
07-14-2003 05:18 AM
Re: What process is using what cpu?
Some catching up to do:-
This member has assigned points to 10 of 129 responses to his/her questions.
Please assign points to those who have used their own time to assist you.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:19 AM
07-14-2003 05:19 AM
Re: What process is using what cpu?
Some catching up to do:-
This member has assigned points to 10 of 129 responses to his/her questions.
Please assign points to those who have used their own time to assist you.
Paula