All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andi Kleen <andi@firstfloor.org>,
	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 01:20:59 +0200	[thread overview]
Message-ID: <20081007232059.GU20740@one.firstfloor.org> (raw)
In-Reply-To: <20081008000518.13f48462@lxorguk.ukuu.org.uk>

On Wed, Oct 08, 2008 at 12:05:18AM +0100, Alan Cox wrote:
> On Tue, 7 Oct 2008 23:10:38 +0200
> Andi Kleen <andi@firstfloor.org> wrote:
> 
> > > Sorry, no.
> > > This description still doesn't explain why this interface is needed.
> > > 
> > > The one of the points is this interface is used by another person or not.
> > > You should explain how large this interface benefit has.
> > > 
> > > Andi kleen explained this interface _can_  be used another one.
> > > but nobody explain who use it actually.
> > 
> > Anyone who doesn't want to use fixed addresses. 
> 
> Can use shm_open and mmap to get POSIX standard shm behaviour via a sane

I don't think shm_open can attach to SYSV shared segments. Or are you
proposing to add "sysvshmfs" to make that possible? 

> interface without adding more crap to the sys3 shm madness. 
> 
> Sorry this patch is completely bogus - introduce the user programs
> involved to 1990s technology. 

As already listed in an earlier email, but here again:

- There are legacy interfaces that cannot be really changed who use sysv shm
(e.g. X shm and others -- just do a ipcs on your system) 
- An system call emulation as in qemu obviously has to implement the
existing system call semantics.

-Andi

-- 
ak@linux.intel.com

WARNING: multiple messages have this Message-ID (diff)
From: Andi Kleen <andi@firstfloor.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Andi Kleen <andi@firstfloor.org>,
	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 01:20:59 +0200	[thread overview]
Message-ID: <20081007232059.GU20740@one.firstfloor.org> (raw)
In-Reply-To: <20081008000518.13f48462@lxorguk.ukuu.org.uk>

On Wed, Oct 08, 2008 at 12:05:18AM +0100, Alan Cox wrote:
> On Tue, 7 Oct 2008 23:10:38 +0200
> Andi Kleen <andi@firstfloor.org> wrote:
> 
> > > Sorry, no.
> > > This description still doesn't explain why this interface is needed.
> > > 
> > > The one of the points is this interface is used by another person or not.
> > > You should explain how large this interface benefit has.
> > > 
> > > Andi kleen explained this interface _can_  be used another one.
> > > but nobody explain who use it actually.
> > 
> > Anyone who doesn't want to use fixed addresses. 
> 
> Can use shm_open and mmap to get POSIX standard shm behaviour via a sane

I don't think shm_open can attach to SYSV shared segments. Or are you
proposing to add "sysvshmfs" to make that possible? 

> interface without adding more crap to the sys3 shm madness. 
> 
> Sorry this patch is completely bogus - introduce the user programs
> involved to 1990s technology. 

As already listed in an earlier email, but here again:

- There are legacy interfaces that cannot be really changed who use sysv shm
(e.g. X shm and others -- just do a ipcs on your system) 
- An system call emulation as in qemu obviously has to implement the
existing system call semantics.

-Andi

-- 
ak@linux.intel.com

--
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>

  reply	other threads:[~2008-10-07 23:15 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-07 16:15 [PATCH, v3] shmat: introduce flag SHM_MAP_NOT_FIXED Kirill A. Shutemov
2008-10-07 16:15 ` Kirill A. Shutemov
2008-10-07 16:31 ` KOSAKI Motohiro
2008-10-07 16:31   ` KOSAKI Motohiro
2008-10-07 21:10   ` Andi Kleen
2008-10-07 21:10     ` Andi Kleen
2008-10-07 21:38     ` KOSAKI Motohiro
2008-10-07 21:38       ` KOSAKI Motohiro
2008-10-07 23:23       ` Andi Kleen
2008-10-07 23:23         ` Andi Kleen
2008-10-07 23:05     ` Alan Cox
2008-10-07 23:05       ` Alan Cox
2008-10-07 23:20       ` Andi Kleen [this message]
2008-10-07 23:20         ` Andi Kleen
2008-10-07 23:40         ` Alan Cox
2008-10-07 23:40           ` Alan Cox
2008-10-07 23:57           ` Andi Kleen
2008-10-07 23:57             ` Andi Kleen
2008-10-08  8:33             ` Alan Cox
2008-10-08  8:33               ` Alan Cox
2008-10-08  8:34             ` Alan Cox
2008-10-08  8:34               ` Alan Cox
2008-10-08  8:43               ` Andi Kleen
2008-10-08  8:43                 ` Andi Kleen
2008-10-08  8:58                 ` Alan Cox
2008-10-08  8:58                   ` Alan Cox
2008-10-08  9:11                   ` Andi Kleen
2008-10-08  9:11                     ` Andi Kleen
2008-10-08 10:20                     ` Alan Cox
2008-10-08 10:20                       ` Alan Cox
2008-10-08 11:02                       ` Andi Kleen
2008-10-08 11:02                         ` Andi Kleen
2008-10-08 12:46                         ` Alan Cox
2008-10-08 12:46                           ` Alan Cox
2008-10-07 16:54 ` Alan Cox
2008-10-07 16:54   ` Alan Cox
     [not found] ` <1223396117-8118-1-git-send-email-kirill-oKw7cIdHH8eLwutG50LtGA@public.gmane.org>
2008-10-08  8:57   ` Michael Kerrisk
2008-10-08  8:57     ` Michael Kerrisk
2008-10-08  8:57     ` Michael Kerrisk
     [not found]     ` <517f3f820810080157j3994ff10j8518178af02e5b22-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-10-08  9:35       ` Kirill A. Shutemov
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=20081007232059.GU20740@one.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.