Date: Mon, 8 Jul 1996 12:57:55 +0300 From: "Andrew V. Stesin" <stesin@elvisti.kiev.ua> To: joelh@gnu.ai.mit.edu Cc: hackers@freebsd.org Subject: Re: filemalloc etc. for shared memory between processes Message-ID: <199607080957.MAA19692@office.elvisti.kiev.ua>
next in thread | raw e-mail | index | archive | help
Hi, : 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 wonder how one should properly implement locking of memory regions in this case. Will appropriate fcntl(2) be enough? : -- : http://www.wp.com/piquan --- Joel Ray Holveck --- joelh@gnu.ai.mit.edu : Fourth law of computing: : Anything that can go wro : .signature: segmentation violation -- core dumped -- With best regards -- Andrew Stesin. Phones/fax: +380 (44) { 244-0122, 276-0188, 271-3457, 271-3560 } "You may delegate authority, but not responsibility." Frank's Management Rule #1.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607080957.MAA19692>