Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp750681lqh; Fri, 31 May 2024 16:02:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu+srHYmKz3R52nvd7QMJNqn6XXyw9Ek1MPz7VFdz7CmZ12gWYjfLPKZD5aOXNF/ZEQ4gcV1YxiVPx7qtvFzMlILUbGWbKGs/6gfv3Gw== X-Google-Smtp-Source: AGHT+IGGgCMnDfkihhQUd1AUXJ4jPVBcJetMxO7iiP7rGX81YOFCVOSCWNc7U397+pJs/exwKjN9 X-Received: by 2002:a05:6a20:6f8e:b0:1b0:34ed:c931 with SMTP id adf61e73a8af0-1b26f16e85fmr4047207637.37.1717196566216; Fri, 31 May 2024 16:02:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717196566; cv=pass; d=google.com; s=arc-20160816; b=jlL6auGPxyHnCTYrk4qC8eCIrkOrySY8vR0wXQjFHZf1LF6p087dSsjVHoru9cTow7 dtIUXaa7yImZV+PtcDeFZpD5HQejUb+3vKk9NjBSo+110cMxt/wIVhqXPtSadnaLrerp 5Vtzi/zGEYS8Zf8+lOQ427AX9ORKxcfcDxlY8ZySKOBns0A/Ol25nXckNe/M2OUk+OCj mwz1fjcyUwhM4x87zROH3Tc4r50aUCWgXhz1l0l5ygeKERt/YMiqZiUDcjVjGc4PZaEW Q9oLkGfIESCL3yL2IXru2tScZJoAzwlp0McUNzrsWuppA1cwLGnFQPykJWFt13RaGOXB vg/Q== 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=42+HF/lg9ToKNNAC62AfkBIUQjk90D8+CQb9koVMHSI=; fh=K6zc+KGgIEg7Q9hb616f12OP+0F83AOSmrUxpBVOjSI=; b=ps8Ja1ndPsrlLszUF1MUOwJo6VIgpIFjSC762rA9+T/qyvvLSB+yJfutwzphLUaj7e u8NKQeFosKKsvcJUImkl3Zj4NQUXjC1jjehheA0LGQbCuUdxXpPghnnIW4XwXxjfX3yd fU2syy/tXE2yYeipvccVrsNQXI0ZQ5RYD8gkC4anMazWopUzyEEOC8dASolVLcXpaD0e S6z1en2FEknvxXuBGSictKCsiWoAI5bnXwjd0HP7wuyDy0+V20GJ4sgxQm0+YOmpU+34 ewHa8bBXzkdVEp4UuTXrlcZJxYw8IdX9h5J0idzUY4ySUTCWd9D3+28I2BpYm4l0UIuq j0GA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uXJnOGHf; 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-197568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197568-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-7025523c477si297817b3a.9.2024.05.31.16.02.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 16:02:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=uXJnOGHf; 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-197568-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197568-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E2D96B24B31 for ; Fri, 31 May 2024 22:42:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCDC7824AA; Fri, 31 May 2024 22:42:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="uXJnOGHf" Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (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 1C9C382482 for ; Fri, 31 May 2024 22:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717195364; cv=none; b=cXtUHclQfX5ckUwTKI1ddmOvqm2dUdrqjN8EWxoSjPVYmwDTe2iw7V3CzE+itt3Ea/CSqWVshaQxXRurb02mWfPTpvT32uuk8Kc4FlPkER9p97WnsiLGCX7m+gQ1PB4pHCKOh8+aANnuA5smCOuJKATkdF05I7pDun2TvsYtxYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717195364; c=relaxed/simple; bh=LTbTrJRXsqD4HbCJs7pMX0aPhVw4BfgOdoQ/+xKr3uY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ir41kwer57hbJlzPhwHoeb0PRg390/NL1YY43wQbGWTpx/4vqvY216jOnKs6nJus+QVv3fiqUUvAlX7zii+8rcAwJ39cZ/VWNK+M8Ybfy5UftuUQ3BJtZLUEswzFJdtSVfQliuZOGQMlva3kVQXlhJOP5Xu/RJBwyV07hO+KUTc= 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=uXJnOGHf; arc=none smtp.client-ip=91.218.175.180 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=1717195359; 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=42+HF/lg9ToKNNAC62AfkBIUQjk90D8+CQb9koVMHSI=; b=uXJnOGHfEcr/IzgwqNuLMQ9RuiVUlcjbw0n6WpFsotQ58wpKM2VSlFd0g9fwiv/B6KPRp1 z5sNHTaRLEEkPq5hXfCmhvv44aayNUl/0d2rAxHswuUNfT66p9ec9GjXvdYaJVhAm5+iPW ixfX+ufyX+pMi/goMtSMLuynQ9ZhPU0= 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: Fri, 31 May 2024 15:42:34 -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 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