From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Andi Kleen <andi@firstfloor.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
"Kirill A. Shutemov" <kirill@shutemov.name>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Ingo Molnar <mingo@redhat.com>,
Arjan van de Ven <arjan@infradead.org>,
Hugh Dickins <hugh@veritas.com>,
Ulrich Drepper <drepper@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH, v3] shmat: introduce flag SHM_MAP_NOT_FIXED
Date: Wed, 8 Oct 2008 09:33:25 +0100 [thread overview]
Message-ID: <20081008093325.3d0d3bd6@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20081007235737.GD7971@one.firstfloor.org>
> Perhaps I'm confused but my /dev/shm doesn't have any such files,
> but I see a variety of shm segments in ipcs.
>
> What would the path passed to shm_open look like?
Well right now they don't get exposed as they are created unlinked but
that is a trivial tweak to mm/shmem.c.
> > and nobody is wanting to map those at fixed addresses.
>
> You're saying it should always use the address as a search hint?
Nothing of the sort. I'm pointing out that mmap and shm_open already
provide all the needed interfaces for this for real world applications
today.
>
> Just changing the semantics unconditionally would seem risky to me. After
> all as you point out they are primarily for compatibility and for that keeping
> old semantics would seem better to me.
We don't need to change any semantics, there is a perfectly good
alternative standards based interface. At most you might want to make the
sys3 shared memory segments appear in /dev/shm/ somewhere.
Alan
--
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:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-10-08 8:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 16:15 Kirill A. Shutemov
2008-10-07 16:31 ` KOSAKI Motohiro
2008-10-07 21:10 ` Andi Kleen
2008-10-07 21:38 ` KOSAKI Motohiro
2008-10-07 23:23 ` Andi Kleen
2008-10-07 23:05 ` Alan Cox
2008-10-07 23:20 ` Andi Kleen
2008-10-07 23:40 ` Alan Cox
2008-10-07 23:57 ` Andi Kleen
2008-10-08 8:33 ` Alan Cox [this message]
2008-10-08 8:34 ` Alan Cox
2008-10-08 8:43 ` Andi Kleen
2008-10-08 8:58 ` Alan Cox
2008-10-08 9:11 ` Andi Kleen
2008-10-08 10:20 ` Alan Cox
2008-10-08 11:02 ` Andi Kleen
2008-10-08 12:46 ` Alan Cox
2008-10-07 16:54 ` Alan Cox
2008-10-08 8:57 ` Michael Kerrisk
2008-10-08 9:35 ` Kirill A. Shutemov
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=20081008093325.3d0d3bd6@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=arjan@infradead.org \
--cc=drepper@redhat.com \
--cc=hugh@veritas.com \
--cc=kirill@shutemov.name \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@redhat.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