Home > Linux > Ubuntu 9.10 Karmic Koala: Temperature above threshold, cpu clock throttled

Ubuntu 9.10 Karmic Koala: Temperature above threshold, cpu clock throttled

November 13th, 2009 Nick Leave a comment Go to comments

I recently upgraded my Ubuntu install to the latest Karmic Koala, and to be honest I’ve not been totally impressed.   A range of little bugs that had been fixed before seem to have reappeared – just little things such as problems with icons in Gnome panel, nothing I couldn’t live with.

However, yesterday I got a message saying that there was less than 2GB left on my hard drive.   The last time I checked I had over 20GB free, so where did it all go?   After a bit of investigating I found two giant 10GB kernel log files /var/log/kern.log.

It seemed that the computer was constantly logging the same messages:

CPU0: Temperature above threshold, cpu clock throttled (total events = 208[ 8973.550089] CPU0: Temperature/speed normal

CPU0: Temperat cpu clock throttled (total events = 2080190)

I had a look on Google and it turns out that it is a bug with the new Karmic Koala update:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/453444

So far there’s no patch for it, so the best solution I came up with was just to turn off the logging.

Step 1:
Look in /etc/rsyslog.conf and it will either have the configuration for system logging, or in the case of my machine it points to include all files in /etc/rsyslog.d/   In my case there was only one file in here so it made things simpler.

Step 2:
Open the configuration file in an editor and find the line which specifies kernel logging and comment it, something like:

#kern.*                         -/var/log/kern.log

Step 3:
Now restart the system log daemon:   sudo restart rsyslog

It is the logging which hogs the processor so by turning it off the problem is at least not noticeable.

  1. perspectoff
    November 15th, 2009 at 05:12 | #1

    You have to comment out the lines for syslog, too. The rsyslog daemon logs to both…

    You ought to turn off ONDEMAND CPU frequency scaling (throttling) with rcconf, too.

  2. November 16th, 2009 at 09:57 | #2

    @perspectoff
    You’re quite right, sorry, I forgot to mention that. You should be able to tell if it worked because once you restart the daemon you should see in the kern.log file this:

    kernel: Kernel logging (proc) stopped.

    I’ll give turning off frequency scaling a try – thanks for that!

  3. leo
    November 26th, 2009 at 08:29 | #3

    hi,i get a new solution from https://bugs.launchpad.net/ubuntu/karmic/+source/rsyslog/+bug/453444, you can try it:

    I wrote a file /etc/rsyslog.d/10-temperature.conf with the following content:

    :msg,contains,”Temperature/speed normal” ~
    :msg,contains,”Temperature above threshold” ~

    All messages containing “Temperature/speed normal” and “Temperature above threshold” are discarded.
    I restarted rsyslog and it looks like the problem is solved.

    I hope this will help until the problem will be fixed in the kernel.

  4. November 26th, 2009 at 09:39 | #4

    @leo
    Thanks for that – it’s a much cleaner solution!

  1. No trackbacks yet.