Re:Ruby on Rails and the importance of being stupid
by ars on Tuesday May 19, 2009 @11:57AM
(#617001)
Then set /proc/sys/vm/swappiness to 0 and be happy.
But actually linux never ejects pages to swap just for the cache. It will only eject pages for memory pressure, which, when freed, can leave extra room for cache. But it won't eject the pages in the first place for the cache.
But actually linux never ejects pages to swap just for the cache. It will only eject pages for memory pressure, which, when freed, can leave extra room for cache. But it won't eject the pages in the first place for the cache.