public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: mouschi@wi.rr.com
To: linux-kernel@vger.kernel.org
Subject: Interesting VM feature?
Date: Thu, 14 Aug 2003 21:17:07 -0500	[thread overview]
Message-ID: <13dedd139cb9.139cb913dedd@rdc-kc.rr.com> (raw)

(Please CC: me,)

Hi,

I've recently come across someone porting some code
from windows that trys to implement an efficient
memory pool using some VM tricks. I have no idea if
linux has an equivalent to this feature (described
below), and wouldn't know what to even search for to
find out.

What this mempool wants to do is to be able to
allocate a block of memory and tell the kernel which
pages from it can be outright discarded, instead of
swapped out when memory starts to get crowded. 

Now, from looking at mel's docs, it looks to me like
this would mean letting the application directly
mark pages clean. But it would also mean finding any
swapped out versions of this page and deallocating
them, otherwise if the page is discarded and then
used again, time would be wasted swapping in garbage.

I'm going to keep reading. If this is already
implemented, or if the efficiency gains would be
nil, somebody yell at me before I start crashing my
kernel with attempts at doing this myself. :-) It
seems so trivial after all...

Thanks,
Ted Kaminski


             reply	other threads:[~2003-08-15  2:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-15  2:17 mouschi [this message]
2003-08-15 12:37 ` Interesting VM feature? jlnance
2003-08-15 12:57 ` Jamie Lokier
  -- strict thread matches above, loose matches on Subject: below --
2003-08-15 19:56 mouschi
2003-08-15 20:00 ` Mike Fedyk
2003-08-15 21:19   ` Jamie Lokier
2003-08-21  2:24     ` H. Peter Anvin
2003-08-21 11:59       ` Jeff Dike

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=13dedd139cb9.139cb913dedd@rdc-kc.rr.com \
    --to=mouschi@wi.rr.com \
    --cc=linux-kernel@vger.kernel.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