archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <>
To: Alexander Duyck <>
Cc: Matthew Wilcox <>,
	Mel Gorman <>,,,
	Andrea Arcangeli <>,
	Dan Williams <>,
	Dave Hansen <>,
	David Hildenbrand <>,
	Michal Hocko <>,
	Alex Williamson <>
Subject: Re: [RFC PATCH 4/4] mm: Add PG_zero support
Date: Mon, 13 Apr 2020 14:05:37 -0700	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Mon, 13 Apr 2020 08:11:59 -0700 Alexander Duyck <> wrote:

> In addition, unlike madvising the page away there is a pretty 
> significant performance penalty for having to clear the page a second 
> time when the page is split or merged.

I wonder if there might be an issue with increased memory traffic (and
increased energy consumption, etc).  If a page is zeroed immediately
before getting data written into it (eg, plain old file write(),
anonymous pagefault) then we can expect that those 4096 zeroes will be
in CPU cache and mostly not written back.  But if that page was zeroed
a "long" time ago, the caches will probably have been written back. 
Net result: we go from 4k of memory traffic for a 4k page up to 8k of
memory traffic?

Also, the name CONFIG_ZERO_PAGE sounds like it has something to do with
the long established "zero page".  Confusing.  CONFIG_PREZERO_PAGE,

  reply	other threads:[~2020-04-13 21:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-12  9:09 [RFC PATCH 4/4] mm: Add PG_zero support liliangleo
2020-04-12 10:12 ` Matthew Wilcox
2020-04-13 15:11   ` Alexander Duyck
2020-04-13 21:05     ` Andrew Morton [this message]
2020-04-22 14:09       ` Vlastimil Babka
2020-04-24  0:37         ` Andrew Morton
2020-04-24  0:41           ` Matthew Wilcox
2020-04-24  7:28             ` David Hildenbrand
2020-04-24  7:55               ` Vlastimil Babka
2020-04-24  7:57                 ` David Hildenbrand
2020-04-15  5:15 ` [mm] 5ae8a9d7c8: will-it-scale.per_thread_ops -2.1% regression kernel test robot

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \ \

* 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;
as well as URLs for NNTP newsgroup(s).