Article View: fa.netbsd.tech.kern
Article #49Re: posix shared memory
From: YAMAMOTO Takashi
Date: Tue, 02 Apr 2013 02:27
Date: Tue, 02 Apr 2013 02:27
42 lines
2820 bytes
2820 bytes
hi, > Hi, > > yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote: >> i have userland implementation of posix shared memory. >> (attached) >> >> rmind proposed a kernel implementation while ago. >> http://mail-index.netbsd.org/tech-kern/2009/07/30/msg005599.html >> (thus cc:) >> >> which way should we go? >> >> IMO userland implementation is better because: >> - simpler >> - smaller >> - a bug would have less impact >> - "locking object in memory" functionality is better to be >> implemented with more generic api like fcntl if necessary > > We should go with the userland implementation. After some though I > basically agree with you that facilities like memory locking can be > implemented with fcntl, mount option tmpfs or whatever. > > However, I would say it would be better to create tmpfs partition > for this. A while ago I came up with practically same code, but > also checking for the fs type: > > http://www.netbsd.org/~rmind/shm.c i don't think it's a good idea to force fstype. if we want to recommend tmpfs, it's a job for sysinst, not libc. YAMAMOTO Takashi > >> >> YAMAMOTO Takashi > > -- > Mindaugas
Technical Details
Message-ID:
<fa.JybyrHweFMnTZdWFvy1q6cfkScE@ifi.uio.no>Path:
arc1-ca.pugleaf.net!p18ni32100wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!193.166.3.22.MISMATCH!newsfeed3.funet.fi!newsfeeds.funet.fi!uio.no!nntp.uio.no!.POSTED!not-for-mailReferences:
<fa.qqCXfd43VKbb+asSzBmBfN42iCQ@ifi.uio.no>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c6f4,c8504c1ed5e12aa5
X-Google-NewGroupId: yes
X-Google-Attributes: gidb7e13b6095,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.180.104.98 with SMTP id gd2mr2257315wib.0.1364869670046;
Mon, 01 Apr 2013 19:27:50 -0700 (PDT)
Path: arc1-ca.pugleaf.net!p18ni32100wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!193.166.3.22.MISMATCH!newsfeed3.funet.fi!newsfeeds.funet.fi!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Newsgroups: fa.netbsd.tech.kern
Subject: Re: posix shared memory
Date: Tue, 02 Apr 2013 02:27:49 UTC
Organization: Internet mailing list
Lines: 42
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.JybyrHweFMnTZdWFvy1q6cfkScE@ifi.uio.no>
References: <fa.qqCXfd43VKbb+asSzBmBfN42iCQ@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1364869669 12143 129.240.7.9 (2 Apr 2013 02:27:49 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Tue, 2 Apr 2013 02:27:49 +0000 (UTC)
Cc: tech-userlevel@netbsd.org, tech-kern@netbsd.org
To: rmind@netbsd.org
Delivered-To: tech-kern@netbsd.org
In-Reply-To: Your message of "Fri, 29 Mar 2013 15:48:49 +0000"
<20130329154933.7DCA214A206@mail.netbsd.org>
X-Mailer: Cue version 0.8 (111031-0948/takashi)
List-Id: tech-kern.NetBSD.org
Original-Date: Tue, 2 Apr 2013 02:27:15 +0000 (UTC)
Original-Message-Id: <20130402022716.0AAB514A400@mail.netbsd.org>
Original-References: <20130329154933.7DCA214A206@mail.netbsd.org>
Content-Type: Text/Plain; charset=us-ascii