Date: Tue, 14 Sep 1999 09:14:44 -0600 From: Charles Randall <crandall@matchlogic.com> To: questions@freebsd.org Cc: rfg@monkeys.com Subject: RE: Need persistant heap code. Message-ID: <64003B21ECCAD11185C500805F31EC0303E72FE2@houston.matchlogic.com>
next in thread | raw e-mail | index | archive | help
Take a look at Ralf Engelschall's mm library. http://www.engelschall.com/sw/mm http://www.freshmeat.net/appindex/1999/03/12/921238949.html His site appears to be down at the moment. It provides a portable, malloc()-like interface to shared memory. If you can force it to use mmap() and modify the code to mmap() a file instead of shared memory. This is a much cleaner and portable implementation along the lines of the mm_malloc() library I wrote for my employer (source not available). Charles -----Original Message----- From: Ronald F. Guilmette [mailto:rfg@monkeys.com] Sent: Monday, September 13, 1999 12:24 AM To: questions@freebsd.org Subject: Need persistant heap code. I need to find (or, if necessary, build) some package that will provide essentially the same functionality as malloc and free, except for the fact that data placed into the allocated regions should be persistant, i.e. stored in a disk file, even after the program using these primitives terminates. Ideally, the code should do allocation very efficiently as, for example, the GNU malloc package does. It is also essential that the code be able to expand the disk file, as necessary, to accomodate new allocation requests. But the total amount of space that will be allocated in this persistant heap at any given time will never exceed 2GB. And of course, I'd like this as C source code and I need it to run on FreeBSD. Anybody ever heard of such a thing? If so, where might I be able to get a copy? Please understand, I don't need any extraordinarily fancy persistance package... just persistant versions of malloc and free, with maybe calloc thrown in, just for good measure. Any help would be appreciated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64003B21ECCAD11185C500805F31EC0303E72FE2>