echo 10 > /proc/sys/vm/swappiness - opinion?

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
takenp
Posts: 101
Joined: Wed 05 Aug 2015, 23:27
Location: Moskva
Contact:

echo 10 > /proc/sys/vm/swappiness - opinion?

#1 Post by takenp »

Code: Select all

root# cat /proc/sys/vm/swappiness 
60
It's the default value in TahrPuppy. Is it ok? Your opinion.
I set it to 10 having 1Gb on my netbook.

===
swapiness is the value of the free memory in percentage after that kernel will start swapping onto HDD. More about:
https://en.wikipedia.org/wiki/Swappiness

User avatar
seneka77
Posts: 26
Joined: Thu 19 Jan 2012, 02:44
Location: World, Euroope, Spain, Andalucia, Cádiz, Sanlúcar de Barrameda
Contact:

#2 Post by seneka77 »

Nice post. Also slacko63 sets the default value to swapping, 60.

How it works now your system with 10?
With just 1GB looks maybe risky to set up on 10, but of course, it depends on the workload of your system, it could be enough if you don't open so many heavy tasks at the same time.
My laptop has 4GB RAM and swapping become active very very unfrequented times. Apply swapping in your system is also very related to the quality of your hard disk.
----------------
Seneka77
----------------
Linux puppy-tahr64-6.0.5 3.14.54 #1 SMP PREEMPT x86_64
Linux puppy-4.3.1 2.6.30.5 #1 SMP i686
Linux puppy-slacko64-6.3.0 4.1.11 #1 SMP x86_64 Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz GNU/Linux

User avatar
takenp
Posts: 101
Joined: Wed 05 Aug 2015, 23:27
Location: Moskva
Contact:

#3 Post by takenp »

How it works now your system with 10?
h


It looks like much better! Frankly I have changed HDD to SSD too and its hard to recognize purely but feels like 10 is better than 60 )

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#4 Post by Mike Walsh »

Hi.

Partsman has put together a .pet for this, which will automatically set your swappiness to '10' for you:-

http://murga-linux.com/puppy/viewtopic. ... 28f2699649

I use it myself. Works very well, too.


Mike. :wink:

Post Reply