top %CPU.


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users top %CPU.
# 1  
Old 09-06-2007
top %CPU.

I am using the Red Hat Enterprise Linux AS release 3 (Taroon), 2.4.21-4.EL. When I see the output of the command 'top'. I am getting the following

************************************************************************************

2 processes: 227 sleeping, 5 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 80.0% 0.0% 0.3% 0.0% 0.0% 0.0% 19.5%
Mem: 2063228k av, 2043904k used, 19324k free, 0k shrd, 38356k buff
1561324k actv, 0k in_d, 44184k in_c
Swap: 4096532k av, 9172k used, 4087360k free 1635504k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
1124 root 25 0 59208 41M 3932 R 78.8 2.0 1290m 0 /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7
14778 oracle 15 0 52876 50M 50712 R 1.1 2.5 0:03 0 oraclehsblr4 (LOCAL=NO)
351 root 15 0 0 0 0 SW 0.1 0.0 2:44 0 kjournald
14973 hedgestr 15 0 1320 1320 892 R 0.1 0.0 0:00 0 top
1 root 15 0 512 512 452 S 0.0 0.0 0:06 0 init
************************************************************************************************


Here the command `/usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7` is taking 78.8
%CPU. I guess that command was using by X-Server. But How would I controll that command to use minimum %CPU.

HELP REQUIRED.
# 2  
Old 09-10-2007
You can't really tell some process to use certain CPU amount. Maybe there are some applications that made your X server to consume lot of CPU, I suggest that you restart the X server, if applicable. If you are working in SMP environment, you can use the package "schedutils" to bind certain process to 1 CPU, thus reducing the possibility of eating all of your CPU resources.
# 3  
Old 09-10-2007
Can't I run top command in AIX5.2 ??
man top not found in AIX 5.2

Any Ideas ?

Thanks !Smilie
# 4  
Old 09-11-2007
try topas.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Understanding cpu consumption with TOP

Hi please see attached picture of the TOP command. the "java" process seem to consume 700% of cpu is that mean that he uses 100% of every 7 cpu cores? thanks (2 Replies)
Discussion started by: guy3145
2 Replies

2. Shell Programming and Scripting

Print 10 most CPU-intensive processes (wo/ top)

ps -eo pid,comm,%cpu lists all processes (in increasing PID number). How to get only the top-10 most CPU intensive ones? I know about top: this is BASH exercise. I tried redirecting above code to cut ps -eo pid,comm,%cpu | cut -f2but ps' output isn't TAB delimited. How can I otherwise use... (5 Replies)
Discussion started by: courteous
5 Replies

3. Shell Programming and Scripting

Warning in Top 10 cpu consuming processes

I m using following command to find top 10 cpu consuming processes. However whenever i execute the command i get following warning. What can be done to avoid it? # ps -auxf | sort -nr -k 3 | head -10 Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ root ... (6 Replies)
Discussion started by: pinga123
6 Replies

4. Solaris

top is showing 0% cpu Idle

What should we do if we show a 0% cpu idl on top? (5 Replies)
Discussion started by: Pouchie1
5 Replies

5. Red Hat

CPU usage: PS versus TOP - Different output

CPU usage: PS versus TOP - Different output Hi When monitoring a Linux environment with PS command, reported CPU value for a certain process differs, sometimes greatly, from the value seen in TOP. I understood this is not a bug, they report different data. I can't understand the nature... (4 Replies)
Discussion started by: liav
4 Replies

6. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

7. UNIX for Dummies Questions & Answers

how to get persistant cpu utilization values per process per cpu in linux (! top,ps)

hi, i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies

8. UNIX for Dummies Questions & Answers

N00b question on CPU % in top

I have a process in my TOP output that is consistantly at 97% usage. I have 16 CPUs on my box. So is the 97% the cumalative usage of all the CPUs or just one? (3 Replies)
Discussion started by: kskywr
3 Replies

9. Debian

top for Debian multi-cpu box...

I have a quad cpu Debian box running as an email server. I'm looking to see how the cpu's are being used. Top just shows them alltogether with the 4 processes running. Does anyone know how I can get Top to show me each cpu like the HP-UX top does? Thanks. top - 14:56:08 up 2:35, 1 user, ... (1 Reply)
Discussion started by: natter
1 Replies

10. UNIX for Dummies Questions & Answers

Dual CPU's and 'top'

Hi have just built a new sunfire 280r with solaris 9 and i Have 2 questions 1) where can i view some information that will tell me for definate that the 2*900 mhz processors are both being used, i tried using "top" but it doesnt tell me for sure that both processors are churning away together ... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
Login or Register to Ask a Question