public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mapped pagecache pages vs unmapped pages
@ 2012-04-06  0:29 Alexey Ivanov
  2012-04-06  7:16 ` gnehzuil.lzheng
  0 siblings, 1 reply; 9+ messages in thread
From: Alexey Ivanov @ 2012-04-06  0:29 UTC (permalink / raw)
  To: linux-kernel

In progress of migration from FreeBSD to Linux and we found some strange behavior: periodically running tasks (like rsync/p2p deployment) evict mapped pages from memory.

>From my little research I've found following lkml thread:
https://lkml.org/lkml/2008/6/11/278
And more precisely this commit: https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4f98a2fee8acdb4ac84545df98cccecfd130f8db
which along with splitting LRU into "anon" and "file" removed support of reclaim_mapped.

Is there a knob to prioritize mapped memory over unmapped (without modifying all apps to use O_DIRECT/fadvise/madvise or mlocking our data in memory) or at least some way to change proportion of Active(file)/Inactive(file)?

-- 
Sincerely,
Alexey Ivanov

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

end of thread, other threads:[~2012-04-10  1:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06  0:29 mapped pagecache pages vs unmapped pages Alexey Ivanov
2012-04-06  7:16 ` gnehzuil.lzheng
2012-04-09 17:11   ` Alexey Ivanov
2012-04-09 18:14     ` Rik van Riel
2012-04-09 23:50       ` Alexey Ivanov
2012-04-10  0:31         ` Minchan Kim
2012-04-10  0:49           ` Rik van Riel
2012-04-10  1:25             ` Minchan Kim
2012-04-09 18:17     ` Ying Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox