Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1186668rdb; Fri, 20 Oct 2023 10:43:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtJE6451r4MBHHSLFeaKYtOHYZGI++xH64apxd5aUYeTkI8lpvbBcZDWIyiNgiENbpu//i X-Received: by 2002:a05:6a20:2451:b0:17b:1f76:86ee with SMTP id t17-20020a056a20245100b0017b1f7686eemr3389930pzc.16.1697823833249; Fri, 20 Oct 2023 10:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697823833; cv=none; d=google.com; s=arc-20160816; b=agn9TjdVig2p1majlrd68Ss7mig545QyofsbhPa5HPbq06OzetlTZuA1wsSlpLslR3 4TLhwd0pEr5l5aXWIcGMggS0Ej8eC14PKeFD5aW12aWvS1l01r5q/ibLIEt5kf8T2SDo tR0wA8PITrM7XUMGCo78SITLAlQiRihavBFqkUbdb2PP7pD7lTO4v/T6xT/eQTNFa4Am V/mk6p9zVfBqc1o28GNxdEBSaUmvjmqHopSU1zg8MkCLCy6GTJ2q9mbH99vkFHVSYUuD Xu0g2l2Qn3x8XBVPZp/wxXO7E5xj8GCNAREHmq82C6vSbSKZj14e/vJFS+kEnH2pEX94 Etjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=N1heveFnCrEJOdM4DCy3MHM1wUBeG4YS6MC7cDodL18=; fh=A3RdxWRvDdAnCOdjTRNrEMIWL/EiGO1TDP44eYQv4Uc=; b=J9bPnHF3uG3pbauU6fCCcWMDXen8BFyYlOuYgmdUXC4pkU6EKei131wI8mtpw+omrz bapFNi/9piqZIF1pVXIYRoU0pp6FxCBswTzKNbCqYdGJdhz9SQG7b0Gp22EVyj/q7csN Y0aifEjgr190gKHl1li495Ly1mhUIVi3FiRg94Sh8ue452bZasSimjlANyzqpWobT2oP o+r93bm76P8OnlvvShsoZyx2H+7+cTYsVavf9ysM5nq0GIU8VeNypHYLE0GYaEz5wLp6 Fsv9barc/YOyMYiGTG7rbspytWhVMDCnDfQAsTyXzYx46KuS14stHnpjZNRJhw4FgGgQ Li2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pUxKaGf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id f17-20020aa79d91000000b006be2b79b254si2207239pfq.368.2023.10.20.10.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 10:43:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pUxKaGf5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id C81EC8095DBC; Fri, 20 Oct 2023 10:43:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377934AbjJTRnn (ORCPT + 99 others); Fri, 20 Oct 2023 13:43:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377895AbjJTRnl (ORCPT ); Fri, 20 Oct 2023 13:43:41 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF871FA for ; Fri, 20 Oct 2023 10:43:39 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9b9faf05f51so164508266b.2 for ; Fri, 20 Oct 2023 10:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697823818; x=1698428618; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=N1heveFnCrEJOdM4DCy3MHM1wUBeG4YS6MC7cDodL18=; b=pUxKaGf5wpCD7/kJ27jTnuN0Euwx0Do5wm+7X8G7e6zOjxqnFkMATNAmOEcaNBntvY 4OWJTRDkbwYw2Ui9rFXYAyT4IDyVYpcGx+Z7Rmojz8qDoELRORMMe8hcjnR/jCFNuJW3 +Guc6SSnSweosgQrC2K0O0FcDYkc3RCOeTmPF+s9u042HY8XhT+MA8lgMsSwnZek17v3 VQm1Nnrt60AJqV9t2OoorZtCneuCj5IUFqJM3Frbp5qOA1NdIypa2Rcda45Sv2om7F5O lRW0NNo+jQ+98/DUGYXcYYyYCWW2Bz1f4lIkS8sPyyB1FUzrveUQDKqSXtbaNDoAPjUM OHtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697823818; x=1698428618; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N1heveFnCrEJOdM4DCy3MHM1wUBeG4YS6MC7cDodL18=; b=wYdfH6w52vbDWismutSQRfRfuvNl1lV/tYJhZeYdvARcQZH5B87lGbYWOTEh+tOQT1 yTdpZ7Y6OnvCHLjquS7WlWrNRxetUMq8HjegaZuksxXM5TiiV1Ucevy++NFBNs2Hezav o1rLDNE+Er0tA/QlyF2dZw4hGNNLIcpFb5uhrhhm29/mvzglWFfXnKNjRidvptr7L7hs /QCaor3rDCRSz6h+1zqpReo4geEWMwqGtaT9bX+zU80a/3jtGquZ+AyOqLigeULm+7V6 X8fOUv/u8KdF1z7KTr2i+9FPlc78O5+1V//NacuSWxtRutlhWZ1Q4+Cykk5c3Vd6iHiT 6D/g== X-Gm-Message-State: AOJu0YyXAYtvCG784USeMzHo25mTvktrXzBKMl+QD6xrWEU0QvAWEyx9 N96jkD6HOAneOnbBs+CuC3H00OGRnyrsrEkcqWCKcA== X-Received: by 2002:a17:906:da8c:b0:9ae:52fb:2202 with SMTP id xh12-20020a170906da8c00b009ae52fb2202mr1823652ejb.40.1697823818063; Fri, 20 Oct 2023 10:43:38 -0700 (PDT) MIME-Version: 1.0 References: <20231010032117.1577496-4-yosryahmed@google.com> <202310202303.c68e7639-oliver.sang@intel.com> In-Reply-To: From: Yosry Ahmed Date: Fri, 20 Oct 2023 10:42:58 -0700 Message-ID: Subject: Re: [PATCH v2 3/5] mm: memcg: make stats flushing threshold per-memcg To: Shakeel Butt Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, cgroups@vger.kernel.org, linux-mm@kvack.org, ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com, Andrew Morton , Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Ivan Babrou , Tejun Heo , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Waiman Long , kernel-team@cloudflare.com, Wei Xu , Greg Thelen , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 10:43:50 -0700 (PDT) On Fri, Oct 20, 2023 at 10:23=E2=80=AFAM Shakeel Butt = wrote: > > On Fri, Oct 20, 2023 at 9:18=E2=80=AFAM kernel test robot wrote: > > > > > > > > Hello, > > > > kernel test robot noticed a -25.8% regression of will-it-scale.per_thre= ad_ops on: > > > > > > commit: 51d74c18a9c61e7ee33bc90b522dd7f6e5b80bb5 ("[PATCH v2 3/5] mm: m= emcg: make stats flushing threshold per-memcg") > > url: https://github.com/intel-lab-lkp/linux/commits/Yosry-Ahmed/mm-memc= g-change-flush_next_time-to-flush_last_time/20231010-112257 > > base: https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-every= thing > > patch link: https://lore.kernel.org/all/20231010032117.1577496-4-yosrya= hmed@google.com/ > > patch subject: [PATCH v2 3/5] mm: memcg: make stats flushing threshold = per-memcg > > > > testcase: will-it-scale > > test machine: 104 threads 2 sockets (Skylake) with 192G memory > > parameters: > > > > nr_task: 100% > > mode: thread > > test: fallocate1 > > cpufreq_governor: performance > > > > > > In addition to that, the commit also has significant impact on the foll= owing tests: > > > > +------------------+---------------------------------------------------= ------------+ > > | testcase: change | will-it-scale: will-it-scale.per_thread_ops -30.0%= regression | > > | test machine | 104 threads 2 sockets (Skylake) with 192G memory = | > > | test parameters | cpufreq_governor=3Dperformance = | > > | | mode=3Dthread = | > > | | nr_task=3D50% = | > > | | test=3Dfallocate1 = | > > +------------------+---------------------------------------------------= ------------+ > > > > Yosry, I don't think 25% to 30% regression can be ignored. Unless > there is a quick fix, IMO this series should be skipped for the > upcoming kernel open window. I am currently looking into it. It's reasonable to skip the next merge window if a quick fix isn't found soon. I am surprised by the size of the regression given the following: 1.12 =C4=85 5% +1.4 2.50 =C4=85 2% perf-profile.self.cycles-pp.__mod_memcg_lruvec_state IIUC we are only spending 1% more time in __mod_memcg_lruvec_state().