Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3545988rdh; Mon, 27 Nov 2023 17:59:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IGb/YTYKygqeg2UONwoqmTS19WHYZtoaiHYd2e8YE+Hjmszot5xfzXQcFBp2C1WXYvysUec X-Received: by 2002:a05:6808:1211:b0:3b2:e34f:349b with SMTP id a17-20020a056808121100b003b2e34f349bmr18391289oil.42.1701136752879; Mon, 27 Nov 2023 17:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701136752; cv=none; d=google.com; s=arc-20160816; b=iCngo4GetZ/Jq5JRcVmTqe5MGCI7EqCpDJm23cmc4/YtEOyTtSkYay1zLgt3McCNvi tIQelOIVaT6p0raRTtfU7RG41F78EwE+kq6ZpW6Krawx0yXjsJSUwE6RofZxXpCnrcBt 0W9veCTQSi48LrbijX3HRI/Us5RZhGF/2H0BJ/aYBxjWzJuOFwscueGAbMjUXSaa6BTm ZTYM7lfzY1dHifbNUtyZZZ8QZKWgTIMnFQc8Y5f7tU1jSuoaP5JEr7B5HJYIFxcbg3Yu yRGGFVpqmgrtqzz70PnLO13dpmGAQzju7nTcEvLcdbovpf79T6oRxffRY1OpVwaxdKoD wcvg== 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=PphOIqSqCVmNNOsOe5Hpj1iumuWnMQ+UeGD+TeZjx4U=; fh=ruUCMeHh2gQv2aVemP0HBDEwrU9GZfU/kCTNl9t/7yk=; b=pfzKKTlh5clP7OkRjwcvE1rgkgDvgiCHjFNIAV+YCLddtjEaFeAY0Ro53ltISLMgwj 4aW1LmxdtEuCPes3RGA+PVhkik6FsiSUZW2SfW90t6VqR7Hltpee7ZBZLm27a+77VZCK py2tuOnWoCpDobc/CtcMT2nM4oD6OTEfgC8S/77Eeis4R3k0aJtghzJAgIsfhqaJinyJ tLof26C5u+Y4H0W32cf9gaPslZ2mTwuTBJTs7+RUiCgfO2EM4hY34IdTezGdOWJRwLqW hyNzbKq4+ot6Yi+Y/WnfQkyYqD1OSipmR5RqM7r5Dn/KYWvfTzFdlF0enXLTDeifilrW 2bjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=tIUWpXay; 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 s4-20020a656904000000b00577960a815csi10647480pgq.188.2023.11.27.17.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 17:59:12 -0800 (PST) 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=tIUWpXay; 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 7132781BEC8E; Mon, 27 Nov 2023 17:59:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbjK1B64 (ORCPT + 99 others); Mon, 27 Nov 2023 20:58:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjK1B6z (ORCPT ); Mon, 27 Nov 2023 20:58:55 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 271651AA for ; Mon, 27 Nov 2023 17:59:02 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9fa45e75ed9so672856266b.1 for ; Mon, 27 Nov 2023 17:59:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701136740; x=1701741540; 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=PphOIqSqCVmNNOsOe5Hpj1iumuWnMQ+UeGD+TeZjx4U=; b=tIUWpXayImjFTCSBwCvC9k/n34K4SzVufu+DlrAXNVgLLhzvIhOwrkHntuzx4IP/xC rnYM1wcdm/0Q2i3LZK702k2LwSXQSYybW39h+BVdeIJkzZELV0NwKJUAlLpNTW8lP9P8 Fyf2DosQAp8Si+hQ4R4+3pyTcuD2uFjcna3241igT0ugWvFDKxKE7F7+ze/VPxCs5Xt1 p4IejA1H3AikSxJARZWPfYS3/DHEPOXP4hrxLxuZa5APO52LckTO4tT9jV6WubdgqhAX nJ+EqFk/3qGqstGZHm/NcZZKkRygbb6xY+I/4zOLn4F9aC7nlcC+P1sFU/DYi/yRcCgP 3QsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701136740; x=1701741540; 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=PphOIqSqCVmNNOsOe5Hpj1iumuWnMQ+UeGD+TeZjx4U=; b=rMp1in+yVnu4cj4Jj9nQYnrjHsHMjNYvGifXaVIbjkYoHMKdd3KWPezasiESlUZ4zv nGPGhPR5V0U8N25aVFifYI24SFtSX4XEIeQ1r6aikfsF2MGUlib5n/UmEOdu9xiNDmSv kqtE/MBlJ59BD/eI0ijAIIYS0TtmKSuUSeQhvIJZFmUz312soXa5KSF0M/GrP1oTJqo3 r0zW/8OIfMWnpxBhBwI20QH4RRL14aPQuutwpbZ6b9Yc7rsCymopzh115egYvkBkPEPU kVlNM2DxPUg1uhHFYbMBGnISLa8U4XD7atKrhEG7HfqqUz91kIQWZAWvUuzouelymrSF 4L0w== X-Gm-Message-State: AOJu0Yxq1jL3ALBo37RXQXYaVDM8RFVCs5jAynuYNlYRbBaPXus+ZGtv Mgl3Yx1b5C7NtZqBM0nvAJMnujGNmOcEmK/HO6Cmew== X-Received: by 2002:a17:906:c282:b0:9be:68db:b763 with SMTP id r2-20020a170906c28200b009be68dbb763mr7753564ejz.71.1701136740404; Mon, 27 Nov 2023 17:59:00 -0800 (PST) MIME-Version: 1.0 References: <20231116022411.2250072-4-yosryahmed@google.com> <202311221542.973f16ad-oliver.sang@intel.com> In-Reply-To: From: Yosry Ahmed Date: Mon, 27 Nov 2023 17:58:24 -0800 Message-ID: Subject: Re: [PATCH v3 3/5] mm: memcg: make stats flushing threshold per-memcg To: Oliver Sang 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 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]); Mon, 27 Nov 2023 17:59:10 -0800 (PST) On Mon, Nov 27, 2023 at 5:46=E2=80=AFPM Oliver Sang = wrote: > > hi, Yosry Ahmed, > > On Mon, Nov 27, 2023 at 01:13:44PM -0800, Yosry Ahmed wrote: > > 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_th= read_ops on: > > > > > > > > > commit: c7fbfc7b4e089c4a9b292b1973a42a5761c1342f ("[PATCH v3 3/5] mm:= memcg: make stats flushing threshold per-memcg") > > > url: https://github.com/intel-lab-lkp/linux/commits/Yosry-Ahmed/mm-me= mcg-change-flush_next_time-to-flush_last_time/20231116-103300 > > > base: https://git.kernel.org/cgit/linux/kernel/git/akpm/mm.git mm-eve= rything > > > patch link: https://lore.kernel.org/all/20231116022411.2250072-4-yosr= yahmed@google.com/ > > > patch subject: [PATCH v3 3/5] mm: memcg: make stats flushing threshol= d per-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/ > > got it. this also reminds us to read cover letter for a patch set in the > future. Thanks! > > > > > 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. > > > > ok, if there are future versions of this patch, or when it is merged, we = will > ignore similar results. > > just a small question, since we focus on microbenchmark, if we found othe= r > regression (or improvement) on tests other than will-it-scale::fallocate, > do you want us to send report or just ignore them, either? I think it would be useful to know if there are regressions/improvements in other microbenchmarks, at least to investigate whether they represent real regressions.