From: Christoph Hellwig <hch@infradead.org>
To: Andi Kleen <ak@muc.de>
Cc: Ray Bryant <raybry@engr.sgi.com>,
Christoph Hellwig <hch@engr.sgi.com>,
linux-mm <linux-mm@kvack.org>,
lhms <lhms-devel@lists.sourceforge.net>
Subject: Re: manual page migration and madvise/mbind
Date: Sat, 28 May 2005 09:49:29 +0100 [thread overview]
Message-ID: <20050528084929.GA19027@infradead.org> (raw)
In-Reply-To: <20050518012627.GA33395@muc.de>
On Wed, May 18, 2005 at 03:26:27AM +0200, Andi Kleen wrote:
> > This is something quite a bit different than what madvise() or mbind()
> > do today. (They just manipulate vma's AFAIK.)
>
> Nah, mbind manipulates backing objects too, in particular for shared
> memory. It is not right now implemented for files, but that was planned
> and Steve L's patches went into that direction with some limitations.
>
> And yes, the state would need to be stored in the address_space, which
> is shared. In my version it was in private backing store objects.
> Check Steve's patch.
>
> The main problem I see with the "hack ld.so" approach is that it
> doesn't work for non program files. So if you really want to handle
> them you would need a daemon that sets the policies once a file
> is mapped or hack all the programs to set the policies. I don't
> see that as being practicable. Ok you could always add a "sticky" process
> policy that actually allocates mempolicies for newly read files
> and so marks them using your new flags. But that would seem
> somewhat ugly to me and is probably incompatible with your batch manager
> anyways. The only sane way to handle arbitary files like this
> would be the xattr.
Storing the full memory policy in the extended attributes seems at least
a little less hackish then what's done currently. We should read the policy
once at mmap time only instead of letting VM code poke into xattr details,
though.
--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
prev parent reply other threads:[~2005-05-28 8:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-17 16:44 Ray Bryant
2005-05-17 16:55 ` Ray Bryant
2005-05-18 1:26 ` Andi Kleen
2005-05-18 4:02 ` Ray Bryant
2005-05-28 8:49 ` Christoph Hellwig [this message]
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=20050528084929.GA19027@infradead.org \
--to=hch@infradead.org \
--cc=ak@muc.de \
--cc=hch@engr.sgi.com \
--cc=lhms-devel@lists.sourceforge.net \
--cc=linux-mm@kvack.org \
--cc=raybry@engr.sgi.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