You are not logged in.

#1 2012-10-19 10:54:03

seanlin138
Member
Registered: 2012-10-19
Posts: 4

when does linux kernel use swap, not only /proc/sys/vm/swappiness

when does linux kernel use swap, i want to reappear it exactly, what is the Algorithm, how it relates to the value of /proc/sys/vm/swappiness,
i find a clause in 2.6.0, but don't know what it mean
swap_tendency = mapped_ratio / 2 + distress + vm_swappiness;

Last edited by seanlin138 (2012-10-20 01:52:13)

Offline

#2 2012-10-19 13:11:40

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: when does linux kernel use swap, not only /proc/sys/vm/swappiness

Welcome to Arch, seanlin138. You will find that Arch users are encouraged to answer questions like this for themselves, either by using the wiki (please see this topic, which I found by searching the wiki for "swappiness") or by using a web search.

The Arch wiki is an excellent source of information.

Last edited by 2ManyDogs (2012-10-19 13:14:57)

Offline

#3 2012-10-20 01:25:06

seanlin138
Member
Registered: 2012-10-19
Posts: 4

Re: when does linux kernel use swap, not only /proc/sys/vm/swappiness

thank 2ManyDogs so much.

Offline

#4 2012-10-20 01:39:44

seanlin138
Member
Registered: 2012-10-19
Posts: 4

Re: when does linux kernel use swap, not only /proc/sys/vm/swappiness

while i am not  a e-country person, i have not describe my question clearly, i will modify the question.

Offline

#5 2012-10-20 03:44:57

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,048

Re: when does linux kernel use swap, not only /proc/sys/vm/swappiness

AS I know swappines in 2.6/3.x is 60 by default (a fixed value) and can by changed in /etc/sysctl.conf adding vm.swappiness to a value that you give, same for cache_pressure (as 100 as default) and reducted in same archive vm.vfs_cache_pressure

I think that this can help a little


Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::

Offline

#6 2012-10-23 10:41:44

seanlin138
Member
Registered: 2012-10-19
Posts: 4

Re: when does linux kernel use swap, not only /proc/sys/vm/swappiness

thanks

Offline

Board footer

Powered by FluxBB