From: "gnehzuil.lzheng@gmail.com" <gnehzuil.lzheng@gmail.com>
To: Alexey Ivanov <rbtz@yandex-team.ru>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: mapped pagecache pages vs unmapped pages
Date: Fri, 06 Apr 2012 15:16:36 +0800 [thread overview]
Message-ID: <4F7E9854.1020904@gmail.com> (raw)
In-Reply-To: <37371333672160@webcorp7.yandex-team.ru>
On 04/06/2012 08:29 AM, Alexey Ivanov wrote:
> 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)?
>
Hi Alexey,
Cc to linux-mm mailing list.
I have met the similar problem and I have sent a mail to discuss it.
Maybe it can help you
(http://marc.info/?l=linux-mm&m=132947026019538&w=2).
Now Konstantin has sent a patch set to try to expand vm_flags from 32
bit to 64 bit. Then we can add the new flag into vm_flags and
prioritize mmaped pages in madvise(2).
Regards,
Zheng
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next parent reply other threads:[~2012-04-06 7:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <37371333672160@webcorp7.yandex-team.ru>
2012-04-06 7:16 ` gnehzuil.lzheng [this message]
2012-04-09 17:11 ` mapped pagecache pages vs unmapped pages 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F7E9854.1020904@gmail.com \
--to=gnehzuil.lzheng@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rbtz@yandex-team.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).