The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-05-2007
Registered User
 

Join Date: Aug 2007
Posts: 49
Stumble this Post!
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-09-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
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.
Reply With Quote
  #3 (permalink)  
Old 09-10-2007
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Stumble this Post!
Can't I run top command in AIX5.2 ??
man top not found in AIX 5.2

Any Ideas ?

Thanks !
Reply With Quote
  #4 (permalink)  
Old 09-11-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
try topas.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0