Picos de CPU raros en Leopard

  • english
  • spanish

I was quite upset since yesterday because of this: a little while after booting my MacBook, CPU load went up over 50%, always. It was easy to detect because, besides the system being less responsive, FanControl put the fans over 5000rpm which makes a lot of noise.

The “Activity Monitor” showed that one of the two cores was always running at 100% and the other had the usual load, so the average was around 55-60%. However, none of the tasks on the task list table was over 4-6% CPU. No idea who was to blame.

I tried removing every gadget I had (like Growl, iScrobbler, InsomniaX…) from the start-up items, even rebooting and logging in with a “clean”, new user. Just the same.

Today I’ve tried directly with the terminal, and with ps have discovered that syslog was running at 100% CPU, so I knew where to look: on /var/log, the last system.log was over 250Mb while the previous ones (after bunzip2-ing) weighted less than 10Mb each. The file was full with AppFresh’s errors, not that important but they had this nasty side-effect. After killing syslogd CPU levels went back to normal, but the system re-launched it and CPU use spiked again. Removing the last system.log file wouldn’t solve the problem, either.

So with a clearer idea of what was going on I googled about it and found this post with a comment that suggested lowering the max allowed size for the asl.db file (mine was almost 50Mb). I’ve followed these instructions, killed syslogd again, and problem solved! My MacBook is as silent and resonsive as before. :)

3 thoughts on “Picos de CPU raros en Leopard

  1. Muy bueno!! hace poco que me he pasado a leopard y me estaba dando bastante la lata la dichosa cpu..

    pero una cosita… donde exactamente has añadido la linea?
    Saludos!!

  2. @Shikan: Hola.
    Se añaden en /System/Library/LaunchDaemons/com.apple.syslogd.plist. Para que te hagas una idea de dónde te pongo varias líneas:

    /usr/sbin/syslogd
    -c
    0
    -a
    -db_max 500000

    Saludos

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

*

Puedes usar las siguientes etiquetas y atributos HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>