From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f198.google.com (mail-ot0-f198.google.com [74.125.82.198]) by kanga.kvack.org (Postfix) with ESMTP id 9A1106B0006 for ; Wed, 21 Mar 2018 01:59:18 -0400 (EDT) Received: by mail-ot0-f198.google.com with SMTP id e19-v6so2310174otf.9 for ; Tue, 20 Mar 2018 22:59:18 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id b189sor1142041oia.287.2018.03.20.22.59.17 for (Google Transport Security); Tue, 20 Mar 2018 22:59:17 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180321045353.GC28705@intel.com> References: <20180320085452.24641-1-aaron.lu@intel.com> <20180320085452.24641-3-aaron.lu@intel.com> <20180321015944.GB28705@intel.com> <20180321045353.GC28705@intel.com> From: "Figo.zhang" Date: Tue, 20 Mar 2018 22:59:16 -0700 Message-ID: Subject: Re: [RFC PATCH v2 2/4] mm/__free_one_page: skip merge for order-0 page unless compaction failed Content-Type: multipart/alternative; boundary="001a113d24a831f16c0567e5e4be" Sender: owner-linux-mm@kvack.org List-ID: To: Aaron Lu Cc: Linux MM , LKML , Andrew Morton , Huang Ying , Dave Hansen , Kemi Wang , Tim Chen , Andi Kleen , Michal Hocko , Vlastimil Babka , Mel Gorman , Matthew Wilcox , Daniel Jordan --001a113d24a831f16c0567e5e4be Content-Type: text/plain; charset="UTF-8" 2018-03-20 21:53 GMT-07:00 Aaron Lu : > On Tue, Mar 20, 2018 at 09:21:33PM -0700, Figo.zhang wrote: > > suppose that in free_one_page() will try to merge to high order anytime , > > but now in your patch, > > those merge has postponed when system in low memory status, it is very > easy > > let system trigger > > low memory state and get poor performance. > > Merge or not merge, the size of free memory is not affected. > yes, the total free memory is not impact, but will influence the higher order allocation. --001a113d24a831f16c0567e5e4be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2018-03-20 21:53 GMT-07:00 Aaron Lu <aaron.lu@intel.com>:
On Tue, Mar 20, 2018 = at 09:21:33PM -0700, Figo.zhang wrote:
> suppose that in free_one_page() will try to merge to high order anytim= e ,
> but now in your patch,
> those merge has postponed when system in low memory status, it is very= easy
> let system trigger
> low memory state and get poor performance.

Merge or not merge, the size of free memory is not affected.

yes, the total free memory is not impact, but = will influence the higher order allocation.=C2=A0

--001a113d24a831f16c0567e5e4be--