Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C8A3C64EC4 for ; Wed, 8 Mar 2023 19:58:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbjCHT6X (ORCPT ); Wed, 8 Mar 2023 14:58:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjCHT6S (ORCPT ); Wed, 8 Mar 2023 14:58:18 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9645E3E608; Wed, 8 Mar 2023 11:58:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PcPBY0lRw+N6fGKRquKbxW/xzrTA2S4vqATUY6U1xTA=; b=YujoIn8cagHguF6SKbLxZ3CnO4 FiGGFveDJEwut/QJNWJipXUDjskpK5OAOJzqD8F/9fzifJXETUIeNkUPzZ6HqpIFyjuJ6CfwBMfn7 uZ7+hWq1JCrBa2TQ8tB2vBk0AkaHCK9OeeJil8Zz6IVI1zpBFnHxRI5QcZ1Gqd8UkiDwqtBZ6Gl/H sf5qE5PudZ3Wtw6pgDhJme87gBGiYheQGdP1Sw+ywYdJE51x1faJ/5CzBw5m1m9I2QaEuVrEQgmN4 66UrAXZAhRokLLrVBHtjKHydAG6Xv6EoSubfNG7XphrgPMLo3Z4shw3WamdTZ9mRAxTUb9cyYHxPs N+wcGkyA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZzvM-006buQ-Il; Wed, 08 Mar 2023 19:58:08 +0000 Date: Wed, 8 Mar 2023 11:58:08 -0800 From: Luis Chamberlain To: Vlastimil Babka Cc: ye.xingchen@zte.com.cn, keescook@chromium.org, yzaikin@google.com, akpm@linux-foundation.org, linmiaohe@huawei.com, chi.minghao@zte.com.cn, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH V2 1/2] sysctl: Limit the value of interface compact_memory Message-ID: References: <202303061407332798543@zte.com.cn> <83344b3d-1de1-f3c2-913c-a8c54ce7a99f@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83344b3d-1de1-f3c2-913c-a8c54ce7a99f@suse.cz> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 08, 2023 at 11:21:36AM +0100, Vlastimil Babka wrote: > > > On 3/6/23 07:07, ye.xingchen@zte.com.cn wrote: > > From: Minghao Chi > > > > In Documentation/admin-guide/sysctl/vm.rst:109 say: when 1 is written > > to the file, all zones are compacted such that free memory is available > > in contiguous blocks where possible. > > So limit the value of interface compact_memory to 1. > > > > Link: https://lore.kernel.org/all/ZAJwoXJCzfk1WIBx@bombadil.infradead.org/ > > I don't think the split to two patches you did, achieves Luis' request. > > IIUC his request was to move the compaction entries out of sysctl.c? Yes, thanks Vlastimil, just git log kernel/sysctl.c and you'll see tons of examples. Luis