* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-02 12:58 ` Ben Gamari
0 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-02 12:58 UTC (permalink / raw)
To: David Rientjes
Cc: KAMEZAWA Hiroyuki, linux-mm, linux-kernel, Jesper Juhl,
Wu Fengguang
On Mon, 1 Nov 2010 20:33:10 -0700 (PDT), David Rientjes <rientjes@google.com> wrote:
> And they can't use an init script to tune /proc/sys/vm/swappiness
> because...?
Packaging concerns, as I mentioned before,
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.
- Ben
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-02 12:58 ` Ben Gamari
@ 2010-11-02 14:01 ` Wu Fengguang
-1 siblings, 0 replies; 28+ messages in thread
From: Wu Fengguang @ 2010-11-02 14:01 UTC (permalink / raw)
To: Ben Gamari
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl, Dave Jones
On Tue, Nov 02, 2010 at 08:58:19PM +0800, Ben Gamari wrote:
> On Mon, 1 Nov 2010 20:33:10 -0700 (PDT), David Rientjes <rientjes@google.com> wrote:
> > And they can't use an init script to tune /proc/sys/vm/swappiness
> > because...?
>
> Packaging concerns, as I mentioned before,
>
> 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).
Thanks,
Fengguang
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-02 14:01 ` Wu Fengguang
0 siblings, 0 replies; 28+ messages in thread
From: Wu Fengguang @ 2010-11-02 14:01 UTC (permalink / raw)
To: Ben Gamari
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl, Dave Jones
On Tue, Nov 02, 2010 at 08:58:19PM +0800, Ben Gamari wrote:
> On Mon, 1 Nov 2010 20:33:10 -0700 (PDT), David Rientjes <rientjes@google.com> wrote:
> > And they can't use an init script to tune /proc/sys/vm/swappiness
> > because...?
>
> Packaging concerns, as I mentioned before,
>
> 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).
Thanks,
Fengguang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-02 14:01 ` Wu Fengguang
@ 2010-11-03 14:33 ` Dave Jones
-1 siblings, 0 replies; 28+ messages in thread
From: Dave Jones @ 2010-11-03 14:33 UTC (permalink / raw)
To: Wu Fengguang
Cc: Ben Gamari, David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl
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
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-03 14:33 ` Dave Jones
0 siblings, 0 replies; 28+ messages in thread
From: Dave Jones @ 2010-11-03 14:33 UTC (permalink / raw)
To: Wu Fengguang
Cc: Ben Gamari, David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl
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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-03 14:33 ` Dave Jones
@ 2010-11-04 2:40 ` Ben Gamari
-1 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 2:40 UTC (permalink / raw)
To: Dave Jones, Wu Fengguang
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl
On Wed, 3 Nov 2010 10:33:59 -0400, Dave Jones <davej@redhat.com> wrote:
> 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.
>
Just didn't want to miss anyone important. Sorry for the noise.
> 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?
>
This seems to be the consensus within the Ubuntu community as well. I
don't have any strong opinion either way but I will admit that setting
it in userspace does make the packaging issue messy.
- Ben
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-04 2:40 ` Ben Gamari
0 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 2:40 UTC (permalink / raw)
To: Dave Jones, Wu Fengguang
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl
On Wed, 3 Nov 2010 10:33:59 -0400, Dave Jones <davej@redhat.com> wrote:
> 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.
>
Just didn't want to miss anyone important. Sorry for the noise.
> 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?
>
This seems to be the consensus within the Ubuntu community as well. I
don't have any strong opinion either way but I will admit that setting
it in userspace does make the packaging issue messy.
- Ben
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-02 14:01 ` Wu Fengguang
@ 2010-11-04 3:09 ` Ben Gamari
-1 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 3:09 UTC (permalink / raw)
To: Wu Fengguang
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl, Dave Jones
On Tue, 2 Nov 2010 22:01:20 +0800, Wu Fengguang <fengguang.wu@intel.com> wrote:
> 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?).
This is something that will likely require a great deal of research,
thinking, and testing. I wish I could give you a better answer at the
moment. I have read many opinions on this but have not seen enough
evidence to suggest specific values. In the desktop case, it seems clear
that the preferred value should be lower than the current default to
preserve interactive performance (long latencies due to swapping is
something that many desktop users complain about currently). I set
swappiness to 10 on my own machines machines with good results, but mine
is anything but a model case. I don't believe there is any direct need
to touch the server kernel swappiness at the moment.
> And why it's easier to do it in kernel (hope it's not because of
> trouble communicating with the user space packaging team).
Fear not, this is certainly not the case. We would simply like to be
able to keep this our kernel configuration self-contained. We already
have separate packages for various kernel flavors with their own
configurations. Allowing us to tune swappiness from the configuration
would keep things much cleaner.
The other option would be to drop a file in /etc/sysctl.d from the
kernel meta-package (e.g. linux-image-generic and
linux-image-server). However, it would make little sense to do this
without adding a dependency on procps to this package (although,
admittedly, procps is in the default installation) which we would rather
not do if possible. Furthermore, this spreads the kernel configuration
across the system. In sum, it seems that configuring the default in the
kernel itself is by far the most elegant way to proceed.
Cheers,
- Ben
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-04 3:09 ` Ben Gamari
0 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 3:09 UTC (permalink / raw)
To: Wu Fengguang
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, Jesper Juhl, Dave Jones
On Tue, 2 Nov 2010 22:01:20 +0800, Wu Fengguang <fengguang.wu@intel.com> wrote:
> 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?).
This is something that will likely require a great deal of research,
thinking, and testing. I wish I could give you a better answer at the
moment. I have read many opinions on this but have not seen enough
evidence to suggest specific values. In the desktop case, it seems clear
that the preferred value should be lower than the current default to
preserve interactive performance (long latencies due to swapping is
something that many desktop users complain about currently). I set
swappiness to 10 on my own machines machines with good results, but mine
is anything but a model case. I don't believe there is any direct need
to touch the server kernel swappiness at the moment.
> And why it's easier to do it in kernel (hope it's not because of
> trouble communicating with the user space packaging team).
Fear not, this is certainly not the case. We would simply like to be
able to keep this our kernel configuration self-contained. We already
have separate packages for various kernel flavors with their own
configurations. Allowing us to tune swappiness from the configuration
would keep things much cleaner.
The other option would be to drop a file in /etc/sysctl.d from the
kernel meta-package (e.g. linux-image-generic and
linux-image-server). However, it would make little sense to do this
without adding a dependency on procps to this package (although,
admittedly, procps is in the default installation) which we would rather
not do if possible. Furthermore, this spreads the kernel configuration
across the system. In sum, it seems that configuring the default in the
kernel itself is by far the most elegant way to proceed.
Cheers,
- Ben
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-02 12:58 ` Ben Gamari
@ 2010-11-02 14:34 ` Hiroyuki Kamezawa
-1 siblings, 0 replies; 28+ messages in thread
From: Hiroyuki Kamezawa @ 2010-11-02 14:34 UTC (permalink / raw)
To: Ben Gamari
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm, linux-kernel,
Jesper Juhl, Wu Fengguang
2010/11/2 Ben Gamari <bgamari.foss@gmail.com>:
> On Mon, 1 Nov 2010 20:33:10 -0700 (PDT), David Rientjes <rientjes@google.com> wrote:
>> And they can't use an init script to tune /proc/sys/vm/swappiness
>> because...?
>
> Packaging concerns, as I mentioned before,
>
> 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.
>
Hmm, then, can't we add a sysctl template config/script for generic
sysctl values ?
Adding this kind of CONFIG one by one seems not very helpful...
Thanks,
-Kame
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-02 14:34 ` Hiroyuki Kamezawa
0 siblings, 0 replies; 28+ messages in thread
From: Hiroyuki Kamezawa @ 2010-11-02 14:34 UTC (permalink / raw)
To: Ben Gamari
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm, linux-kernel,
Jesper Juhl, Wu Fengguang
2010/11/2 Ben Gamari <bgamari.foss@gmail.com>:
> On Mon, 1 Nov 2010 20:33:10 -0700 (PDT), David Rientjes <rientjes@google.com> wrote:
>> And they can't use an init script to tune /proc/sys/vm/swappiness
>> because...?
>
> Packaging concerns, as I mentioned before,
>
> 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.
>
Hmm, then, can't we add a sysctl template config/script for generic
sysctl values ?
Adding this kind of CONFIG one by one seems not very helpful...
Thanks,
-Kame
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-02 14:34 ` Hiroyuki Kamezawa
@ 2010-11-04 2:44 ` Ben Gamari
-1 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 2:44 UTC (permalink / raw)
To: Hiroyuki Kamezawa
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm, linux-kernel,
Jesper Juhl, Wu Fengguang
On Tue, 2 Nov 2010 23:34:27 +0900, Hiroyuki Kamezawa <kamezawa.hiroyuki@gmail.com> wrote:
> Hmm, then, can't we add a sysctl template config/script for generic
> sysctl values ?
>
That is one idea. Unfortunately, then we have something of a dependency
on out of tree userspace utilities.
> Adding this kind of CONFIG one by one seems not very helpful...
>
This was definitely a concern of mine as well. In principle, a
distribution might want to tune any of the knobs in /proc/sys, so I
agree that adding them to Kconfig is a bit of a poor path to go down.
That being said, swappiness is an especially important tunable.
- Ben
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-04 2:44 ` Ben Gamari
0 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 2:44 UTC (permalink / raw)
To: Hiroyuki Kamezawa
Cc: David Rientjes, KAMEZAWA Hiroyuki, linux-mm, linux-kernel,
Jesper Juhl, Wu Fengguang
On Tue, 2 Nov 2010 23:34:27 +0900, Hiroyuki Kamezawa <kamezawa.hiroyuki@gmail.com> wrote:
> Hmm, then, can't we add a sysctl template config/script for generic
> sysctl values ?
>
That is one idea. Unfortunately, then we have something of a dependency
on out of tree userspace utilities.
> Adding this kind of CONFIG one by one seems not very helpful...
>
This was definitely a concern of mine as well. In principle, a
distribution might want to tune any of the knobs in /proc/sys, so I
agree that adding them to Kconfig is a bit of a poor path to go down.
That being said, swappiness is an especially important tunable.
- Ben
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-02 12:58 ` Ben Gamari
@ 2010-11-02 19:39 ` David Rientjes
-1 siblings, 0 replies; 28+ messages in thread
From: David Rientjes @ 2010-11-02 19:39 UTC (permalink / raw)
To: Ben Gamari
Cc: KAMEZAWA Hiroyuki, linux-mm, linux-kernel, Jesper Juhl,
Wu Fengguang
On Tue, 2 Nov 2010, Ben Gamari wrote:
> > And they can't use an init script to tune /proc/sys/vm/swappiness
> > because...?
>
> Packaging concerns, as I mentioned before,
>
That you snipped from the changelog?
> 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.
>
You could say the same thing for any sysctl, it's not indicative of why
this particular change is needed in the kernel.
Let's not have the "in short" answer, what's the "long" answer?
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-02 19:39 ` David Rientjes
0 siblings, 0 replies; 28+ messages in thread
From: David Rientjes @ 2010-11-02 19:39 UTC (permalink / raw)
To: Ben Gamari
Cc: KAMEZAWA Hiroyuki, linux-mm, linux-kernel, Jesper Juhl,
Wu Fengguang
On Tue, 2 Nov 2010, Ben Gamari wrote:
> > And they can't use an init script to tune /proc/sys/vm/swappiness
> > because...?
>
> Packaging concerns, as I mentioned before,
>
That you snipped from the changelog?
> 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.
>
You could say the same thing for any sysctl, it's not indicative of why
this particular change is needed in the kernel.
Let's not have the "in short" answer, what's the "long" answer?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
2010-11-02 19:39 ` David Rientjes
@ 2010-11-04 3:13 ` Ben Gamari
-1 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 3:13 UTC (permalink / raw)
To: David Rientjes
Cc: KAMEZAWA Hiroyuki, linux-mm, linux-kernel, Jesper Juhl,
Wu Fengguang
On Tue, 2 Nov 2010 12:39:52 -0700 (PDT), David Rientjes <rientjes@google.com> wrote:
> On Tue, 2 Nov 2010, Ben Gamari wrote:
> > Packaging concerns, as I mentioned before,
>
> That you snipped from the changelog?
>
Guilty as charged. Sorry about that, time has been in short supply
recently.
> You could say the same thing for any sysctl, it's not indicative of why
> this particular change is needed in the kernel.
>
This is certainly true; a distribution could in principle want to tweak
the default values of any of the sysctl knobs. If we wanted to tweak
anything else in addition to swappiness that I wouldn't have even
bothered to submit the patch since I'll be the first to admit that the
precedent set by further growing the Kconfig phase space is not a
positive one. That being said, swappiness is one of the more significant
knobs in the vm and certainly one of the more likely to be tuned by a
distribution.
> Let's not have the "in short" answer, what's the "long" answer?
See my recent response to Wu Fengguang.
Cheers,
- Ben
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH] Add Kconfig option for default swappiness
@ 2010-11-04 3:13 ` Ben Gamari
0 siblings, 0 replies; 28+ messages in thread
From: Ben Gamari @ 2010-11-04 3:13 UTC (permalink / raw)
To: David Rientjes
Cc: KAMEZAWA Hiroyuki, linux-mm, linux-kernel, Jesper Juhl,
Wu Fengguang
On Tue, 2 Nov 2010 12:39:52 -0700 (PDT), David Rientjes <rientjes@google.com> wrote:
> On Tue, 2 Nov 2010, Ben Gamari wrote:
> > Packaging concerns, as I mentioned before,
>
> That you snipped from the changelog?
>
Guilty as charged. Sorry about that, time has been in short supply
recently.
> You could say the same thing for any sysctl, it's not indicative of why
> this particular change is needed in the kernel.
>
This is certainly true; a distribution could in principle want to tweak
the default values of any of the sysctl knobs. If we wanted to tweak
anything else in addition to swappiness that I wouldn't have even
bothered to submit the patch since I'll be the first to admit that the
precedent set by further growing the Kconfig phase space is not a
positive one. That being said, swappiness is one of the more significant
knobs in the vm and certainly one of the more likely to be tuned by a
distribution.
> Let's not have the "in short" answer, what's the "long" answer?
See my recent response to Wu Fengguang.
Cheers,
- Ben
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 28+ messages in thread