From owner-freebsd-arch@FreeBSD.ORG Tue Jul 9 23:14:57 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1E6E472F; Tue, 9 Jul 2013 23:14:57 +0000 (UTC) (envelope-from jordan.hubbard@gmail.com) Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id E3E6E12FB; Tue, 9 Jul 2013 23:14:56 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id fb1so6066247pad.37 for ; Tue, 09 Jul 2013 16:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:x-mailer:from:subject:date :to; bh=fL6zDBfH3mn0Ww5EY/M/YFbMzCvb3pq4pMH5AoVuXKE=; b=hDMpJKJK9/2nRANV+yqLy5nYm/fH1e2spCI4Z9tTnYYj7N/+OmxdeeVuJCWVuxa5iG hBYDq69u8yW6DTEwwMLKBg126j29+vOv2tAKYhav/kcDnpX+FnvL1XaxJPkze3y+/s8u vnCGqNUEle3thEgD6GHq7/0ga4gQ+weBD2RaAJSq01SXqWrEzt0fqzPgmQ4fzboUt8fU jR3QWoUWc3jGjjyvIyvNnyzZslJfAdxHmf72NaJetIvuikFMXTz38LP44tKSjQx3FbXs fpQlyrJTDhtwASzjB0dYCf74gmYtj9gkLn1uTyGN2s7fp/mq14u1jiD8Uz4SeWDiV0yS wg6g== X-Received: by 10.68.131.168 with SMTP id on8mr28564965pbb.97.1373411696736; Tue, 09 Jul 2013 16:14:56 -0700 (PDT) Received: from [10.191.236.221] (81.sub-70-197-25.myvzw.com. [70.197.25.81]) by mx.google.com with ESMTPSA id yj2sm30391495pbb.40.2013.07.09.16.14.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 16:14:55 -0700 (PDT) References: <20130704215329.GG1402@garage.freebsd.pl> <20130708213351.GB1405@garage.freebsd.pl> <201307091039.26835.jhb@freebsd.org> Mime-Version: 1.0 (1.0) In-Reply-To: <201307091039.26835.jhb@freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: X-Mailer: iPad Mail (10B329) From: Jordan Hubbard Subject: Re: General purpose library for name/value pairs. Date: Tue, 9 Jul 2013 16:14:52 -0700 To: John Baldwin Cc: "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 23:14:57 -0000 Yes, for anonymous shms this is certainly true. Hey, if the application pro= grammer *wants* to just pass a fd reference then there's certainly nothing p= reventing them from doing so in either case, I'm just suggesting that having= an explicit OOB type for shared memory (named or otherwise) can be a good t= hing too. - Jordan=20 Sent from my iPad On Jul 9, 2013, at 7:39, John Baldwin wrote: > I'll only speak to the GC point. For anonymous shm's (SHM_ANON), the segm= ent > is in fact GC'd on last close as there is no name to hold a reference to i= t.