runaway proc events/0 && automatic reboot

Matthias Apitz guru at
Fri Jan 9 14:56:00 CET 2009


Yesterday I run again into the situation where the runaway proc events/0
drains nearly all power from my battery :-(

I'm thinking in writing a /etc/rc.d script which is launched at boot and
does an automated reboot when the CPU time of events/0 reaches a given
limit XXX; the CPU time is easy to read as:

while true; do
    ps --no-heading -C events/0 -o time | awk -F : '{print $1*3600+$2*60+$3}'
    sleep 600

checking this every 10 minutes or so, what would be a good threshold
value XXX in secs for a reboot? My actual uptime is ~14h and the
consumed CPU time of events/0 is around 72 secs:


Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at> - w

SPAMer of the year: Subject: Alle Software ist Deutsche Sprachen
>From: -40 % die Neujahrsaktion <GabrielleKelley at>

More information about the community mailing list