From: Hugh Dickins <hugh@veritas.com>
To: Brent Casavant <bcasavan@sgi.com>
Cc: Andrew Morton <akpm@osdl.org>, Robin Holt <holt@sgi.com>,
ak@suse.de, linux-kernel@vger.kernel.org
Subject: Re: [Patch] Add tmpfs options for memory placement policies (Resend with corrected addresses).
Date: Sat, 14 Jan 2006 07:04:24 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.61.0601140648490.4260@goblin.wat.veritas.com> (raw)
In-Reply-To: <20060113152228.W18980@chenjesu.americas.sgi.com>
On Fri, 13 Jan 2006, Brent Casavant wrote:
> On Fri, 13 Jan 2006, Andrew Morton wrote:
>
> > Confused. Is this for applications which cannot be taught to use the
> > mempolicy API?
>
> In general yes. Anything that writes into a tmpfs filesystem is liable
> to disproportionately decrease the available memory on a particular node.
> Since there's no telling what sort of application (e.g. dd/cp/cat) might be
> dropping large files there, this lets the admin choose the appropriate
> default behavior for their site's situation.
I look at it differently, and would answer Andrew's question with "no"
rather than "yes". The mempolicy API applies only to userspace mappings:
so it covers shared memory fine, but cannot be applied to tmpfs files.
Whereas mount's mpol= applies to tmpfs files, and (unfortunately?) cannot
be applied to shm (since that's on an internal mount with no options).
The only overlap comes when a tmpfs file is mmap'ed: then it's possible
to apply the mempolicy API to it, and refine what mount's mpol= defined.
There's been talk in the past of mempolicy for pagecache, which would
also allow mount's mpol= to be refined per file; but that's not appeared.
Hugh
prev parent reply other threads:[~2006-01-14 7:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 16:04 [Patch] Add tmpfs options for memory placement policies Robin Holt
2006-01-13 16:21 ` [Patch] Add tmpfs options for memory placement policies (Resend with corrected addresses) Robin Holt
2006-01-13 20:23 ` Andrew Morton
2006-01-13 21:25 ` Brent Casavant
2006-01-14 7:04 ` Hugh Dickins [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=Pine.LNX.4.61.0601140648490.4260@goblin.wat.veritas.com \
--to=hugh@veritas.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=bcasavan@sgi.com \
--cc=holt@sgi.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®