LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   My CPU is acting strange (https://www.linuxquestions.org/questions/linux-newbie-8/my-cpu-is-acting-strange-750264/)

mag1strate 08-25-2009 11:22 PM

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


lazlow 08-25-2009 11:32 PM

Looks like you have two instances of top running. They may be racing each other.

mag1strate 08-26-2009 06:18 AM

But one of the times it was overloading with firefox, is there a way that I can kill the process?

kdelover 08-26-2009 08:12 AM

In top press K and give the PID of that process and the relevant signal 9\15 and kill it.

mag1strate 08-26-2009 09:55 AM

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?

kdelover 08-26-2009 09:58 AM

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

mag1strate 08-26-2009 02:56 PM

Wow thank you very much!

kdelover 08-26-2009 03:09 PM

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>

chrism01 08-26-2009 06:10 PM

I also recommend

top -u <username>

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


All times are GMT -5. The time now is 06:55 AM.