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: Tue, 14 Jun 2005 00:25:01 -0700 (PDT) [thread overview]
Message-ID: <20050614072501.2768.qmail@web33303.mail.mud.yahoo.com> (raw)
In-Reply-To: <20050614063150.GI3879@holomorphy.com>
--- William Lee Irwin III <wli@holomorphy.com> wrote:
> On Mon, Jun 13, 2005 at 10:48:13PM -0700, li nux
> wrote:
> > I first use mmap(MAP_LOCKED) and then
> > remap_file_pages.
> > This should set VM_LOCKED in the vma.
>
> This is very odd. Could you get a backtrace with
> code addresses resolved
> to line numbers?
>
> When you get backtraces, it should show program
> counters (EIP's on i386,
> RIP's on x86-64, other names on others). If you
> compile with debugging
> symbols and keep the vmlinux, you can use addr2line
> to resolve them to
> addresses. Hopefully this is enough for you to go
> on.
>
> If you can provide this information, it would be
> very helpful wrt.
> resolving your issue.
>
> Thanks.
> -- wli
Thanks a lot wli.
Sorry, I dont have that machine where i reproduced
this problem. Stack trace (in my first mail) is the
only info that I have with me. There is no other
application running on the system which uses
remap_file_pages (non-linear vma)
Coming to my original question. when I do
mmap(MAP_LOCKED) VM_LOCKED gets set for the vma.
who sets VM_RESERVED, does this flag has to do
anything when VM_LOCKED is already set ?
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);
__________________________________
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/
next prev parent reply other threads:[~2005-06-14 7:25 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
2005-06-14 6:31 ` William Lee Irwin III
2005-06-14 7:25 ` li nux [this message]
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=20050614072501.2768.qmail@web33303.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®