From: "Keith Morgan" <kmorgan@inter-tax.com>
To: linux-mm@kvack.org
Subject: persistent heap design advice
Date: Thu, 8 Apr 1999 12:23:36 -0500 [thread overview]
Message-ID: <013f01be81e4$88f07860$0201a8c0@edison.inter-tax.com> (raw)
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/
next reply other threads:[~1999-04-08 17:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-08 17:23 Keith Morgan [this message]
1999-04-08 22:00 ` Ingo Oeser
1999-04-09 1:42 ` Eric W. Biederman
1999-04-09 2:50 ` Kanoj Sarcar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='013f01be81e4$88f07860$0201a8c0@edison.inter-tax.com' \
--to=kmorgan@inter-tax.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox