Sorry about that plvera,
I posted with ps -ef, where you probably should be using similar to ps -aux.
Edit, There will be a cpu column
topic title: cpu% too high - maybe after upgrade
-
Posts: 1,062
- Joined: 20 Jan 2010
-
Posts: 903
- Joined: 11 Oct 2008
#17
Dave,
Thanks for the suggestions but ps (or htop or top) did not really show what was eating up cpu time.
I think I figured out what's going on though. I noticed that space in the root directory kept decreasing. I searched and /usr/log had a large amount of data. In there, pm-powersave.log grows to be over 2G!!! I deleted that and root space came back to normal.
So I restarted the laptop and have the same problem with cpu being too high and this pm-powersave.log keeps getting bigger and bigger. My guess is that whatever is writing into it gives up in about 2 days and leaves behind a rather large file.
What can I do about this? My battery needs to be replaced. Not really sure if this is related to the battery or not.
thanks.
Thanks for the suggestions but ps (or htop or top) did not really show what was eating up cpu time.
I think I figured out what's going on though. I noticed that space in the root directory kept decreasing. I searched and /usr/log had a large amount of data. In there, pm-powersave.log grows to be over 2G!!! I deleted that and root space came back to normal.
So I restarted the laptop and have the same problem with cpu being too high and this pm-powersave.log keeps getting bigger and bigger. My guess is that whatever is writing into it gives up in about 2 days and leaves behind a rather large file.
What can I do about this? My battery needs to be replaced. Not really sure if this is related to the battery or not.
thanks.
-
Posts: 4,164
- Joined: 20 Feb 2009
#18
Try running with the battery removed maybe? I've done it before to trouble shoot laptop problems.
I also wonder if making your own powersave file will keep a new one being made a wrote to. Kinda like that keylogger thing reported back in Sept in /home.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.linuxquestions.org/questions/linux-news-59/new-malware-that-targets-linux-4175425165/#post4770398"
linktext was:"http://www.linuxquestions.org/questions ... ost4770398"
====================================
I also wonder if making your own powersave file will keep a new one being made a wrote to. Kinda like that keylogger thing reported back in Sept in /home.
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.linuxquestions.org/questions/linux-news-59/new-malware-that-targets-linux-4175425165/#post4770398"
linktext was:"http://www.linuxquestions.org/questions ... ost4770398"
====================================
-
Posts: 630
- Joined: 12 Oct 2012
#19
Try this conky script you will see what it is using the processor power. Then you can take the action needed.
Code: Select all
# maintain spacing between certain elements
use_spacer yes
# set to yes if you want conky to be forked in the background
background no
use_xft yes
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono-9
#xftfont Andale Mono-9
#xftfont Clean-8
#xftfont cubicfive10:pixelsize=8
#xftfont squaredance10:pixelsize=14
#xftfont swf!t_v02:pixelsize=10
# Text alpha when using Xft
xftalpha 1
mail_spool $MAIL
# Update interval in seconds
update_interval 2.0
# Create own window instead of using desktop
own_window yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 280 5
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no # amplifies text
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_margin 9
# border width
border_width 1
# Default colors and also border colors, grey90 == #e5e5e5
default_color grey90
default_shade_color black
default_outline_color DarkGrey
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 24
gap_y 24
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# stuff after 'TEXT' will be formatted on screen
TEXT
${color #ffcb48}$nodename$color $sysname $kernel on
$machine$color
${color #ffcb48}Uptime:$color $uptime
${color #ffcb48}PROCESSING$color
${color #98c2c7}CPU:$color ${execi 5 cpuspeed}MHz $cpu%
${color #78af78}$cpubar
${color #78af78}${cpugraph 78af78 a3a3a3}
${color #98c2c7}NAME PID CPU% MEM%
${color #e5e5e5}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #c4c4c4}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #a3a3a3}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #828282}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #98c2c7}RAM Usage:$color $mem/$memmax - $memperc% ${color #78af78}$membar
${color #98c2c7}Swap:$color $swapperc% ${color
#78af78}${swapbar 6}$color
${color #98c2c7}sda1$color ${fs_free_perc /}% $fs_free ${color
#78af78}${fs_bar 6 /}$color
- Posts: 630 Eino
- Joined: 12 Oct 2012
#20
Screenshot of the conky.
-
Posts: 903
- Joined: 11 Oct 2008
#21
Roky,
You're a genius!! Taking out the battery stopped the cpu use.
Eino, thanks for your suggestion. I'll try it to see if I can isolate the problem (other than replace the battery)
You're a genius!! Taking out the battery stopped the cpu use.
Eino, thanks for your suggestion. I'll try it to see if I can isolate the problem (other than replace the battery)
-
Posts: 630
- Joined: 12 Oct 2012
#22
If you look at your logs, you may have one larger than normal from the system reporting the bad battery over, and over again..plvera wrote:Roky,
You're a genius!! Taking out the battery stopped the cpu use.
Eino, thanks for your suggestion. I'll try it to see if I can isolate the problem (other than replace the battery)