🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.netbsd.tech.kern
Article #50

Re: posix shared memory

#50
From: Eric Haszlakiewicz
Date: Tue, 02 Apr 2013 20:25
25 lines
2787 bytes
On Tue, Apr 02, 2013 at 02:27:15AM +0000, YAMAMOTO Takashi wrote:
> > 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
> > 
> > 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.

Wouldn't the choice of filesystem have a significant impact on the
behaviour?  (speed, persistence, need for an actual disk, etc...)
Perhaps forcing it might not be a good idea, but it seems like 
requiring something to be configured, and not having a good default
that is known to work, will cause an unnecessary waste of time
for anyone that might try to use this.

eric
Technical Details
Message-ID: <fa.DiUhLeRLRhFzsNj0T1mH8bW9JN4@ifi.uio.no>
Path: arc1-ca.pugleaf.net!p18ni33529wiv.0!nntp.google.com!goblin3!goblin2!goblin1!goblin.stu.neva.ru!feeder2.news.elisa.fi!feeder1.news.elisa.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!uio.no!nntp.uio.no!.POSTED!not-for-mail
References: <fa.qqCXfd43VKbb+asSzBmBfN42iCQ@ifi.uio.no> <fa.JybyrHweFMnTZdWFvy1q6cfkScE@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.189.209 with SMTP id gk17mr3434746wic.7.1364934329265;
        Tue, 02 Apr 2013 13:25:29 -0700 (PDT)
Path: arc1-ca.pugleaf.net!p18ni33529wiv.0!nntp.google.com!goblin3!goblin2!goblin1!goblin.stu.neva.ru!feeder2.news.elisa.fi!feeder1.news.elisa.fi!newsfeed2.funet.fi!newsfeeds.funet.fi!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Eric Haszlakiewicz <erh@nimenees.com>
Newsgroups: fa.netbsd.tech.kern
Subject: Re: posix shared memory
Date: Tue, 02 Apr 2013 20:25:28 UTC
Organization: Internet mailing list
Lines: 25
Sender: tech-kern-owner@NetBSD.org
Message-ID: <fa.DiUhLeRLRhFzsNj0T1mH8bW9JN4@ifi.uio.no>
References: <fa.qqCXfd43VKbb+asSzBmBfN42iCQ@ifi.uio.no> <fa.JybyrHweFMnTZdWFvy1q6cfkScE@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1364934328 19981 129.240.7.9 (2 Apr 2013 20:25:28 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Tue, 2 Apr 2013 20:25:28 +0000 (UTC)
User-Agent: Mutt/1.4.2.1i
Cc: rmind@netbsd.org, tech-userlevel@netbsd.org, tech-kern@netbsd.org
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
Delivered-To: tech-kern@netbsd.org
X-Virus-Scanned: amavisd-new at NetBSD.org
In-Reply-To: <20130402022716.0AAB514A400@mail.netbsd.org>
List-Id: tech-kern.NetBSD.org
Original-Date: Tue, 2 Apr 2013 15:24:57 -0500
Original-Message-Id: <20130402202457.GA4795@nimenees.com>
Original-References: <20130329154933.7DCA214A206@mail.netbsd.org> <20130402022716.0AAB514A400@mail.netbsd.org>
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline