[collectd] CPU frequency support

Florian Forster octo at verplant.org
Mon Jan 23 09:03:51 CET 2006


Hi,

I recently installed Linux on my (freshly repaired) laptop. This doesn't
only mean that I can now provide Debian packages for PowerMac, but also
that I tried out the `cpufreq' plugin myself. And, it doesn't work
because the `powermac' driver seems to lack support for the
`cpuinfo_cur_freq' file. After digging through some forums and mailing
lists I found that apparently reading `scaling_cur_freq' is the way to
go.

For the sake of simplicity I'll simply switch to `scaling_cur_freq',
unless someone complains in time that he doesn't have this file. (Please
append kernel version and relevant hardware bits in this case)

(The differece seems to be, that `scaling_cur_freq' returns the value
 saved in the kernel whereas `cpuinfo_cur_freq' actually reads the CPU
 registers, requiring root-privileges. Of course, simply returning the
 kernel values is much cheaper, doesn't require special privileges and,
 last and least, works on my laptop ;)

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20060123/ed4df9d8/attachment.pgp


More information about the Collectd mailing list