Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp782265lqh; Fri, 31 May 2024 17:38:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV6s5k8NT+QXL9iBislVopkcPB3TVytouBw9nJhGrmVXnwwJq0WuRdqw094MEsbDNqHwHVb9yvLl5rVwjigji6hovkYYW+2T0zAT6Tq6Q== X-Google-Smtp-Source: AGHT+IF0lfEsFR1MuMy7el6izJMdik5nArLr5zs7bTr7C5KUMNgdNxBHjUpmugJkhaq2UrvNAeY7 X-Received: by 2002:a05:6a20:d42f:b0:1af:adbf:2a16 with SMTP id adf61e73a8af0-1b26f2cc972mr2925613637.43.1717202317856; Fri, 31 May 2024 17:38:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717202317; cv=pass; d=google.com; s=arc-20160816; b=o0lb8VFdUhjo416Er4+RaWUCqR0c01aqpxczNqtoiX/E0Dk8Wpv4nosol5P2S4xl85 NehIO6r797afOcrzV8YwO8NHTJFr98LrYIki86xJe/UgqKqeKsRInD70jFnLP5/9B/Gi fD80UqWR//6zGEv7otAyXPzqg6tiXDsDfSqacaSoyuFPtE0XCghYfTAcRPmXby0g1j+Y f/fWdrLaqyAiaJtw6nqW6oWtYZo6+RbrCrBXsjITmTwl33jGEAIeNMCaup7YFRkkZTmp GHF7jdbwZecwQgGs3FuG3X4MC8rT/V7h14aqiRfsjA9etXe5YI863u/fICFNk6UYmr4M fMmQ== 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 :subject:cc:to:from:date:dkim-signature; bh=fH5dPlv1fPxQyqWIDMk4JP2Z7wsugQaKZITzDLIa3L4=; fh=rffJ48t20ZJrHCb5epUsac36Dz7jHMunNwCMDgYRqLA=; b=npO9Qjw9rBsnw4JP5EVlAB91q0jYAbXVwUVdOv62H48zcrLq1hqEPNXk/zka0ihkJG qvvTXkXEo5RF8I/kHHnYvqC3xITJ01y8R4W+54+w+fBIWKF43Ful+e/TklXDT2H9vn+n 1IPQzmlcOWnN9SCghrnXId9l69V+ZrRl4CdMIJb1BIhRfJK2ewh2McoL2lET/S8jlmCv 9LYtTl6XsPyJGmDjGdmwlrlhWpc3Vmsp6IN5swCnKVq/EE2mdmdRaRtV1qFGfbyeQZ51 4nl9viHJq7q2sRIdp+vs5rj7g2tkVq5PjMyPacVCuPyPWDZCMJ1UNobETWHeqd8nb8eD NLBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=XEPfHq95; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-197621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197621-linux.lists.archive=gmail.com@vger.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 d9443c01a7336-1f63233d3fasi24804485ad.56.2024.05.31.17.38.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 17:38:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197621-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=@linux-foundation.org header.s=korg header.b=XEPfHq95; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-197621-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197621-linux.lists.archive=gmail.com@vger.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 F16C0B239CA for ; Sat, 1 Jun 2024 00:38:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C7003FD4; Sat, 1 Jun 2024 00:38:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="XEPfHq95" 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 5419FEDC for ; Sat, 1 Jun 2024 00:38:24 +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=1717202305; cv=none; b=K1CGsHDPAMKk8FzFIUgE/aYK7DAPv12jo4t4B73MMbr4DSD0ShB+q15AjY5AMdQvUSH0wQILYC7EuvSE0A0IvTWpVMtOTVYLrUC4udbOs6uDn5iTVNxleEGO/LZYI+Mds8FU2OugrpOwmDbRdlTRY6AB6PzaNtw4Gui1HERKx7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717202305; c=relaxed/simple; bh=4hmjM0UxydhUZza82YHCth9Sj1TFopzUWYdExi8Y+ps=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=WOj7m0qFjlZ7ORO+ArWxzq8KqEEG1gvTOHGs0eGY71vhUm04zLS4CUfa4ZpnIj3JrH0uujlEkbVxdL3gDosKbSu6EJSTvhwY/msxIU8Lo62I6hkCenSpj7k5PNOQ+7Gofk6osKAqSMbPEFqhzdM03L9DsfphTZg7K3TydgMc0UA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=XEPfHq95; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4326CC116B1; Sat, 1 Jun 2024 00:38:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1717202304; bh=4hmjM0UxydhUZza82YHCth9Sj1TFopzUWYdExi8Y+ps=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XEPfHq95tZ1aJQMXPja1E8IqZy4rexHmWp0iBOOB0OTCFho8Ql7VXEbGMzYigg3hd JjHiPLp3BFSTHPZwBzry59vy+fTxRAuDunP8li0et+GKwmB8ZgG8lWdyZ8DPubGIA8 Em/a/V2spFlZopuIqcVPUKi2KOCXslvHZ3Q10FLM= Date: Fri, 31 May 2024 17:38:23 -0700 From: Andrew Morton To: Pasha Tatashin Cc: Shakeel Butt , jpoimboe@kernel.org, kent.overstreet@linux.dev, peterz@infradead.org, nphamcs@gmail.com, cerasuolodomenico@gmail.com, surenb@google.com, lizhijian@fujitsu.com, willy@infradead.org, vbabka@suse.cz, ziy@nvidia.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3] vmstat: Kernel stack usage histogram Message-Id: <20240531173823.4ec7b4693a4e433b1da91e75@linux-foundation.org> In-Reply-To: References: <20240530170259.852088-1-pasha.tatashin@soleen.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Thu, 30 May 2024 20:14:17 -0400 Pasha Tatashin wrote: > > Couple of questions: > > > > 1. In future with your on-demand kstack allocation feature, will these > > metrics still be useful? (I think so but I want to know your take) I do think the changelog for this patch should reference the dynamic stack feature. It strengthens the justification for adding this patch. > It depends on how on-demand allocation is implemented. On hardware > that supports faults on kernel stacks, we will have other metrics that > show the total number of pages allocated for stacks. On hardware where > faults are not supported, we will most likely have some optimization > where only some threads are extended, and for those, these metrics > will still be very useful. Also useful changelog info for this patch. Pasha, could you please prepare some additional text which I can paste in? Thanks.