Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 1999 01:33:43 +0000 (GMT)
From:      Alfred Perlstein <bright@wintelcom.net>
To:        "Ronald F. Guilmette" <rfg@monkeys.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Need persistant heap code.
Message-ID:  <Pine.BSF.4.05.9909130129230.6392-100000@fw.wintelcom.net>
In-Reply-To: <25848.937203835@monkeys.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sun, 12 Sep 1999, Ronald F. Guilmette wrote:

> 
> 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.

The problem is that you didn't define a "restart" proceedure,
ie, how is one to identify or get a handle to what is actually
stored in this on disk heap?

It would be an interesting project to setup such an allocation
mechanism, I imagine one would need a special pointer type to
distinguish between real memory and on disk memory.

Perhaps if you put up a page explaining the API and restart proceedure
someone would take an interest in it, then again maybe something is
already out there that I am unaware of.

good luck,
-Alfred



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?Pine.BSF.4.05.9909130129230.6392-100000>