From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752545AbeCUHpn (ORCPT ); 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 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,339,1517904000"; d="scan'208";a="213487442" 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 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.