lkml.org 
[lkml]   [2010]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add Kconfig option for default swappiness
On Tue, Nov 02, 2010 at 10:01:20PM +0800, Wu Fengguang wrote:

> > On Mon, Nov 01, 2010 at 08:52:30AM -0400, Ben Gamari wrote:
> > > Ubuntu ships different kernels for desktop and server usage. From a
> > > packaging standpoint it would be much nicer to have this set in the
> > > kernel configuration. If we were to throw the setting /etc/sysctl.conf
> > > the kernel would depend upon the package containing sysctl(8)
> > > (procps). We'd rather avoid this and keep the default kernel
> > > configuration in one place.
> >
> > In short, being able to specify this default in .config is just far
> > simpler from a packaging standpoint than the alternatives.
>
> It's interesting to know what value you plan to use for your
> desktop/server systems and the rationals (is it based on any
> testing results?). And why it's easier to do it in kernel (hope it's
> not because of trouble communicating with the user space packaging
> team).

Not sure why I was cc'd on this, but at least for Fedora, we still take
the 'one kernel to rule them all' approach for every spin (and will likely
continue to do so to maximise coverage testing) so a config option for us
for things like this is moot.

Whenever I've tried to push changes to our defaults through to our
default /etc/sysctl.conf, it's been met with resistance due to beliefs
that a) the file is there for _users_ to override decisions
the distro made at build time and b) if this is the right default,
why isn't the kernel setting it?

The idea keeps coming up to have some userspace thing automatically
tune the kernel to dtrt based upon whatever profile it has been fed.
Various implementations of things like this have come and gone
(Arjan and myself even wrote one circa 2000). For whatever reason,
they don't seem to catch on.

Dave



\
 
 \ /
  Last update: 2010-11-03 15:37    [W:0.058 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site