Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp648254lqp; Wed, 12 Jun 2024 11:50:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqlC2aGcD8+7ZvWtU2WvwhycUVil/bzmio/cIhqmlDaFKeFvRV9MhqOkbfAs9CYfarzH7Je1mW5i+QhHCjkPXhuLXdW/eWzxvCMTVv7g== X-Google-Smtp-Source: AGHT+IFyniUQP7JEwhx6Grs+hiTccssXCeMA/gxzqBrlvzH60HQg2YWpJVPpBrZpMYt8piNfkniR X-Received: by 2002:a25:db03:0:b0:dfd:dc4c:ec4c with SMTP id 3f1490d57ef6-dfe6785974bmr2790758276.36.1718218239002; Wed, 12 Jun 2024 11:50:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718218238; cv=pass; d=google.com; s=arc-20160816; b=qJlGKsvkJNnBn1Nv0Of07kVXzu9kFz9jGDSyqAurb39568LHaFVvPTPecKiWnwNQgf /tRQeehEqkfLCTfM6W8jH6ftljBMkUN7qf23sq3XF48lckmn7JWV8+81qB9M5Jf1osaL gFyApwkg2NgKxHiPAbuXnfaT9mJOk6gFEEpAl1Zr2IDig9t9nsRr9JuUVF8JIuQQzDyV bKdhEH4yazhBNUXZvtq0yvUftL/7OfGxeXV8zZWR5QzOHxOAqgMHhCG9MyrzHjiD5p6y U5+D4LC0hBBUNkqPYmi92+UZ/xsId5NokawxoWjlkQaq+9lQ7oMj3Z5s2wJ5eEzVESBi gZoQ== 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:dkim-signature; bh=dAHOcp7dGNkmdIJVuztV1Y8vonlu6XpX0HLfB7078Ao=; fh=K6zc+KGgIEg7Q9hb616f12OP+0F83AOSmrUxpBVOjSI=; b=MXiE69B5E+aR9zRIxhaxHclPsVHo38C32+T8ebw/CMYmscbkIRgigEuHtxWCBI3BqQ xVUP7vZ98S6xJpWpLm4J0S9ZCoDwxX2xf7XTFgVTmz3KmDIrA+9WiAUjya1mXW30lCjf Gax8/S6qesZjaUOKNDFKR0CuWvw4DHoIUXRNL8lEtrXYGqQpCg2+JQB2IkePavBHf001 rH2J91ntOMb0bx9yEe8OZLfdfClkq8qcQ6KIin0ljlsS7/Dp4k0rhRSp3870Y9HWx74d Mql1BxhS+hFklys6EMM7Z/pR1lM/rHYt17/bn3sbPv3O/HKLV0Vy7wfXy1n1rAqHUa0J 8YZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cIShlX4O; 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-212119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212119-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b0652f36cbsi124257666d6.137.2024.06.12.11.50.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 11:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cIShlX4O; 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-212119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212119-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 B6A581C229A6 for ; Wed, 12 Jun 2024 18:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89F5A4CB55; Wed, 12 Jun 2024 18:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="cIShlX4O" Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 D1E892F3B for ; Wed, 12 Jun 2024 18:50:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718218225; cv=none; b=BO/jfpnswGJUNRXMKYwCDs8vxJLN/L6CFRNz3L2cqv2G4whnVwBQ8ITQ8PVPASTJCYATXDk3k5uvcthLyfUYYOS4WESKYn/qf4gPlnEyvY2IuZxRqH1nRXc4iIJYfvc1hkKQsm3I2CXEGAAFtXDhhCfWWhWAO036QmT8JTmt62g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718218225; c=relaxed/simple; bh=+DpokvkbGTafsw4G2Qe3lR3ISLbnIvGu/+tYnnQAXlw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L/xzHJjX3ctzhTMx0blRPao1QVfWMxsKRPk7HqmpZry6iW0PPKj/UbkSy4AANRpdrGn62Psd1T9E0kmJZ2cvjdRxu8enNDpkXucgl/D0/qW1bu2xXg3ZpEDQ9yHsrXglVJgmJVHgmD1cAI/T0HsmGK58Tlfla3YSbpe5NYwUWY8= 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=cIShlX4O; arc=none smtp.client-ip=95.215.58.178 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 X-Envelope-To: pasha.tatashin@soleen.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718218220; 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=dAHOcp7dGNkmdIJVuztV1Y8vonlu6XpX0HLfB7078Ao=; b=cIShlX4OOzhvDdrRaYtiTXEPRe4xMyDNEhViio/6YFoVpTThDaYaWuJGHVt5ljPhEVJ+pY h+1Qw/KgNNdmw9OOr9CPhhrQK2oxtZ/3Ga9+c9TgA5kBhtpworD0vFjVPkLnHxy1wa5WQs 9wxrmW8ucvCEA/+dJkw1CY+gN5ZL6Uw= X-Envelope-To: akpm@linux-foundation.org X-Envelope-To: jpoimboe@kernel.org X-Envelope-To: kent.overstreet@linux.dev X-Envelope-To: peterz@infradead.org X-Envelope-To: nphamcs@gmail.com X-Envelope-To: cerasuolodomenico@gmail.com X-Envelope-To: surenb@google.com X-Envelope-To: lizhijian@fujitsu.com X-Envelope-To: willy@infradead.org X-Envelope-To: vbabka@suse.cz X-Envelope-To: ziy@nvidia.com X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: linux-mm@kvack.org Date: Wed, 12 Jun 2024 11:50:15 -0700 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Pasha Tatashin Cc: akpm@linux-foundation.org, 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: References: <20240530170259.852088-1-pasha.tatashin@soleen.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: X-Migadu-Flow: FLOW_OUT Hi Pasha, I think you might have missed the questions I had below. Your response would really be appreciated. On Fri, May 31, 2024 at 03:42:34PM GMT, Shakeel Butt wrote: > On Thu, May 30, 2024 at 08:14:17PM GMT, Pasha Tatashin wrote: > > Hi Shakeel, > > > > > 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) > > > > It depends on how on-demand allocation is implemented. On hardware > > that supports faults on kernel stacks, > > Which hardware supports faults on kernel stacks and which do not? > > > we will have other metrics that > > show the total number of pages allocated for stacks. > > Don't we already have a metric for that i.e. KernelStack in meminfo > which is in kB unit? > > One more question: Is there any concern in making > CONFIG_DEBUG_STACK_USAGE not a debug feature i.e. enable in default > kernels instead of just debug kernels? > > thanks, > Shakeel >