2010-11-01 13:05:45

by Johannes Weiner

[permalink] [raw]
Subject: Re: [RFC PATCH] Add Kconfig option for default swappiness

On Sun, Oct 31, 2010 at 02:08:28PM -0400, Ben Gamari wrote:
> This will allow distributions to tune this important vm parameter in a more
> self-contained manner.

What's wrong with sticking

vm.swappiness = <your value>

into the shipped /etc/sysctl.conf?


2010-11-01 12:52:40

by Ben Gamari

[permalink] [raw]
Subject: Re: [RFC PATCH] Add Kconfig option for default swappiness

On Mon, 1 Nov 2010 08:43:22 -0400, Johannes Weiner <[email protected]> wrote:
> On Sun, Oct 31, 2010 at 02:08:28PM -0400, Ben Gamari wrote:
> > This will allow distributions to tune this important vm parameter in a more
> > self-contained manner.
>
> What's wrong with sticking
>
> vm.swappiness = <your value>
>
> into the shipped /etc/sysctl.conf?

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. This was just an RFC though; let me know if
you think this is totally insane.

- Ben

2010-11-01 20:14:32

by Johannes Weiner

[permalink] [raw]
Subject: Re: [RFC PATCH] Add Kconfig option for default swappiness

On Mon, Nov 01, 2010 at 08:52:30AM -0400, Ben Gamari wrote:
> On Mon, 1 Nov 2010 08:43:22 -0400, Johannes Weiner <[email protected]> wrote:
> > On Sun, Oct 31, 2010 at 02:08:28PM -0400, Ben Gamari wrote:
> > > This will allow distributions to tune this important vm parameter in a more
> > > self-contained manner.
> >
> > What's wrong with sticking
> >
> > vm.swappiness = <your value>
> >
> > into the shipped /etc/sysctl.conf?
>
> 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.

Fair point. Feel free to add my

Acked-by: Johannes Weiner <[email protected]>