linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* persistent heap design advice
@ 1999-04-08 17:23 Keith Morgan
  1999-04-08 22:00 ` Ingo Oeser
  1999-04-09  1:42 ` Eric W. Biederman
  0 siblings, 2 replies; 4+ messages in thread
From: Keith Morgan @ 1999-04-08 17:23 UTC (permalink / raw)
  To: linux-mm

I am interested in creating a persistent heap library and would
appreciate any suggestions on how to proceed. The 'persistent heap'
would be a region of virtual memory backed by a file and could be
expanded or contracted.

In order to build my 'persistent heap' it seems like I need a
fundamental facility that isn't provided by Linux. Please correct me if
I'm wrong! It would be something like mmap() ... but different. The
facility call it phmap for starters) would:

-map virtual addresses to a user-specified file
-coordinate the expansion/contraction of the file and the virtual
address space
-provide ram cache [of user-specified number of pages (cache itself is
nonpagable)]*
-provide load-on-demand of data from the file into the cache
-swap LRU pages back to the file when cache full

[]* I'm not sure if this is the right approach. I want to avoid paging
out user program/data when traversing very large 'persistent heaps'.

I an interested in writing at the highest possible level to create the
phmap facility. At this point my questions are very broad (I'm not
looking for a cookbook, just trying to prune the search space):

-Is is possible to hack the mmap() source to create it?
-If not, are there kernel/vm hooks that can be used to create it?
-If not these, how can it be done? (hopefully without hacking into the
kernel)

I've read the LDP documents on the memory architecture and Linux Device
Drivers is on its way from amazon.com. I am also starting to read the mm
and arch/../mm source but I must admit that I don't have a coherent
picture of memory management yet. Thanks for any insight.

Keith Morgan


--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-04-09  2:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-08 17:23 persistent heap design advice Keith Morgan
1999-04-08 22:00 ` Ingo Oeser
1999-04-09  1:42 ` Eric W. Biederman
1999-04-09  2:50   ` Kanoj Sarcar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox