Subject: Re: cron on and on
To: None <port-vax@netbsd.org>
From: Thorsten Jens <thojens@gmx.de>
List: port-vax
Date: 01/09/2001 21:04:17
* Paul A Vixie:
> > The only thing I noticed as I just telnetted to the machine was that
> > cron was stealing all of the processor time, see the "top" output:
> >
> > load averages: 1.33, 1.18, 1.11 14:30:47
> > 11 processes: 1 runnable, 9 sleeping, 1 on processor
> > CPU states: 18.0% user, 0.0% nice, 82.0% system, 0.0% interrupt, 0.0% idle
> > Memory: 3252K Act, 4220K Inact, 116K Wired, 11M Free, 49M Swap free
> >
> > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
> > 181 root 64 0 116K 360K run 218:53 86.13% 86.13% cron
> >
> > Is this a bug, or is cron always taking taking so long?
>
> it looks like a bug. please rebuild cron with -g and then gdb it (via /proc)
> to see where it's looping. it's possible that sleep() is returning 0 rather
> than the number of seconds left to sleep...
Sorry, but I've got too much other stuff to do at the moment. Maybe
I will review this again later. I had to reboot the machine to
install an new kernel, and it has not happened again since then.
Thorsten
--
Thorsten Jens <thojens@gmx.de>
Am thinkink is signature.