LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2009, 12:22 AM   #1
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Rep: Reputation: 18
My CPU is acting strange


I am using fedora 11, and in a previous thread I was told how to use the top command in the terminal, but I must have done something b/c now my processor is acting really strange and maxing out some of my cores when nothing else is running in the background! Can any of you guys help? I shall place the top results now. Thank you for your time!

Code:
top - 00:19:44 up  1:58,  2 users,  load average: 3.15, 2.40, 1.85
Tasks: 185 total,   3 running, 182 sleeping,   0 stopped,   0 zombie
Cpu(s): 23.8%us, 38.1%sy,  0.0%ni, 38.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   8115148k total,  1196564k used,  6918584k free,    99888k buffers
Swap: 10174456k total,        0k used, 10174456k free,   569064k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND            
 4129 root      20   0 14856 1196  860 R 100.0  0.0   5:12.10 top               
 4045 root      20   0 14856 1204  860 R 99.0  0.0   9:04.76 top                
 2082 root      20   0  494m  79m  11m S 19.2  1.0  23:21.48 Xorg               
 4179 mag1stra  20   0  295m  16m  10m S  9.6  0.2   0:28.78 gnome-system-mo    
 4343 mag1stra  20   0  275m  13m 9440 S  7.6  0.2   0:01.36 gnome-terminal     
 4145 mag1stra  20   0 1867m  69m  26m S  5.6  0.9   0:23.67 banshee-1          
 4214 mag1stra  20   0  585m  73m  22m S  4.3  0.9   0:34.66 firefox            
 2552 mag1stra  20   0  790m 8428 5872 S  2.0  0.1   1:26.41 pulseaudio         
 4363 mag1stra  20   0 14856 1196  856 R  0.7  0.0   0:00.12 top                
 1832 root      20   0 19880  952  812 S  0.3  0.0   0:01.77 hald-addon-stor    
    1 root      20   0  4076  844  584 S  0.0  0.0   0:00.75 init               
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd           
    3 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0        
    4 root      15  -5     0    0    0 S  0.0  0.0   0:00.05 ksoftirqd/0        
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0         
    6 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/1        
    7 root      15  -5     0    0    0 S  0.0  0.0   0:00.03 ksoftirqd/1

Last edited by Tinkster; 08-26-2009 at 01:18 PM. Reason: php -> code => no ugly colours
 
Old 08-26-2009, 12:32 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Looks like you have two instances of top running. They may be racing each other.
 
Old 08-26-2009, 07:18 AM   #3
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
But one of the times it was overloading with firefox, is there a way that I can kill the process?
 
Old 08-26-2009, 09:12 AM   #4
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
In top press K and give the PID of that process and the relevant signal 9\15 and kill it.
 
Old 08-26-2009, 10:55 AM   #5
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
im sorry but could you show me an example? like do i just press k, then a number 9-15 then I type in the name or what do I do?
 
Old 08-26-2009, 10:58 AM   #6
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
start TOP & press K ,when you do that it would ask you PID to KILL,enter the PID ( process ID ) you see hit enter and it would ask you for the signal to send ,by default it would select 15 ,select what ever you want 9 or 15 and hit enter.

Or you can even do ps -ef | grep -i "firefox" and then get the PID and kill it with killall command

or do pgrep firefox and kill it with kill command

Or pkill -9 firefox

Last edited by kdelover; 08-26-2009 at 11:01 AM.
 
Old 08-26-2009, 03:56 PM   #7
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
Wow thank you very much!
 
Old 08-26-2009, 04:09 PM   #8
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
one more,if you want to kill all the process owned by a user kill -9 echo $(lsof -t -u <username>) or pkill -u <username>
 
Old 08-26-2009, 07:10 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
I also recommend

top -u <username>

to cut down num procs shown to a manageable number
http://linux.die.net/man/1/top
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Acting Strange Atulmishra Linux - Server 1 11-06-2007 11:41 PM
CD-Rom acting strange. bilko9070 Linux - Hardware 0 01-11-2006 05:52 AM
Avidemux2 acting strange alitrix Linux - Software 0 12-15-2004 11:55 AM
vim acting strange littlemidget Debian 6 09-17-2004 12:52 PM
suse 9.1 acting strange ozzytx Linux - General 1 08-29-2004 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration