Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2656238rwl; Mon, 27 Mar 2023 03:29:41 -0700 (PDT) X-Google-Smtp-Source: AKy350YoqE0xdMWsF4Wr0/hLAtKuYJpRljsXkjF7AhiLdrY2NsbxF0L1BWVJmG3IrDxJC4y8CinW X-Received: by 2002:a17:907:6d0c:b0:944:18e0:6ef2 with SMTP id sa12-20020a1709076d0c00b0094418e06ef2mr5345083ejc.73.1679912981399; Mon, 27 Mar 2023 03:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679912981; cv=none; d=google.com; s=arc-20160816; b=kyZMPHL5E4JB2QX5fZ5CAV97jYT83HOCikFYRy3HbY7tu9qVarZKFOywjhYsXdO/K1 iuMLOzV09jm7zd8p1PsJVMA55lMQ1dVaOobQ8FkoUrpfp4tHTP6q2n3Jvjx4zp20XLff VqYfen0u2ziNBoSn6h2WSjumWIEkgVV3BWWfQ0kHLgHZQ3/8fv2QzC8HYaA+yvFktQik 6pRLg3uQLI6esdy1xeIqlAKDRMWiL3EY/b4kayRi5eTJV5zFeMQtar8XLke83j9aQYFK RCqJsUWivooP5/nCLVQM98RNWqz0pVqFcGvEvQgEQ1wkgXGRqYh3oR/0x83f9qOyEQP6 HPkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=6zeAapTweggWvHmqJXKCAVkq4U6iU7yqVvakxDRPJlY=; b=KsLALidLcxuFWgKzz4mTv7FdfgKSiyB8EWa7S9zg8VtwGeVzuNBKY6JgVubSt8pW54 y5E9ENDW8a0EfzB2oSAC1wqqXh/ldW23Pn5CZcjFGHhDKceg9I16RI2yVxShlwfAtAL6 vA2zF+maYjdIaHM4/WRhMyppOLTv2dBxIVUd/0ECz5t/QQb/PpmS+QWfIpxmBWlLfgyT ni3NQ/X/f9gL2EHA/tYmtvOq543axCtW2ENV4RtkTpevDFxUjtdPW3IRa8qmLO5ZRV8/ kmWlo6r0NUGJvWY71OE67fyWVZcoU4Zvtenzl0h/G9R+G2KC4yQ0XCuRjWL098+dV/kh xc6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ZZLqyqej; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx2-20020a170907774200b00931696e703fsi22150105ejc.436.2023.03.27.03.29.17; Mon, 27 Mar 2023 03:29:41 -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=@suse.cz header.s=susede2_rsa header.b=ZZLqyqej; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232825AbjC0K1x (ORCPT + 99 others); Mon, 27 Mar 2023 06:27:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232944AbjC0K1h (ORCPT ); Mon, 27 Mar 2023 06:27:37 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A7F040C6; Mon, 27 Mar 2023 03:27:20 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1E78121C2D; Mon, 27 Mar 2023 10:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1679912839; h=from:from:reply-to: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=6zeAapTweggWvHmqJXKCAVkq4U6iU7yqVvakxDRPJlY=; b=ZZLqyqejDT1+lC/IQ0gMRG3AlrSFychR3wkDlFd5FSCq4EHG5rTAB/qYAVNJQbOIZaa/tE 9cEv58WBEa0T1IlSWuMEanv6r13TJnifohbH+RP8aLpowMFBupa8uoRGKOlpODLKZ3rmVy pQUpQMYyyQA6DFVHIlMKLaykAM7kom4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1679912839; h=from:from:reply-to: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=6zeAapTweggWvHmqJXKCAVkq4U6iU7yqVvakxDRPJlY=; b=Ogoao4Ypl7iEHpBZ/JQCvSxu+zhkwLijk7xqr9zPLv5AZW9ZPSzECLFMgU2/19hvPq5spU YIMBoNA3iXeoSNBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D3BF313329; Mon, 27 Mar 2023 10:27:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id NGBvMoZvIWTTBgAAMHmgww (envelope-from ); Mon, 27 Mar 2023 10:27:18 +0000 Message-ID: <067f7347-ba10-5405-920c-0f5f985c84f4@suse.cz> Date: Mon, 27 Mar 2023 12:27:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH V5 1/2] mm: compaction: move compaction sysctl to its own file Content-Language: en-US To: ye xingchen , mcgrof@kernel.org 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, willy@infradead.org, ye.xingchen@zte.com.cn, yzaikin@google.com References: <20230327024939.75976-1-ye.xingchen@zte.com.cn> From: Vlastimil Babka In-Reply-To: <20230327024939.75976-1-ye.xingchen@zte.com.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL 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 3/27/23 04:49, 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. > I use x86_defconfig and linux-next-20230327 branch > $ make defconfig;make all -j120 > CONFIG_COMPACTION=y > > 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=21119987, After=21120081, chg +0.00% No savings then, but to me the patch still seems a worthwile cleanup. But if others think the 94 bytes are an issue, it can wait for the new APIs.