From: Andrew Morton <akpm@linux-foundation.org>
To: Nitin Gupta <nigupta@nvidia.com>
Cc: Mel Gorman <mgorman@techsingularity.net>,
Michal Hocko <mhocko@suse.com>, Vlastimil Babka <vbabka@suse.cz>,
Matthew Wilcox <willy@infradead.org>,
Mike Kravetz <mike.kravetz@oracle.com>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
David Rientjes <rientjes@google.com>,
Nitin Gupta <nitin@nitingupta.dev>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
Linux API <linux-api@vger.kernel.org>
Subject: Re: [PATCH v3] mm: Proactive compaction
Date: Mon, 20 Apr 2020 20:26:15 -0700 [thread overview]
Message-ID: <20200420202615.daa216426294e842cb0b523c@linux-foundation.org> (raw)
In-Reply-To: <20200310222539.1981-1-nigupta@nvidia.com>
On Tue, 10 Mar 2020 15:25:39 -0700 Nitin Gupta <nigupta@nvidia.com> wrote:
> For some applications we need to allocate almost all memory as
> hugepages. However, on a running system, higher order allocations can
> fail if the memory is fragmented. Linux kernel currently does on-demand
> compaction as we request more hugepages but this style of compaction
> incurs very high latency. Experiments with one-time full memory
> compaction (followed by hugepage allocations) shows that kernel is able
> to restore a highly fragmented memory state to a fairly compacted memory
> state within <1 sec for a 32G system. Such data suggests that a more
> proactive compaction can help us allocate a large fraction of memory as
> hugepages keeping allocation latencies low.
hn, there was plenty of feedback for earlier versions, but then
everyone went quiet. I guess it's time for a refresh and resend,
please.
With some code comments, please! Is the code really so self-evident
that this:
+/* Compact all zones within a node according to proactiveness */
is the only thing which needs to be said about it? How is the reader
to know what proactive compaction actually *is*?
What does extfrag_for_order() do and what does its return value mean?
Please document /sys/kernel/mm/compaction/proactiveness in the
appropriate place under Documentation/
prev parent reply other threads:[~2020-04-21 3:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-10 22:25 Nitin Gupta
2020-04-21 3:26 ` Andrew Morton [this message]
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=20200420202615.daa216426294e842cb0b523c@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@techsingularity.net \
--cc=mhocko@suse.com \
--cc=mike.kravetz@oracle.com \
--cc=nigupta@nvidia.com \
--cc=nitin@nitingupta.dev \
--cc=rientjes@google.com \
--cc=vbabka@suse.cz \
--cc=willy@infradead.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