Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1725779pxy; Thu, 29 Apr 2021 13:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz37Rp7Xqq6E4O1TRK39+oNfOamdwkm+LIDkn3AmsobNEbRQSr9Zr8UHv+oR2g33IcRzmFO X-Received: by 2002:a62:65c7:0:b029:278:e19f:f838 with SMTP id z190-20020a6265c70000b0290278e19ff838mr1392870pfb.64.1619726885968; Thu, 29 Apr 2021 13:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619726885; cv=none; d=google.com; s=arc-20160816; b=aT2a9L1ifX8d/2zAtUpt/y/2gy8FaELnM3NXWyspdQkea7G9IX/7hPNtkLpAtSqvyv L2PidA6ciavJciPeS6NmvxyMrOSCPYTXgXuB4SLihj3cgHqpEC7PjlsWYnam3YWAXw+6 PWeUV6cQG05eBMs19dx2cUM7jKOdoIqY0a4fNR8i8i/7khFaYnueWKqiEqyoqITysIPk XaeEbK+EcUk2BQ7lfg2bAjJ971D5kk1xcqNgyJ9SBdMSXl4QJU/7SWTlddgrgWNVP5rl yS/oSLW423/9K+NtIafCB3oBjQUkpib+0td8v0tZigHmrhrE8EfMtIKg4J2uJiD3M6vn 24eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=46vr6MOxvMx7EcNeLrQPCFzx6v2cxfIGSgLQQ+snNgQ=; b=kxvuG6MzHjPQ2Uyf+Y5bRmIRM2lwDZkBb0u/1fRFkPtwvp/hmoB5OOnBsNnPN5VwGE C97IFQzoG/eS9Xz8D5t2dOgz6Ts5cMuBrHzjzhwINLdGUdYhho5NWZUPhUdXpkJf4QYz QkPW5H+G69Bu0f4nj7a/mjZ0qacBoSX9zyKvgUTmBYyJNjM2F4KLxWS5eliLk+rMBLHZ i4PfNVuK9Xx5QveNMX5y9MagZ25Vz00/0Q3amROmkmeRSAdjIJGfK7S2NXEPfuO6Jv3+ 13tdWt2411LyQpWs7CQLoHchCZUQw5a/LYkPOt+/Xe6dGx5nccY+pTL4oWrDXpK8KbRw NU9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dEvGNPfH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r19si4298357pjo.35.2021.04.29.13.07.51; Thu, 29 Apr 2021 13:08:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dEvGNPfH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233767AbhD2TrP (ORCPT + 99 others); Thu, 29 Apr 2021 15:47:15 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:55040 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237780AbhD2Tqi (ORCPT ); Thu, 29 Apr 2021 15:46:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619725550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=46vr6MOxvMx7EcNeLrQPCFzx6v2cxfIGSgLQQ+snNgQ=; b=dEvGNPfHCVP1XUi6b0tgVv5pCcMSMGAYn2O78d7MpfX4RzlrvEBayEStQQHtUknsy33Jb/ 6HDcQIj7wnYWComQFwrimoxfhi1zHILt13FOUt7u/0g0dBfc+Aqe8IWuD3K3dN59WJFkaB hm1//v1AoeYLBatp6cMt2vok7K49Xyg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-366-2E-ZcLmyNSmk8WkXdFT6MA-1; Thu, 29 Apr 2021 15:45:48 -0400 X-MC-Unique: 2E-ZcLmyNSmk8WkXdFT6MA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 349D5818411; Thu, 29 Apr 2021 19:45:44 +0000 (UTC) Received: from optiplex-fbsd (unknown [10.3.128.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7DA6110016FC; Thu, 29 Apr 2021 19:45:40 +0000 (UTC) Date: Thu, 29 Apr 2021 15:45:37 -0400 From: Rafael Aquini To: "Chu,Kaiping" Cc: "mcgrof@kernel.org" , "keescook@chromium.org" , "yzaikin@google.com" , "akpm@linux-foundation.org" , "vbabka@suse.cz" , "nigupta@nvidia.com" , "bhe@redhat.com" , "khalid.aziz@oracle.com" , "iamjoonsoo.kim@lge.com" , "mateusznosek0@gmail.com" , "sh_def@163.com" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" Subject: Re: =?utf-8?B?562U5aSNOiBbUEFUQw==?= =?utf-8?Q?H?= v3] mm/compaction:let proactive compaction order configurable Message-ID: References: <1619313662-30356-1-git-send-email-chukaiping@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 01:17:40AM +0000, Chu,Kaiping wrote: > Please see my answer inline. > > -----邮件原件----- > 发件人: Rafael Aquini > 发送时间: 2021年4月26日 9:31 > 收件人: Chu,Kaiping > 抄送: mcgrof@kernel.org; keescook@chromium.org; yzaikin@google.com; akpm@linux-foundation.org; vbabka@suse.cz; nigupta@nvidia.com; bhe@redhat.com; khalid.aziz@oracle.com; iamjoonsoo.kim@lge.com; mateusznosek0@gmail.com; sh_def@163.com; linux-kernel@vger.kernel.org; linux-fsdevel@vger.kernel.org; linux-mm@kvack.org > 主题: Re: [PATCH v3] mm/compaction:let proactive compaction order configurable > > On Sun, Apr 25, 2021 at 09:21:02AM +0800, chukaiping wrote: > > Currently the proactive compaction order is fixed to > > COMPACTION_HPAGE_ORDER(9), it's OK in most machines with lots of > > normal 4KB memory, but it's too high for the machines with small > > normal memory, for example the machines with most memory configured as > > 1GB hugetlbfs huge pages. In these machines the max order of free > > pages is often below 9, and it's always below 9 even with hard > > compaction. This will lead to proactive compaction be triggered very > > frequently. In these machines we only care about order of 3 or 4. > > This patch export the oder to proc and let it configurable by user, > > and the default value is still COMPACTION_HPAGE_ORDER. > > > > Signed-off-by: chukaiping > > Reported-by: kernel test robot > > Two minor nits on the commit log message: > * there seems to be a whitespage missing in your short log: > "... mm/compaction:let ..." > --> I will fix it in next patch. > > * has the path really been reported by a test robot? > --> Yes. There is a compile error in v1, I fixed it in v2. > So, no... the test robot should not be listed as Reported-by.