Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3398916rdh; Mon, 27 Nov 2023 13:14:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7DxsU0tpgHrQgIcVXZaPZmzPqribPlFiJUAPAtCltv2js1cQIuUnB8ITYdOUQVv6LGJ12 X-Received: by 2002:a17:902:dad0:b0:1cf:da41:7294 with SMTP id q16-20020a170902dad000b001cfda417294mr2763679plx.25.1701119676942; Mon, 27 Nov 2023 13:14:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701119676; cv=none; d=google.com; s=arc-20160816; b=uhWx4gj5SXuCNNYkChtRXVLsJhKPI8H4+F6pAETqNZ+XKncyaAdfCsqBLPlnFtqkRb EOR42QZQFGrG1RUWaqDiTWI0AiOPCJ2RsXG+6ll+8yjvfxY3nA1Hy+ykQc/oYxt9gpcZ 1HMAGPO1IbFq/0slLUXiuaXrKl6+JltzJVzuIxkGEZu1TOC5s3ZVerJva0pJnxxlMPXm MVirhNqyY9oJO17TkHMwUiO/cNe9ir34OPSfYSnT6V1oYQTyoh9+zrJx/s4YFLTdJqR1 XO8hc63fvIq9bnzaJXsfpcu50hyBronatP2jZLjsR+ey61XRwjH1xjQsLOzc+9Whv9lT adlw== 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=lHlTCHe4/wBQkktFnIHXqkfvwqIEOSM2fmKEpfUC8HU=; fh=FswEG3+oBJbRaeuQ8XUVsLIV/WUsEgedqYf69kOChhs=; b=qmev9hJ49ymcaV3OyK/u9+U9wNtIaeNQ/YX9qZIIuipocj0aEb5CbzWPLsEn8XG+pp LCNjeSsUycGM3Mg3+caI/YkQslcXJI5aRvDNbZTzTmbrUgJo6+N2ijJp7Rrrm/fg+d47 IRs8mnUL9ok00pqHvghWuXcBGjQV7hmFbhk4w/9D8LZQ7A3bpykxYhVqZXUJTp0CF9lk KqJjguKLGhuydnAPoDGkyYm5BhkS9HKslS8deeHYZz0HWAX6UIScys8BoEYydCDOulOg DJWNoxNHLAbBCUcwuebrnT4dfiaRfMViyErIL09JrUYQRdBDGfbA7hgZ4f2MLVboUDKY qGIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=dHSIUL4r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id jc11-20020a17090325cb00b001ca24970584si9050524plb.572.2023.11.27.13.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 13:14:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=dHSIUL4r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id A126B805C147; Mon, 27 Nov 2023 13:14:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231437AbjK0VOQ (ORCPT + 99 others); Mon, 27 Nov 2023 16:14:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjK0VOP (ORCPT ); Mon, 27 Nov 2023 16:14:15 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CC4D19D for ; Mon, 27 Nov 2023 13:14:22 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a02ba1f500fso680697766b.0 for ; Mon, 27 Nov 2023 13:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701119661; x=1701724461; 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=lHlTCHe4/wBQkktFnIHXqkfvwqIEOSM2fmKEpfUC8HU=; b=dHSIUL4rRZ6f19icYJRQNs51qpzdk3wy2c0iYfBTxg66Ap7w0M6ZYosnXJ4NnN0I9O /7MP54+NYoFkBapHyc4rY+1w1NT37A0tYLG8lDV8K4VuDVREbPyPghhUKgFpJNMhiQn0 wFpcJ6JyZ10aQ9tQbcigTBLljk8bSn7joHW+E124pxPeldsjV4whny2kqiE4Pk8Abr/o gXvHb8Dg70kHD4n7cNjlBE6mxiOUym51CYQnYvs/ei3qCTvmBJYvyyd5OPM+WWN46AgG T/UcxPhscFL745cjEW3iI2LEAnI67K70VQSu5q54h5RNyrXaC+TCX7bT5JPF/3pbRbxD vYug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701119661; x=1701724461; 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=lHlTCHe4/wBQkktFnIHXqkfvwqIEOSM2fmKEpfUC8HU=; b=Q7ZRL/h+YuQCbUN6Xmnkxb+0Xb5Qjtc90UYJ9i2UZlV8//rSED0OLv3bbYjicD75Wv 5ZmXOxzT99zc46irRNXzimjzQpxX/THb/s28C7sFoFmUVjvvLKSum/FkndwpJ2lodSCd +l0VRXvTyhlAA+yiVbbl35AT4gNC7J31RnMpLWhH4L2xkB2M5RrXU+oo6eGwRiNP1/a5 IWgA1ymcPZa/QFiNCFxz16WMRR7mraZykWnslx8cOKrholjYekv01xdosggcqt44qRci X87Vh6IVfH9iwk/1shFNi4SPEsix01amPShATmraPJ7W7R+0KQ+CfMVJZSk6ydsOVPqb /HmQ== X-Gm-Message-State: AOJu0Yx/fPLPdX5xY/+SzjuTyP3BNFc79urhnl1IbiMigH1cgUynC+UB ONQXvD7muO5MkthMsI7tvT+EGYl3gPzst2r7fbCAdg== X-Received: by 2002:a17:906:2088:b0:a12:72eb:8f64 with SMTP id 8-20020a170906208800b00a1272eb8f64mr544654ejq.30.1701119660661; Mon, 27 Nov 2023 13:14:20 -0800 (PST) MIME-Version: 1.0 References: <20231116022411.2250072-4-yosryahmed@google.com> <202311221542.973f16ad-oliver.sang@intel.com> In-Reply-To: <202311221542.973f16ad-oliver.sang@intel.com> From: Yosry Ahmed Date: Mon, 27 Nov 2023 13:13:44 -0800 Message-ID: Subject: Re: [PATCH v3 3/5] mm: memcg: make stats flushing threshold per-memcg To: kernel test robot Cc: oe-lkp@lists.linux.dev, lkp@intel.com, Johannes Weiner , Domenico Cerasuolo , cgroups@vger.kernel.org, linux-mm@kvack.org, ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com, Andrew Morton , Michal Hocko , Roman Gushchin , Shakeel Butt , 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,T_SCC_BODY_TEXT_LINE, 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 27 Nov 2023 13:14:32 -0800 (PST) On Wed, Nov 22, 2023 at 5:54=E2=80=AFAM kernel test robot wrote: > > > > Hello, > > kernel test robot noticed a -30.2% regression of will-it-scale.per_thread= _ops on: > > > commit: c7fbfc7b4e089c4a9b292b1973a42a5761c1342f ("[PATCH v3 3/5] mm: mem= cg: make stats flushing threshold per-memcg") > url: https://github.com/intel-lab-lkp/linux/commits/Yosry-Ahmed/mm-memcg-= change-flush_next_time-to-flush_last_time/20231116-103300 > base: https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-everyth= ing > patch link: https://lore.kernel.org/all/20231116022411.2250072-4-yosryahm= ed@google.com/ > patch subject: [PATCH v3 3/5] mm: memcg: make stats flushing threshold pe= r-memcg > > testcase: will-it-scale > test machine: 104 threads 2 sockets (Skylake) with 192G memory > parameters: > > nr_task: 50% > mode: thread > test: fallocate2 > cpufreq_governor: performance > > This regression was also reported in v2, and I explicitly mention it in the cover letter here: https://lore.kernel.org/lkml/20231116022411.2250072-1-yosryahmed@google.com= / In a nutshell, I think this microbenchmark regression does not represent real workloads. On the other hand, there are demonstrated benefits on real workloads from this series in terms of stats reading time.