From: li nux <lnxluv@yahoo.com>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: linux <linux-kernel@vger.kernel.org>
Subject: Re: rmap.c: try_to_unmap_file(): VM_LOCKED not respected
Date: Mon, 13 Jun 2005 22:48:13 -0700 (PDT) [thread overview]
Message-ID: <20050614054813.63362.qmail@web33314.mail.mud.yahoo.com> (raw)
In-Reply-To: <20050614052219.GH3879@holomorphy.com>
I first use mmap(MAP_LOCKED) and then
remap_file_pages.
This should set VM_LOCKED in the vma.
-li
--- William Lee Irwin III <wli@holomorphy.com> wrote:
> On Mon, Jun 13, 2005 at 10:14:05PM -0700, li nux
> wrote:
> > My application is using remap_file_pages and
> mlocks
> > those pages.
> > So in the code of try_to_unmap_file (see below),
> > I should never reach the call to
> try_to_unmap_cluster,
> > because for those pages VM_LOCKED is always set.
> > But, under heavy load I am seeing
> try_to_unmap_cluster
> > is getting called. Stack:
>
> Does your app use remap_file_pages() before mlock()?
>
> If so, the VM may be trying to reclaim pages between
> the call to
> remap_file_pages() and the call to mlock().
>
>
> -- wli
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
__________________________________
Discover Yahoo!
Have fun online with music videos, cool games, IM and more. Check it out!
http://discover.yahoo.com/online.html
next prev parent reply other threads:[~2005-06-14 5:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-14 5:14 li nux
2005-06-14 5:22 ` William Lee Irwin III
2005-06-14 5:48 ` li nux [this message]
2005-06-14 6:31 ` William Lee Irwin III
2005-06-14 7:25 ` li nux
2005-06-14 13:51 ` Hugh Dickins
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=20050614054813.63362.qmail@web33314.mail.mud.yahoo.com \
--to=lnxluv@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wli@holomorphy.com \
/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
all inboxes | Powered by JetHome®