[systemd-devel] Definitive place for powertop tunables?

Lennart Poettering lennart at poettering.net
Mon Nov 19 16:01:34 PST 2012


On Mon, 19.11.12 08:01, Mantas Mikulėnas (grawity at gmail.com) wrote:

> On Mon, Nov 19, 2012 at 4:25 AM, Kai Hendry <hendry at iki.fi> wrote:
> > Hi there,
> >
> > I would normally put these `powertop -html` tunables in rc.local:
> > http://s.natalian.org/2012-11-19/1353291487_1366x768.png
> >
> > Is http://0pointer.de/public/systemd-man/tmpfiles.d.html the right
> > place? If so powertop could do with some patches to help create the
> > file, one would think.
> 
> `iwconfig` and `ethtool` should go in udev(7) rules; that way they
> will be applied as soon as the hardware appears -- even if, for some
> reason, it happens twice.
> 
>   https://github.com/vodik/powersave/blob/master/rules.d/50-usb-powersave.rules
> 
> The same applies to SATA and PCI settings under /sys:
> 
>   https://github.com/vodik/powersave/blob/master/rules.d/50-sata-powersave.rules
>   https://github.com/vodik/powersave/blob/master/rules.d/50-pci-powersave.rules
> 
> Anything that is written to /sys/module/*/parameters goes to
> modprobe.d(5) -- again, to be applied when the module is inserted, not
> at some fixed point:
> 
>   https://github.com/vodik/powersave/blob/master/modprobe.d/powersave.conf
> 
> Use sysctl.conf(5) for settings under /proc/sys:
> 
>   https://github.com/vodik/powersave/blob/master/sysctl.d/powersave.conf

Yes, this is correct, udev rules, /etc/sysctl.d/ and /etc/modprobe.d/
are the right places for this.

I actually wanted to write a blog story about this since it comes up
over and over again, it has been on the TODO list since a while...

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list