From: li nux <lnxluv@yahoo.com>
To: linux <linux-kernel@vger.kernel.org>
Subject: rmap.c: try_to_unmap_file(): VM_LOCKED not respected
Date: Mon, 13 Jun 2005 22:14:05 -0700 (PDT) [thread overview]
Message-ID: <20050614051405.42342.qmail@web33307.mail.mud.yahoo.com> (raw)
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:
try_to_unmap_cluster
try_to_unmap_file
try_to_unmap
shrink_list
__pagevec_release
shrink_cache
shrink_zone
balance_pgdat
prepare_to_wait
kswapd
Any idea why VM_LOCKED is not being respected ?
do {
list_for_each_entry(vma, &mapping->i_mmap_nonlinear,
shared.vm_set.list) {
if (vma->vm_flags & (VM_LOCKED|VM_RESERVED))
continue;
cursor = (unsigned long) vma->vm_private_data;
while (vma->vm_mm->rss &&
cursor < max_nl_cursor &&
cursor < vma->vm_end - vma->vm_start) {
try_to_unmap_cluster(cursor, &mapcount, vma);
cursor += CLUSTER_SIZE;
}
.....<snip>
} while (max_nl_cursor <= max_nl_size);
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next reply other threads:[~2005-06-14 5:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-14 5:14 li nux [this message]
2005-06-14 5:22 ` William Lee Irwin III
2005-06-14 5:48 ` li nux
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=20050614051405.42342.qmail@web33307.mail.mud.yahoo.com \
--to=lnxluv@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/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®