Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2272888rwl; Sun, 26 Mar 2023 19:51:32 -0700 (PDT) X-Google-Smtp-Source: AKy350ZfwPFda1lvr+Ek2SpR+U490dC8iuFww/XwZfIrucXe9lQkNYJ6TzfxMDLazg7BY1be0NH5 X-Received: by 2002:a17:902:f314:b0:1a1:9842:2020 with SMTP id c20-20020a170902f31400b001a198422020mr8155836ple.43.1679885492404; Sun, 26 Mar 2023 19:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679885492; cv=none; d=google.com; s=arc-20160816; b=Ki1yQPcCMtIjJT2Wq2ESVjTa81gf6rG2TI8FGy5uWUQZvide5G/q10onVdzQM0MdiG m48mk7go1myiHn9efVr81kqyensdvDRdEE89rg3igArV2EvFbPnOLzeqbESe5EoLMvxc 0RhfLieVIa4dxhVv8GlRNZqZuGuAcWuvRNOgEXRHEjzMn+wxiJoChGiY3EcEWj8wF0PH 8knh+KEZPI3b4nmX8d6/WzyCyEVnee6CiE5UWpoUTG+M5TD6IBSL/ElcWSN6iOqiK7uB XJuHx+qR2qZl1CBqo6vEuDbt+/jTQEIXru/4qD3F80GJ65VcZDFYzbzfHizgMG/ZeY6W mfPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lZcQsaKqPsYODcn7NEdpTeu2skOK0mYpDjHEOBZhZNI=; b=LxTJ839cR+ozrZMO1ngA1za0PKY7jNkI+1i05ohKvlzeMd/yAvG3uGZTS8wfu9HLDM OTWndDB1bP2hF1IkVxhZpbXxD3gj7JbDHzHfUiu1bc/uPlnM7+Ctv11p1HZqqWGOE2Ll fHyptQyRunli2zGCsY+EFwgxcM6hHHGzyZ6SXlfso21Erp2ARa8pj1eTpxjUm6zMPWW8 fBBeMaG7N319wmPFRxL0tlw0bL78HRfP9+aRxNZIS+3ErD95rQRqvFdueFUnHwUPRQ3I kjO6EJu+uxvJR1cKnz+aR/0QVNPYwalZEgw3lXOGFGFNrHDdGuEQ8ZOlB+PBCzzKfDJr RJyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QWvKcHXF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a17090301c500b00199200945a3si27701566plh.74.2023.03.26.19.51.20; Sun, 26 Mar 2023 19:51:32 -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=@gmail.com header.s=20210112 header.b=QWvKcHXF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231980AbjC0Ctr (ORCPT + 99 others); Sun, 26 Mar 2023 22:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231659AbjC0Ctq (ORCPT ); Sun, 26 Mar 2023 22:49:46 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD6444B1; Sun, 26 Mar 2023 19:49:45 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id j13so6366573pjd.1; Sun, 26 Mar 2023 19:49:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679885384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lZcQsaKqPsYODcn7NEdpTeu2skOK0mYpDjHEOBZhZNI=; b=QWvKcHXFONWC/e5VNLgEPbSpnj/5r/olSwdrPKXsNpBcLpAxkzvQjL13+lxTSeSAfB Qn4vEg/F4y9vVnFM/MkxczLJq8ZocaI2b5V+QNo2QfyA8ppIYBzmID7T0h0lGYwu1PQo sUu5HXyYEH2NWK35b5HsE3a+8oG9UcbPvYH0NRzzv+KAp9EmLKeRnNOFBeFuBVGt3X5t Td4kWKUdnpOWs6/7HVHls9yPLjR66b3c4IH8AoRSG5ifhUEh7EnzqZ3okP2Xcj8p1hfN uII0hhoTLMGXAm+mY1DZpfhdI5bqJ6n97qG3oaagbLSs0/jPpeV0MQm6zDk7yWrQCc7C 9A7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679885384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lZcQsaKqPsYODcn7NEdpTeu2skOK0mYpDjHEOBZhZNI=; b=HVRYPkLCgtD9bP1hajiVkM5xWOj9XZG6nng/hgNACBMjo2/CMWQyfwlx9xWnrjKVT4 dtFeeZC0boxfuNgM0zKyt9cEcizXz8uR4DWLnAlA8OhaGvUS94uIZLyo33t3mturapzv jw3mlmL1FjTzMg5zPWse6BV3KiYS7obA6Ci55SDVQ47WpT9wIyyCnEN9Pzk7aa2VfKd5 Lkf63PRGCxKqlWE+HFiictTX3THjj4wWk2CtOsJEX8V6qTDNCqJRm22zCs6avuvRx2V5 1Sv/FnvPZsoBVJnt62KbXS8CO/Y2Vm+WTjvwQhBEd26mbe9ZWzp6xvJOPjQ/YbsFLUf3 PkYw== X-Gm-Message-State: AO0yUKXs2y8syNHU2HvuTBC200sg93lU1mgBsKkqdjucM5c925abGJEA j4ZSN1Hol3w4MX2AIX6yjy8= X-Received: by 2002:a05:6a20:8009:b0:da:4be2:caff with SMTP id e9-20020a056a20800900b000da4be2caffmr8920064pza.56.1679885384570; Sun, 26 Mar 2023 19:49:44 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id a17-20020a631a11000000b0051322ab5ccdsm4916477pga.28.2023.03.26.19.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 19:49:43 -0700 (PDT) From: ye xingchen X-Google-Original-From: ye xingchen To: 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, vbabka@suse.cz, willy@infradead.org, ye.xingchen@zte.com.cn, yexingchen116@gmail.com, yzaikin@google.com Subject: Re: [PATCH V5 1/2] mm: compaction: move compaction sysctl to its own file Date: Mon, 27 Mar 2023 02:49:39 +0000 Message-Id: <20230327024939.75976-1-ye.xingchen@zte.com.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 >> >$ ./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%