Received: by 10.213.65.68 with SMTP id h4csp1043966imn; Wed, 21 Mar 2018 00:47:16 -0700 (PDT) X-Google-Smtp-Source: AG47ELtrVAhTO0OXvh5K/tdY4V9c3vpAyZToj/PFjhiNAAL5zadZ6HZrdqHik/FrAgPM/VuEamxr X-Received: by 10.99.62.193 with SMTP id l184mr13911833pga.87.1521618436093; Wed, 21 Mar 2018 00:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521618436; cv=none; d=google.com; s=arc-20160816; b=SWysP003f3gdyBeyYa1t8PyaBNXJyOOxL74C+N6rh8x+vqltFLUBCD82odxVlncXP7 qaw5p6TWR0Uhs/bW28TmGrj7DX/Tt9eqGhYBoFM5Laj1RSM9lGSZBjBRRWs4C/pa/qRD oERHF+4J/T942duVekvlPf8Fj4g8pD7b2VMOEAPFMmgRQANjvlcN/+vTvsjG6+nkFVVX 5CwYYV5Y4hUxT8jIYK7rdyCxx9CbjXqs6ALAzAK+AX7GgzaWECxytcV7/SnA/ds6tuF8 B9e6OI6Sk6TvpJUG1SKlGnWfSHzzeeoBw3OfdAwJq1CpCUv/FHtEgSfyjiwFtQpnMaOV lhLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=sWo8pMrOwfS6tAod/VNDKUHPehm/smgavN0iHBdrXGc=; b=YNSY/rO8SzZgG0bioQrV1+zDA7TmkgP2OrTBAtw2Zs52hRk36BbV7PPfpAioUeApoE 8t9l47cfSei9Pd68XaesbsU++ocesIJNvz8qU9V6/2OalT3ydiMJUsK7gseL9r6QaeQS PgpJZnDklgmlCtEQvNJxX6FYdHgiaz+YrMnANyqx+58xL51pE/MFDbZzn7Y4CdHrqPs0 pwpbzeD/rUaoIqNXJBxEPBw5/B9WeS8Pq7gau7AtnGU+AFrzsEecJADR/LCH5yH+gfmg Cv9jh7q58q6Fay6N9tGvckUtOBijPZ/hgIOYJ6CAdelgBWjwaaIjOotO3GbnPfxlnUuY N08g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b91-v6si3279297plb.268.2018.03.21.00.47.02; Wed, 21 Mar 2018 00:47:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752543AbeCUHpn (ORCPT + 99 others); Wed, 21 Mar 2018 03:45:43 -0400 Received: from mga01.intel.com ([192.55.52.88]:48784 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751586AbeCUHpj (ORCPT ); Wed, 21 Mar 2018 03:45:39 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2018 00:45:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,339,1517904000"; d="scan'208";a="213487442" Received: from xps13.sh.intel.com (HELO aaronlu) ([10.239.198.82]) by fmsmga005.fm.intel.com with ESMTP; 21 Mar 2018 00:45:36 -0700 Date: Wed, 21 Mar 2018 15:42:49 +0800 From: Aaron Lu To: "Figo.zhang" 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 Subject: Re: [RFC PATCH v2 2/4] mm/__free_one_page: skip merge for order-0 page unless compaction failed Message-ID: <20180321074249.GA1855@aaronlu> References: <20180320085452.24641-1-aaron.lu@intel.com> <20180320085452.24641-3-aaron.lu@intel.com> <20180321015944.GB28705@intel.com> <20180321045353.GC28705@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 20, 2018 at 10:59:16PM -0700, Figo.zhang wrote: > 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. Yes, that's correct.