On Thu, May 05, 2011 at 02:04:49PM -0400, Jeff Mahoney wrote:
This patch adds support for per-kernel sysctl.conf files installed in /boot/sysctl.conf-$(uname -r).
Since we don't really want to maintain yet another tree of mostly identical files, I implemented simple inheritance.
The order of operation is, for flavor x86_64-desktop: - sysctl/defaults - sysctl/x86_64/arch-defaults - sysctl/x86_64/desktop
I didn't bother implementing filtering, so using the example files below: - All flavors will get kernel.hung_task_timeout=0. - All x86_ flavors will also get vm.dirty_ratio=40. - x86-desktop will /also/ get vm.dirty_ratio=20.
Since the sysctl lines are processed and overridden in order, this is fine.
I have a separate (simple) patch to boot.sysctl to implement that part of it.
Looks very cool, nice job. greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org