All of lore.kernel.org
 help / color / mirror / Atom feed
* Why would some process swap in place of reclaiming free(cached) memory
@ 2013-02-20 15:01 Soham Chakraborty
  2013-02-20 16:31 ` michi1 at michaelblizek.twilightparadox.com
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Soham Chakraborty @ 2013-02-20 15:01 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

I posted this question in linux-mm list as well but it didn't spawn much
interest. So, I am putting the same question here also. Would love if
someone can put some traction.

The question is salivating and simple. When we have free and lotsa cached
memory in a system (irrespective of distro and kernel), why would some
process end up in swap space, I understand the overcommit mode of vm, the
default value of 0 and what it does. I also know that the cache might be
dirty and we don't might not want to allocate free pages thinking that we
might go under the watermark of low. But, I mainly end up getting this
question from end users - why would things swap if I have free memory. I
guess, technically we can't stop swapping even if we set vm.swappiness to 0
but well, I think I have said what I need to said. If you need data, I can
provide those.

Any reference to source where it gives the condition to transfer some pages
to swap, despite of having free memory, would be highly appreciated. I
tried to find in mm/vmscan.c but didn't get much success.

Soham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130220/9db9c66e/attachment.html 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-02-22  4:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-20 15:01 Why would some process swap in place of reclaiming free(cached) memory Soham Chakraborty
2013-02-20 16:31 ` michi1 at michaelblizek.twilightparadox.com
2013-02-20 19:43 ` Greg Freemyer
2013-02-21  5:15   ` Mandeep Sandhu
2013-02-21  5:19     ` Soham Chakraborty
2013-02-22  4:23       ` Greg Freemyer
2013-02-22  3:36 ` Mulyadi Santosa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.