Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cron using 99% of CPU on Titanium 400 MHz Powerbook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Mon Jun 05, 2006 10:52 am    Post subject: Cron using 99% of CPU on Titanium 400 MHz Powerbook Reply with quote

Hello All,

I've just installed Gentoo on Titanium 400 MHz Powerbook and noticed that cron eating up to 99% of CPU.

My system installed on reiserfs.

This is what top command show me:

Code:

top - 06:06:22 up 8 min,  2 users,  load average: 0.45, 0.50, 0.31
Tasks:  29 total,   3 running,  26 sleeping,   0 stopped,   0 zombie
Cpu(s): 66.4% us, 33.6% sy,  0.0% ni,  0.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    254732k total,    29068k used,   225664k free,     2508k buffers
Swap:  1048568k total,        0k used,  1048568k free,    15080k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 6350 root      25   0  2296  724  604 R 99.4  0.3   3:08.62 cron
 6428 root      16   0  8760 2428 1988 R  0.3  1.0   0:00.30 sshd
    1 root      16   0  1648  600  532 S  0.0  0.2   0:00.60 init
    2 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
    3 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0


Any Ideas how to solve it?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43546
Location: 56N 3W

PostPosted: Mon Jun 05, 2006 11:41 am    Post subject: Reply with quote

biggyL

Let it run. It may be building the slocate database, which can take some time. It normally does this in the middle of the night but any cron jobs missed because the system was off are rescheduled at next power on, when they run when the CPU load is below some minimum level.

In effect, your cron jobs are running when you don't use the CPU. Thats normal behaviour.
If it continues for several hours, you have a problem.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
biggyL
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2005
Posts: 120
Location: Israel

PostPosted: Mon Jun 05, 2006 11:53 am    Post subject: Reply with quote

Hi,

Fixed it the following way.
It seems to be connected to hwclock:

Running:
# date {set here the right date/time}
# hwclock --systohc
# hwclock -w

It fixed also another issue: very slow sshd startup.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum