[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On 2010-05-25, Aaron Toponce <aaron.toponce@gmail.com> wrote:
> On 5/12/2010 1:22 PM, Marcus Better wrote:
>> 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.
> You might also be interested in:
>
> # sync; cat 3 > /proc/sys/vm/drop_caches
>
> This is a nondestructive operation that will drop your clean caches,
> clear up unused inodes, and free up available RAM. Usually, after
> running my desktop for a few hours, depending on the applications I'm
> running as well, this will free up about 1/2 of my installed RAM.

Why would I want to drop my caches?  In fact I even use Tux on Ice for
hibernation so that I can keep my buffer cache, otherwise it takes ages
for the buffer cache to be loaded in after restore...

Kind regards,
Philipp Kern


Reply to: