Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 1996 09:07:12 -0400 (EDT)
From:      "Ron G. Minnich" <rminnich@Sarnoff.COM>
To:        hackers@freebsd.org
Subject:   Re: filemalloc etc. for shared memory between processes
Message-ID:  <Pine.SUN.3.91.960708090608.18917D-100000@terra>
In-Reply-To: <199607080000.UAA24967@kropotkin.gnu.ai.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> What about using one mmap'd region, then dividing it up malloc-style
> (see Knuth) instead of constanly mmapping lots of possibly tiny files?
> It may be good to look at mmalloc (distributed with gdb) for using
> malloc with mmap.  Another advantage of this is that the regions
> filemalloc()'d can hold pointers as offsets to the start of the mapped
> region that would hold valid for all processes.

I'll try to find this, I did this also but it was a few years back. I 
hacked gnu malloc to use a mapped file. 

BUT: the filemalloc I posted was explicitly for SHARED MEMORY, and that 
is why the sizes etc. were fixed: not easily changed right now after you 
fork. Doable, much harder.

ron



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960708090608.18917D-100000>