Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2040890lqg; Mon, 4 Mar 2024 10:57:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUkawltZZCWq4Z9CL34maCp9JLzEQuJQky6OxvEnYl7ySDoq4Tj8qLfG0q9a29iO/MvvymAHIVgxS+ORQ+kAaODIywKrr+VMitxeO6ACA== X-Google-Smtp-Source: AGHT+IHEltXw85r76hUgSDvvqatS7uKM/yuvtx3JovCi19KrdlRI+UwfCi7gyEjkfNJUQrzPw/H5 X-Received: by 2002:a05:6512:3985:b0:513:2323:1ceb with SMTP id j5-20020a056512398500b0051323231cebmr8504284lfu.5.1709578642622; Mon, 04 Mar 2024 10:57:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709578642; cv=pass; d=google.com; s=arc-20160816; b=GWMjAXcgALAeu30v5Q3eujSWmG3XUeuqBGZYzjVWUEJqqpjiwRSW2fYpONoTkV/3nb z1FmVg0Dw7x9C132f0ZHIHVJtfjYn0sU7Qw7PlRtlGT4QaMB57dhIR/6UNTZbExxpCfS biZ665IFownecZYBaoNxmOx7NVb9aiV3xllbHhlzd+RqT4nsu8GcpPvBJrAa7WWr7Za0 C9rFnucY/onth/jehL/l70wqCuDZpgcSPcEVjy+OXjP5+E1KExKuRuBD2cmLs/+3nvIc Eg2/dW8TYdrTyoSvHUAhKvIAdMQ6J6A3aWpIgSJAq9WaMf+MhbsMzTPMscu4DwbNdQq0 hdew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=z90sx0PMrpRDdVH7bkfBzQZv1rUlvUmlqvTQrT7BmZo=; fh=H6xkXvsAwvp/34nY3EH65aqjJv8KBeIBTDlkoOf4BSc=; b=oma4rZ7MDnz/MIdmJ461RZB/x0YipussbUJ7mVnea9QSXz9YGi+2tKWul6XDVEHLLG uS1UnoOn/TjAfwWlwJoFnIvk41pRrEerYvdLmmnVxlkn7k52MrfJzUt4K8y/pwYGY4fQ O+XnuGvL0rJiPj6XHo5izC52DeFjsYr4+I6NGtWWQMWxS1gYs4nvOP6vNmRtXswQpVYn pYK4LuiRDGi+wWHCefEMhsaZ+41oFQMX5TGLnoNcP/v2JnAl9JSz6x4KQcidXY/078e9 VkD1i78tVdFvtyhNkFja/iNaazJocuBZXrcqm1hqc++2ru5G9m96ZWQBHYOqGlNQXZ6P zEUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h3LJUGSR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o8-20020a1709062e8800b00a449eed43e9si3084674eji.592.2024.03.04.10.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 10:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h3LJUGSR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91139-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 554E21F211F0 for ; Mon, 4 Mar 2024 18:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A22B678B55; Mon, 4 Mar 2024 18:57:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h3LJUGSR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 C8E976216C; Mon, 4 Mar 2024 18:57:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709578634; cv=none; b=NapJEUIlzTJowDcHb8phSDpKxVfMu1DVhsg/lHR9U48BRcj7jv+CCE+FBI/bHEDyVTt6a5JzcK4/0I1ykDfPeGsXcMoQ/eF2C3HUwkL3VhVcwwjs4UY4YZdKbPHFxBfwt0u2aVNOOqTl2hXoTk9XqFBVa2Vqdg8xOAZDK3OlP5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709578634; c=relaxed/simple; bh=/EhQrRi+aF9jxKoHeK2K8/pKbZ1CywMZcwDYE9ciYwo=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rVlINvSfHFfDjBSt/RmSUDvvwFPu9NmAl0M5jG31/NACMqhULoO/XngbAhH80lJjOPdRqPvHCv4CegFbhBRG5d/OXjiU2nzK+Gk2IHlFN9g7K2ItaZfVfK/D0V7YWKTT3y3KFl+AfupuLhyBXbD8qWEwx4UtGZsykByMkDZNqnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h3LJUGSR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC60AC433C7; Mon, 4 Mar 2024 18:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709578634; bh=/EhQrRi+aF9jxKoHeK2K8/pKbZ1CywMZcwDYE9ciYwo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h3LJUGSRevjI1dYTdzrXwSaC+81ToZi62XnWvfbzvh/aOoC4KCMlDTdiDnoT5hven 3qRiwCAw/5ZV4QojsWWmUTeeB9vPmRMZdRhJB5ORGw3txm2KZ9fVlicQC8I2BSJv/1 ngqQCLM2t9uhHxssMcV5rpb71K8cRum3cL0AnrNZQ2WMO2gLae8CgIz5unuVA1LS+y 44dUB8ah2wns66cX3Cvra+axKpgKjfwDdoij4MXirAeJS6LRHXUtMSFpvRcIly20Qc FNi6WVbWMVn7ux6AODKPm2EHV1V61g+6ntQWzrHa01fyo2U5K5zvyiEr7ZuTcBmWBi doUoqzfEmxLuw== From: Namhyung Kim To: Ian Rogers , Arnaldo Carvalho de Melo , Peter Zijlstra , Oliver Upton , Adrian Hunter , Yang Jihong , linux-perf-users@vger.kernel.org, Ingo Molnar , Jiri Olsa , Mark Rutland , linux-kernel@vger.kernel.org, Alexander Shishkin Subject: Re: [PATCH v4 0/7] Thread memory improvements and fixes Date: Mon, 4 Mar 2024 10:57:12 -0800 Message-ID: <170957856865.1606352.14840215772677591593.b4-ty@kernel.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog In-Reply-To: <20240301053646.1449657-1-irogers@google.com> References: <20240301053646.1449657-1-irogers@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="utf-8" Content-Transfer-Encoding: 8bit On Thu, 29 Feb 2024 21:36:38 -0800, Ian Rogers wrote: > The next 6 patches (now 7) from: > https://lore.kernel.org/lkml/20240202061532.1939474-1-irogers@google.com/ > now the initial maps fixes have landed: > https://lore.kernel.org/all/20240210031746.4057262-1-irogers@google.com/ > > Separate out and reimplement threads to use a hashmap for lower memory > consumption and faster look up. The fixes a regression in memory usage > where reference count checking switched to using non-invasive tree > nodes. Reduce threads default size by 32 times and improve locking > discipline. Also, fix regressions where tids had become unordered to > make `perf report --tasks` and `perf trace --summary` output easier to > read. > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim