All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Lieven <pl@dlh.net>
To: linux-kernel@vger.kernel.org
Subject: free page zeroing and ksm
Date: Wed, 25 Jan 2012 17:22:06 +0100	[thread overview]
Message-ID: <4F202C2E.7040100@dlh.net> (raw)

Hi all,

working a lot with KVM and KSM I came across the question if Linux (like 
e.g. Windows) zeroes out free pages
after usage. I came across some patches for page sanitization which 
where submitted in 2009 and have not
been merged for various reasons.

Working with memory deduplication the primary goal is not sanitization 
of the pages, but have them not contain
any garbage after they are freed.

My question is if there is any mechanism in Linux to zero out unused 
pages? I found some people claiming that
there is such a mechanism, but I found no reference.

If there is not would it be possible to implement a kernel process that 
scans for unused pages and zeroes them
out during idle time?

Thanks,
Peter

                 reply	other threads:[~2012-01-25 16:32 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=4F202C2E.7040100@dlh.net \
    --to=pl@dlh.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.