#581488 general: lower vm.swappiness by default for desktop installations

#581488#5
Date:
2010-05-12 19:22:25 UTC
From:
To:
I have been plagued by long delays with an unresponsive laptop,
waiting for it to swap in Eclipse for several minutes at a time,
several times per day. This is a Thinkpad T61 with 4 GB of RAM,
squeeze/sid, X.org, KDE and Eclipse. (4 GB ought to be enough for
everyone, right?)

Recently I got the advice [1] to set vm.swappiness to 0, rather than
the default 60. This improved things dramatically. Apparently Eclipse
is no longer being swapped out preemptively all the time. The
difference in perceived responsiveness is spectacular.

Shouldn't we provide a lower swappiness by default for desktop
installs, at least those with a fair amount of RAM? This could improve
the user experience on most modern desktop systems. Most users will
probably never find out to tune this on their own. Ubuntu recommends a
value of 10 for desktop systems [2, 3] (but ship with the default
value).

I realise that I don't have any solid evidence that this is a good
move, maybe others can fill in with their experience. The goal here is
to improve desktop responsiveness when multi-tasking, especially on
machines with reasonably large RAM and one or more large applications.

[1] http://lists.debian.org/debian-kde/2010/05/msg00313.html
[2] <https://help.ubuntu.com/community/SwapFaq#What is swappiness and how do I change it?>
[3] http://brainstorm.ubuntu.com/idea/5481/

#581488#12
Date:
2010-05-25 10:30:26 UTC
From:
To:
Le mercredi 12 mai 2010 à 21:22 +0200, Marcus Better a écrit :

The bug has been reassigned to desktop-base, but I don’t think it is the
appropriate place for that.

How about setting this default in a new, specific package, and have the
desktop environment metapackages recommend it?

#581488#17
Date:
2026-05-02 06:15:49 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***