-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/29/2011 10:46 AM, Dr. Werner Fink wrote:
On Thu, Apr 28, 2011 at 09:04:22PM -0400, Jeff Mahoney wrote:
On 04/28/2011 07:46 PM, Jeff Mahoney wrote:
On 04/28/2011 06:17 PM, Jan Kara wrote:
On Thu 28-04-11 13:35:13, Jeff Mahoney wrote:
-----BEGIN PGP SIGNED MESSAGE----- Jan Kara: - - patches.suse/readahead-request-tunables.patch This is dependent on SUSE-specific CONFIG_KERNEL_DESKTOP. General update of the defaults probably wouldn't pass. So I think we have to carry this one...
Ok, I had this one in mind if Suresh has any luck getting the tunable defaults upstream - or if we end up working with sysctls instead. An interesting side-idea might be to add the ability for the sysctl utility to load a kernel-specific sysctl.conf that we ship with each flavor and then apply the system values on top of those, overriding the ones that collide. We'd get the benefits without the kernel patches.
Actually, it's even easier than this. The sysctl tool loads values from the filenames it's passed. That generally means just /etc/sysctl.conf but we could modify boot.sysctl to load a per-kernel sysctl.conf first. It'd probably go into /boot, just like we do for .config and System.map already. There's a /etc/sysctl.d on my system, but it's part of systemd and loads after /etc/sysctl.conf.
For now, we'd only need a sysctl.conf-2.6.39-rc4-12-desktop that contains the following line: vm.dirty_ratio = 20
There were two other things related to KERNEL_DESKTOP: Preemption and cgroups. Since systemd requires cgroups, they're now enabled everywhere anyway. We can probably remember to keep CONFIG_PREEMPT=y on the desktop flavors on our own, or perhaps create a mechanism to check that certain options are enabled on certain flavors.
-Jeff
[CC'ing Werner to comment on the idea]
I'd like to see something
/lib/modules/<kernel-version>/sysctl.conf
or
/boot/sysctl.<kernel-version>
but /boot could be an own paritition whereas /lib is not.
I'm not sure if we're "allowed" to put additional files in /lib/modules/$UNAME but it seems like the best way to do it. One of my concerns is net-booting a particular flavor, where /boot probably won't be populated as it should be. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk260oQACgkQLPWxlyuTD7KqlgCfdGICYiAHbaCiXBogvK2/aiGj 3oQAn3uyu8Lzn96dKtgaKPtagBs/3FMW =yhBp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org