From owner-freebsd-hackers Wed Feb 10 10:27:51 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA00298 for freebsd-hackers-outgoing; Wed, 10 Feb 1999 10:27:51 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA00293 for ; Wed, 10 Feb 1999 10:27:50 -0800 (PST) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id LAA10939; Wed, 10 Feb 1999 11:30:30 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp04.primenet.com, id smtpd010775; Wed Feb 10 11:30:23 1999 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id LAA17659; Wed, 10 Feb 1999 11:27:15 -0700 (MST) From: Terry Lambert Message-Id: <199902101827.LAA17659@usr07.primenet.com> Subject: Re: portability of shm, mmap, pipes and socket IPC To: dg@root.com Date: Wed, 10 Feb 1999 18:27:03 +0000 (GMT) Cc: tlambert@primenet.com, dillon@apollo.backplane.com, kuku@gilberto.physik.RWTH-Aachen.DE, hackers@FreeBSD.ORG In-Reply-To: <199902101742.JAA17281@implode.root.com> from "David Greenman" at Feb 10, 99 09:42:16 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >> >:The overall size of the shared memory segment is limited to that > >> >: which can fit in the kernels virtual address space; this > >> >: artificially restricts the maximum size. > >> > >> That isn't true and hasn't been true for several years in FreeBSD. > > > >Are you sure? > > Yes, I'm quite sure. > > >>From my reading of sysv_shm.c: > > > > shmmap_s = malloc(size, M_SHM, M_WAITOK); > > > >seems to limit the size to what's allocable in the KVA. > > The above malloc allocates space for a struct shmmap_state. RTSL. Gotcha. I didn't read it in much depth; I'd assumed that "_s" was "segment", not "state". I thought the "handle" malloc was the state. Mea culpa. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message