mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Autotune swappiness01
Date: Mon, 26 Jul 2004 11:01:31 +1000	[thread overview]
Message-ID: <cone.1090803691.689003.20693.502@pc.kolivas.org> (raw)
In-Reply-To: <20040725174849.75f2ecf6.akpm@osdl.org>

Andrew Morton writes:

>> > But decreasing /proc/sys/vm/swappiness does that too?
>> 
>> Low memory boxes and ones that are heavily laden with applications find that 
>> ends up making things slow down trying to keep all applications in physical 
>> ram.
> 
> Doesn't that mean that swappiness was decreased by too much?

Sure does. But the desired effect when it's not applications is that of 
swappiness being excruciatingly low so people end up doing that. Then they 
find themselves dropping it at nighttime and increasing it during the day.

>> >> It has no measurable effect on any known benchmarks.
>> > 
>> > So how are we to evaluate the desirability of the patch???
>> 
>> Get desktop users to report back their experiences which is what I have 
>> currently. Sorry we're in the realm of subjectivity again.
> 
> Seriously, we've seen placebo effects before...

I am in full agreement there... It's easy to see that applications do not 
swap out overnight; but i'm having difficulty trying to find a way to 
demonstrate the other part. I guess timing the "linking the kernel with full 
debug" on a low memory box is measurable.

>> > Shouldn't mapped_bias be local to refill_inactive_zone()?
>> 
>> That is so a followup patch can use it elsewhere...
> 
> erk.  I guess it's OK because the thing is derived from global state which
> changes slowly over time.
> 
>> > Why is `swappiness' getting squared?  AFAICT this will simply make the
>> > swappiness control behave nonlinearly, which seems undesirable?
>> 
>> To parallel the nonlinear nature of the mapped bias effect. 
> 
> That doesn't really answer my question?  What goes wrong if swappiness is
> not squared?

Oh sorry, perhaps I should have said - that keeps people's current settings 
meaningful, but that can happily be broken. That would make the default 
setting something like 34 instead of 60.

Cheers,
Con


  reply	other threads:[~2004-07-26  1:01 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-26  0:25 [PATCH][2.6.8-rc1-mm1] " Con Kolivas
2004-07-26  0:36 ` Andrew Morton
2004-07-26  0:43   ` Con Kolivas
2004-07-26  0:48     ` Andrew Morton
2004-07-26  1:01       ` Con Kolivas [this message]
2004-07-26  1:09         ` Con Kolivas
2004-07-26  8:52           ` R. J. Wysocki
2004-07-26  9:31             ` Con Kolivas
2004-07-26 10:34               ` R. J. Wysocki
2004-07-26 10:29                 ` Con Kolivas
2004-07-26 10:54                   ` R. J. Wysocki
2004-07-26 11:03                     ` Con Kolivas
2004-07-26 11:13                       ` Nick Piggin
2004-07-26 11:17                         ` Con Kolivas
2004-07-26 11:47                           ` Nick Piggin
2004-07-26 13:53                             ` R. J. Wysocki
2004-07-26 18:45                               ` Adam Kropelin
2004-07-26 18:53                                 ` R. J. Wysocki
2004-07-26 17:55                     ` Gerrit Huizenga
2004-07-26 20:29     ` Joel Becker
2004-07-26 20:42       ` Andrew Morton
2004-07-26 22:58         ` Con Kolivas
2004-07-27  0:52           ` Clemens Schwaighofer
2004-07-27  1:09             ` Andrew Morton
2004-07-27  1:17               ` Clemens Schwaighofer
2004-07-27  2:03                 ` Tim Connors
2004-07-27  2:43                   ` Con Kolivas
2004-07-27  3:02                     ` Tim Connors
2004-07-27  3:43                       ` Clemens Schwaighofer
2004-07-27  3:47                       ` Joel Becker
2004-07-27 15:32                         ` William Lee Irwin III
2004-07-27  3:41                   ` Clemens Schwaighofer
2004-07-26 14:52 Martin Knoblauch
2004-07-26 21:29 DaMouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cone.1090803691.689003.20693.502@pc.kolivas.org \
    --to=kernel@kolivas.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®