Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp648964rdb; Thu, 18 Jan 2024 14:43:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9OpXjjoWm2aY2K8YqoUlbH1TtXkgltGDtlcHAdaB0yfmOtrn472Gy4oJ5LB306QfOJxeM X-Received: by 2002:a05:6808:f87:b0:3bd:591f:58c3 with SMTP id o7-20020a0568080f8700b003bd591f58c3mr1884593oiw.70.1705617783680; Thu, 18 Jan 2024 14:43:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705617783; cv=pass; d=google.com; s=arc-20160816; b=0SPU9F5rjSMtRjfGdk7EhFSBX7MuqrYEKSaHY2yayG7nhjqls0iqTZfPS703pLEQuU te7iKCLiyxzN0A6PB2mVuLJg1dIlhxaTSUU1faV2fl03fZKInOxYJxVMHvPuE2EAujf2 B3greW6X6iebNYQ0xBOaqxGjh0BH6/Ac4amEqW3zeikiTi98dhS0V+CwnpE7FoPt3RW2 5DMnmNXjWyiAWwgTUlyWEcV5127xpftVp5q6ioAsMJhZZpckWwcJLrUkjE82G1mTohNh A5yxWl+LhgOwcw8uW8retapyi/AHrP2dw4IrMmK9ZtGa1P4REQsLu+OGg2g1uL5wyXg1 NzBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=/NW4TFX7CWHcAM/ELBrbNoRjZoFg4ECdesduuMPSbGg=; fh=oS7ENfrw/WS19ojFggKA6eKRGQhYAs+8JPLz4iK7e2U=; b=AfnVNMuWn4Yyf40hwyaZFByWMJnmA0MRg4pFqQC1/TIZkZMnTcIxR7Ab8XkM/zgd1O IAO19Mx1TLUEMGEW2bKykeDRaTOOkquJJlKQLXoZ2VIAbPT8tj69EJLXNlp9ZiM8dcP3 +jdElRlagcuDL9P3no5zEZjP/BLEqp+JmV8gWtglsss3bmjSujkRSzrYyfLmd3gDKW0l MkqfZJIuQLxOPKJSAY3dMybtG+cBvhdKAGdr6Gdq5vJ/aYtBRHhz2gPGDUiQuuUoG6zb l2hl8DmgWBp1mYvMG7hm2B5HxhbbgVoM9iePV6ldjtWvLTVPzB0KhUJo49OaS4IJ6aD3 sf5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=N4IE1QCV; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-30608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a16-20020a05622a065000b004299165c22csi14894906qtb.467.2024.01.18.14.43.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 14:43:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=N4IE1QCV; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-30608-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 586BA1C23160 for ; Thu, 18 Jan 2024 22:43:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8F551DA33; Thu, 18 Jan 2024 22:42:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="N4IE1QCV" Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6866CBA30 for ; Thu, 18 Jan 2024 22:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705617772; cv=none; b=deKdcKJCIky70p9Kmd25Xq2o3bNg8BukFx/qCiS6I+zGgbrXmsHwDEWxVV+dLSGCerUrfS84miMNPlQPrjaJD4cl2ofzbzkpJi4HKL8wTpQulq9nUShgyLcIbox5c+YT29T+Yy3n/oSoPh2iXjWadGz1XPp6OPUmHe16A2tAwHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705617772; c=relaxed/simple; bh=V93lACEuy9Jh/3kUbqPce0PY+Pu7FyLGV9Ep7HCIgGE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p2sJnCigWEEdkauomjBSYTE1qbsPwcMnziWCY+bs9fxRDoaniTtQqSAYpTkbbd7Pp23jET5LBIq+9BLgERsgLxFYSkrBas0T75llmlW02USJWsoxanZ/Av4PQWEAZFYw5+W11I+Ei1zlDiRh7dzP82SjhPVLW7qeGYdN0tS23TM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=N4IE1QCV; arc=none smtp.client-ip=95.215.58.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Thu, 18 Jan 2024 14:42:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1705617769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/NW4TFX7CWHcAM/ELBrbNoRjZoFg4ECdesduuMPSbGg=; b=N4IE1QCVP5VIcbuR4Mcg6nA+HVgTdyZjjmPLO5un8b8uPzNausMnYCjqobPCaZI8wxOxAC vhTC220fHpAXcjr+SWKeqaGT6V84JiNihZa9Bx0OJUm5q5b6hZwLpaSRseEcXg9CnR4+8H GtBpMR3RI2JnOh3/MdavJtceCr2yLcY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Shakeel Butt Cc: Andrew Morton , Jens Axboe , Johannes Weiner , Tejun Heo , Jan Kara , Michal Hocko , Muchun Song , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: writeback: ratelimit stat flush from mem_cgroup_wb_stats Message-ID: References: <20240118184235.618164-1-shakeelb@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240118184235.618164-1-shakeelb@google.com> X-Migadu-Flow: FLOW_OUT On Thu, Jan 18, 2024 at 06:42:35PM +0000, Shakeel Butt wrote: > One of our workloads (Postgres 14) has regressed when migrated from 5.10 > to 6.1 upstream kernel. The regression can be reproduced by sysbench's > oltp_write_only benchmark. It seems like the always on rstat flush in > mem_cgroup_wb_stats() is causing the regression. So, rate limit that > specific rstat flush. One potential consequence would be the dirty > throttling might be decided on stale memcg stats. However from our > benchmarks and production traffic we have not observed any change in the > dirty throttling behavior of the application. > > Signed-off-by: Shakeel Butt Acked-by: Roman Gushchin Thanks!