linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nigel Cunningham <ncunningham@clear.net.nz>
To: Linux Memory Management <linux-mm@kvack.org>
Subject: RFC: How to write a page to swap with [near] zero impact on memory?
Date: Mon, 24 Feb 2003 13:47:10 +1300	[thread overview]
Message-ID: <1046047118.9314.49.camel@laptop-linux.cunninghams> (raw)

Hi all.

I'm beginning to port the 2.4 beta 18 version, which allows the user to
suspend to disk what is pretty close to a complete image of RAM at the
time the suspend is initiated. Since this implies working in conditions
where there might be only a few hundred pages available, I carefully
accounted for pages in use and worked to free buffers and swapcache
pages that were added during the image-saving process. I'm wanting to
implement the same thing under 2.5, and would like advice on the best
way to do it. (Ideally, I'd like to write a page and have everything at
the end exactly as it was at the start, except that a copy of the page
is on disk as well as in memory).

I've spent some time looking at mm/*.c, but I won't pretend for a moment
to have a fraction of the knowledge that you guys have. I thus thought
I'd be wise to talk with you all before I submit any patches for
comments. What suggestions would you provide about minimising the impact
of writing a page to swap? 

Thanks in advance for any help and regards,

Nigel

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>

                 reply	other threads:[~2003-02-24  0:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1046047118.9314.49.camel@laptop-linux.cunninghams \
    --to=ncunningham@clear.net.nz \
    --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