Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp252826lqb; Tue, 16 Apr 2024 14:53:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdO1peQ+YJYtMZ5hz9fq0qxu23XFwv42gTxWYBDmhXYZCSX+Oqb2rLvatbKuf6EAiRidOpSp1QJgvn9N2BAA9EKoN1yBX9tec4ch4X5g== X-Google-Smtp-Source: AGHT+IF30rLNG+/ko+9u4VIR0qsOXbVACIEmPrDjfLelWv1ADZOhWgiOjCmXseTuR5d8j+XZrTeN X-Received: by 2002:a05:6a20:9d91:b0:1aa:43f4:3562 with SMTP id mu17-20020a056a209d9100b001aa43f43562mr4517022pzb.11.1713304384322; Tue, 16 Apr 2024 14:53:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713304384; cv=pass; d=google.com; s=arc-20160816; b=wFH6+TNlUxNn5nn/SLVli1VaLjvJ842sNtxjDswJEfTmbgVq89gnvJv0LorLvNZWw9 y9heeKFPZ5+/dFZqH2IrQm8v8ZnXjUXVu8AHxeNJzxeFNsf2QdUGZHn29Gv/uYmYqxaL 5KbnDBGrrJ/vrZbwEp9BRoY4wult6ca8apekJsNYKMLl7awMbpo/DhhMGKN8xMr2vp/s 431sZI4hOhBDryFREVTzFcZ+LedW7//dBVnU7cHpUeVdmnH6mtH2IebCPUyi6+3DL7fa ZK17cu3qdZWL9pfgQY5UbJo3kYittqClI3L/VLL7NSGyF+EjO6Qzzt/AEazZgam/3re/ 6ibA== 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:date:sender:dkim-signature; bh=u61spwe0Do5c8jGaqkZhY8ilzLdgZGrdaCrcO7X9sXs=; fh=7FnQPnm0iYFYrXYJQR8Gnk+afCurM8Hg78k3ok0lkeY=; b=YgSZWuNlWv5zoZajsfgJMz4zQd8zS+NerSuqz6DsG+Arch52uNVIedxF1Fw7KrlaIe HhDcKjN+CR3oJ5ZWYb3yTqTSp0+j8U+1oizyOP+ocV0RR6hUgAMde+jw5H5w7NSNlsUn Hn4/u7wf6laY3+CVxeZTa9MvQ6DnwyddkxcHVTdki7lWshC8Pd53XLrM3qnt4fmcBh/M IxaWyGE+Aop8bFYrz+7tOeNCbAt91fTquvSp/zM6PJj1qSDuWmULM2dnosid1h0kXJXv jNuK+jag+x9IjgnfDbpsWNEhZg2KNnRAEhnwn9BjtaEa82DAsB3LI0y3L+Ppw0McKulq GUqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f+VTSnLy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t11-20020a056a00138b00b006eab2023cfdsi10532689pfg.157.2024.04.16.14.53.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:53:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=f+VTSnLy; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-147650-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147650-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 288FCB24B40 for ; Tue, 16 Apr 2024 21:39:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E91613BC1C; Tue, 16 Apr 2024 21:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f+VTSnLy" Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0EBC6CDD2; Tue, 16 Apr 2024 21:38:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713303484; cv=none; b=hGLPxis048KkGbba35yPpHFCmj4oDNGfqmWvsQxa34eL/FlU+te62V6lCs1LWI+AG4WFx1MayaA4J9DnvUq4goPrqJLnejJ/1+I9U2XDK0DMotbTGC2SyTFKtGpqGiK3xUe1fAoWJRoF9usNGStn1OJn+ba/EJ/Nn3owSW5Isb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713303484; c=relaxed/simple; bh=B+n5iLr1/2SxcAwtyZ5duth3iMrBAHfrJUv5OU0YCRY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H/cnenK7FqAc1CHWZ6MPN320Yk4cZXsgM0CfVQ09E3iUzo6x/D+ua4/AxHA1sYLCebG61f5VCLJYK/swQc9UTUXtXp9H3wJe+1GrRriN171DU+trWqks0vpHTnsw08Lutz49jtW//++KhRG5DKHKnnLeqSGSXXkV7OygFl4ZHzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=f+VTSnLy; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6ecf406551aso4003268b3a.2; Tue, 16 Apr 2024 14:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713303482; x=1713908282; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=u61spwe0Do5c8jGaqkZhY8ilzLdgZGrdaCrcO7X9sXs=; b=f+VTSnLyR7dh8obDPMNbQFtmiIn4OcPeh2sNMjzbE2fsO52EKBDJVHq1Ne4NyLv924 8a7GFT8QIDdMk2XYsIDSo6+mantwOt1CfuE52x0Yul6lLcLHO7uqVkh+J20jlH5sW6qY GqVC7lTNbkOk01+YVQi0Go2cEXZj8ypl3TYHu+lE667cDlIhNw+egK5QmNOZ8UgKEDJN mqyqp0t4kUUaGqhroJHvAshHc+Lktj2/M1r15NcTU4MAM72RyF2Q4JFwfjbUKiWAC8Eh j6fGx3kCZhe4cbwloRVPSZRyXSpJ0YApGk6XLqEyq+niHYsvP4+Pu6GgJ70rvH5kHBy1 dOPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713303482; x=1713908282; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u61spwe0Do5c8jGaqkZhY8ilzLdgZGrdaCrcO7X9sXs=; b=pt5pvsICxOKO/5SjuIcNVo1XAwEPfXSLp91ZBQ+2joDAoaF0XSctm9snz3o/CFjbkC sLflstnWAmUFkUZPTBjFd706/SqG6FRs2tfB1fXAfDt13lURA7I3FDbxSBuzzVZKGhVZ dUBHObyJPQr+ozC8K/31sNqr9RHsLRrw6NsHFvLT2dn1+WYZiX80hpe0dK1B7qXOyfrF iWMvI4FlOxrAs/b8o05ezm2PvvN4E9fCiF6dZU7t9KwfFKfSAlG0/5ReNRHc55ybNRZH P+faS+ZshrUVz8Y+QFXfS5TgKaNttIdtylL3cEPBFjGXoC7A8LbNnBnkC1U5IOU7aQQc F2Zg== X-Forwarded-Encrypted: i=1; AJvYcCU/QFLNkdhz0HZVGMRzKYm4nzQCw8/k5Q/tK3x5Gsl/O6/OF52exj44bmR5jVHoukVztUhdqAxYXM5RGdwrBF0DvGdb8hPd4RWatJUQkwuQyiruWk+SF4w9UceViQFWKy60aRGt2VXU/B6OZiRoDPw/lcVNkB0NCYWgVAqPVQ== X-Gm-Message-State: AOJu0YzG8ra15BqPubhjEDJmT0F3pidlgBcqnhVGggkz0pAZYcQ1viZN vBtXwxuQgEE5aEWor6DWMIdUyt8rjiJ069wz84vyEpXsL57iqR8B X-Received: by 2002:a05:6a00:b44:b0:6e6:9af4:409a with SMTP id p4-20020a056a000b4400b006e69af4409amr16443625pfo.33.1713303482049; Tue, 16 Apr 2024 14:38:02 -0700 (PDT) Received: from localhost (dhcp-141-239-158-86.hawaiiantel.net. [141.239.158.86]) by smtp.gmail.com with ESMTPSA id k195-20020a6284cc000000b006e4e93f4f17sm9874856pfd.117.2024.04.16.14.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 14:38:01 -0700 (PDT) Sender: Tejun Heo Date: Tue, 16 Apr 2024 11:38:00 -1000 From: Tejun Heo To: Jesper Dangaard Brouer Cc: hannes@cmpxchg.org, lizefan.x@bytedance.com, cgroups@vger.kernel.org, yosryahmed@google.com, longman@redhat.com, netdev@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, shakeel.butt@linux.dev, kernel-team@cloudflare.com, Arnaldo Carvalho de Melo , Sebastian Andrzej Siewior , mhocko@kernel.org Subject: Re: [PATCH v1 0/3] cgroup/rstat: global cgroup_rstat_lock changes Message-ID: References: <171328983017.3930751.9484082608778623495.stgit@firesoul> 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: <171328983017.3930751.9484082608778623495.stgit@firesoul> On Tue, Apr 16, 2024 at 07:51:19PM +0200, Jesper Dangaard Brouer wrote: > This patchset is focused on the global cgroup_rstat_lock. > > Patch-1: Adds tracepoints to improve measuring lock behavior. > Patch-2: Converts the global lock into a mutex. > Patch-3: Limits userspace triggered pressure on the lock. Imma wait for people's inputs on patch 2 and 3. ISTR switching the lock to mutex made some tail latencies really bad for some workloads at google? Yosry, was that you? Thanks. -- tejun