From owner-freebsd-questions Tue Sep 14 8:14:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from houston.matchlogic.com (houston.matchlogic.com [205.216.147.127]) by hub.freebsd.org (Postfix) with ESMTP id 9B58E15302 for ; Tue, 14 Sep 1999 08:14:48 -0700 (PDT) (envelope-from crandall@matchlogic.com) Received: by houston.matchlogic.com with Internet Mail Service (5.5.2448.0) id ; Tue, 14 Sep 1999 09:14:47 -0600 Message-ID: <64003B21ECCAD11185C500805F31EC0303E72FE2@houston.matchlogic.com> From: Charles Randall To: questions@freebsd.org Cc: rfg@monkeys.com Subject: RE: Need persistant heap code. Date: Tue, 14 Sep 1999 09:14:44 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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