[systemd-devel] Definitive place for powertop tunables?
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.
> The same applies to SATA and PCI settings under /sys:
> 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:
> Use sysctl.conf(5) for settings under /proc/sys:
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 Poettering - Red Hat, Inc.
More information about the systemd-devel