Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1506240rwl; Fri, 24 Mar 2023 11:23:01 -0700 (PDT) X-Google-Smtp-Source: AKy350ZhlOpYlNzzRYozhMd4sgQFUgQ6/7iJvufGGdUKgArXF/GeLTWM+7yd1UBKX2a1bF7CDlYG X-Received: by 2002:a17:907:c209:b0:8de:502e:2061 with SMTP id ti9-20020a170907c20900b008de502e2061mr3596188ejc.3.1679682181259; Fri, 24 Mar 2023 11:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679682181; cv=none; d=google.com; s=arc-20160816; b=j0Z4US2aXP+GXGgnGWgkEhNXMWuE105R8BokNpUaGQZAI2RDpbexdDa3XepZtgxEA4 hdg9JeZHItlnwZhUznHizz9ZS5ASyJLSmOcxr4bMP1bfhjzsrAI38JghWvEMn6DB3Qie HeZuFIVBJ/Xz3tofXdkhwm/hQSJkap9HXJZStfGrqSW2BcjM7rMaysmX2pkijs1F1jtP qOGEplpSEsspq5j9lcKLmBUDG/zbL0pfcJ7WAhyOsP7P9vAGpOU90yN1IZXJrpqF7ohP JuaqCp3hapEL/tDTzpf9dWf4Nq/8wACQRAnlwUJB+Q0/yz8Ly4tRr7BwKIhJL0VMGD2+ Ob5Q== 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 :dkim-signature; bh=gnerbpCPsPLVCcKOjYr9IDYevUX0qSWzWV6ueg4TeJI=; b=IIfpmCSDYJOkNoHwgZtoYN597zQGlp44eME/SMlEkXQAbn0v8Kj9uAdEaLh1b/6RZS eiovOHp4NKvRMutFRzXKSyhulbnfZkD0P4eqhT9m70Jjsmyz0pN+0dymi7l7nk8ydNw2 7s4AfeFaqgIwXVsK8EcV+RAfCZv0h3b5UDN/U4ALKNDYtZ+jGoGvdMfyPJrsKJ1h4WJn NlKkXi/J8rOwTFAS+dtwE1wFnVPFzTSPbhfqvASQMzeWX7xMiR4NoRq80WYdw2MHXcGf VOrxGBj2Qsby7SwiVSnnWdsckZ1+DqIMq62+dySYIw2jMu1HH8vwqIClOCUTMhNdysAG n4Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=I6qos94q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu12-20020a170906eecc00b0093a36bdabe8si12865776ejb.807.2023.03.24.11.22.37; Fri, 24 Mar 2023 11:23:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=I6qos94q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231556AbjCXSLq (ORCPT + 99 others); Fri, 24 Mar 2023 14:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbjCXSLo (ORCPT ); Fri, 24 Mar 2023 14:11:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B0C15C81; Fri, 24 Mar 2023 11:11:44 -0700 (PDT) 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=gnerbpCPsPLVCcKOjYr9IDYevUX0qSWzWV6ueg4TeJI=; b=I6qos94qsOkjPfh25S2EXs0EEw kAriqRKGUCL+rq7FwvkPTaOKDGAkyKTXMpp464X8uHCrl7zZXsAY9j3bdYdAmGO3OSXDWqnq8Npy4 8b2SN2yLnvFkxzB4LAIfEIWwb+i/GrFapFYGHyoHkjPSfocGhxM8IvUeEIupFbk1WfK3Ne+OpBibY 5A23eQcv8T96dzpYb2V96rWPc8+IHxSnHL2au6i3WuJxsn1pPdC0Air3yC042qxp+pHRjzdai1q1r It0Li1iOkF7qcMRScRPQlnrzPGwABos/hCnvCfjgFKiz9riaUq8u0bmGqXt1VU3bzY5yl2WJEu2/3 NDw/DdpQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pflt0-005GES-1Z; Fri, 24 Mar 2023 18:11:34 +0000 Date: Fri, 24 Mar 2023 11:11:34 -0700 From: Luis Chamberlain To: ye xingchen Cc: akpm@linux-foundation.org, chi.minghao@zte.com.cn, hch@infradead.org, keescook@chromium.org, linmiaohe@huawei.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, vbabka@suse.cz, willy@infradead.org, ye.xingchen@zte.com.cn, yzaikin@google.com Subject: Re: [PATCH V5 1/2] mm: compaction: move compaction sysctl to its own file Message-ID: References: <20230324062408.49217-1-ye.xingchen@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230324062408.49217-1-ye.xingchen@zte.com.cn> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2023 at 06:24:08AM +0000, ye xingchen wrote: > >$ ./scripts/bloat-o-meter vmlinux.old vmlinux > >add/remove: 1/0 grow/shrink: 1/2 up/down: 346/-350 (-4) > >Function old new delta > >vm_compaction - 320 +320 > >kcompactd_init 167 193 +26 > >proc_dointvec_minmax_warn_RT_change 104 10 -94 > >vm_table 2112 1856 -256 > >Total: Before=19287558, After=19287554, chg -0.00% > > > >So I don't think we need to pause this move or others where are have savings. > > > >Minghao, can you fix the commit log, and explain how you are also saving > >4 bytes as per the above bloat-o-meter results? > > $ ./scripts/bloat-o-meter vmlinux vmlinux.new > add/remove: 1/0 grow/shrink: 1/1 up/down: 350/-256 (94) > Function old new delta > vm_compaction - 320 +320 > kcompactd_init 180 210 +30 > vm_table 2112 1856 -256 > Total: Before=21104198, After=21104292, chg +0.00% > > In my environment, kcompactd_init increases by 30 instead of 26. > And proc_dointvec_minmax_warn_RT_change No expansion. How about a defconfig + compaction enabled? Provide that information and let Vlastimal ACK/NACK the patch. Luis