Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601831

Re: [PATCH v3 2/8] mm, compaction: remove redundant watermark check in compact_finished()

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Joonsoo Kim <iamjoonsoo.kim@lge.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 2/8] mm, compaction: remove redundant watermark check in compact_finished()
Date Thu, 16 Mar 2017 02:30:01 +0100
Message-ID <tlsoN-7DD-5@gated-at.bofh.it> (permalink)
References <tinbX-80A-5@gated-at.bofh.it> <tinbX-80A-13@gated-at.bofh.it>
X-Original-To Vlastimil Babka <vbabka@suse.cz>
X-Original-Senderip 156.147.1.151
X-Original-Mailfrom iamjoonsoo.kim@lge.com
X-Original-Senderip 165.244.249.25
X-Original-Mailfrom iamjoonsoo.kim@lge.com
X-Original-Senderip 10.177.222.138
X-Original-Mailfrom iamjoonsoo.kim@lge.com
MIME-Version 1.0
User-Agent Mutt/1.5.21 (2010-09-15)
X-Mimetrack Itemize by SMTP Server on LGEKRMHUB07/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/16 10:28:47, Serialize by Router on LGEKRMHUB07/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/16 10:28:48, Serialize complete at 2017/03/16 10:28:48
Content-Type text/plain; charset="us-ascii"
Content-Disposition inline
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 27
Organization linux.* mail to news gateway
X-Original-Cc Andrew Morton <akpm@linux-foundation.org>, <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>, Johannes Weiner <hannes@cmpxchg.org>, Mel Gorman <mgorman@techsingularity.net>, David Rientjes <rientjes@google.com>, <kernel-team@fb.com>, <kernel-team@lge.com>
X-Original-Date Thu, 16 Mar 2017 10:30:19 +0900
X-Original-Message-ID <20170316013018.GA14063@js1304-P5Q-DELUXE>
X-Original-References <20170307131545.28577-1-vbabka@suse.cz> <20170307131545.28577-3-vbabka@suse.cz>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1601831

Show key headers only | View raw


Hello,

On Tue, Mar 07, 2017 at 02:15:39PM +0100, Vlastimil Babka wrote:
> When detecting whether compaction has succeeded in forming a high-order page,
> __compact_finished() employs a watermark check, followed by an own search for
> a suitable page in the freelists. This is not ideal for two reasons:
> 
> - The watermark check also searches high-order freelists, but has a less strict
>   criteria wrt fallback. It's therefore redundant and waste of cycles. This was
>   different in the past when high-order watermark check attempted to apply
>   reserves to high-order pages.

Although it looks redundant now, I don't like removal of the watermark
check here. Criteria in watermark check would be changed to more strict
later and we would easily miss to apply it on compaction side if the
watermark check is removed.

> 
> - The watermark check might actually fail due to lack of order-0 pages.
>   Compaction can't help with that, so there's no point in continuing because of
>   that. It's possible that high-order page still exists and it terminates.

If lack of order-0 pages is the reason for stopping compaction, we
need to insert the watermark check for order-0 to break the compaction
instead of removing it. Am I missing something?

Thanks.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v3 2/8] mm, compaction: remove redundant watermark check  in compact_finished() Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2017-03-16 02:30 +0100

csiph-web