linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Rientjes <rientjes@google.com>
To: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Shakeel Butt <shakeel.butt@linux.dev>,
	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
Date: Fri, 19 Jul 2024 20:41:55 -0700 (PDT)	[thread overview]
Message-ID: <9f044745-aa8f-5fff-66c6-4b24521967c8@google.com> (raw)
In-Reply-To: <CA+CK2bAWRN7-UHc0C1u6UAqT82tQXgO6a4AnHEHWN-qqij1LQQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]

On Thu, 18 Jul 2024, Pasha Tatashin wrote:

> On Thu, Jul 18, 2024 at 7:19 PM Shakeel Butt <shakeel.butt@linux.dev> wrote:
> >
> > Hi Pasha,
> >
> > On Wed, Jul 17, 2024 at 12:50:00PM GMT, Pasha Tatashin wrote:
> > > On Wed, Jun 12, 2024 at 2:50 PM Shakeel Butt <shakeel.butt@linux.dev> wrote:
> > > >
> > [...]
> > > > >
> > > > > 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?
> > >
> > > We enabled it in Google ProdKernel. There is some overhead when
> > > threads are exiting, because we are looking for the first non-zero
> > > byte, but that is minimal. We haven't observed any performance impact
> > > on our fleet.
> > >
> >
> > So, you would support making CONFIG_DEBUG_STACK_USAGE enabled by
> > default, right?
> 
> Right, I see nothing wrong with having this enabled by default.
> 

The benefits of enabling CONFIG_DEBUG_STACK_USAGE by default would 
certainly outweigh any theoretical performance downside, I strongly favor 
enabling it by default and was surprised to find it hidden behind 
debugging when I enabled it in Google's production fleet.

  reply	other threads:[~2024-07-20  3:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-30 17:02 Pasha Tatashin
2024-05-30 21:56 ` Shakeel Butt
2024-05-31  0:14   ` Pasha Tatashin
2024-05-31 22:42     ` Shakeel Butt
2024-06-12 18:50       ` Shakeel Butt
2024-07-17 16:50         ` Pasha Tatashin
2024-07-18 23:19           ` Shakeel Butt
2024-07-19  2:56             ` Pasha Tatashin
2024-07-20  3:41               ` David Rientjes [this message]
2024-06-01  0:38     ` Andrew Morton
2024-06-06  0:03       ` Pasha Tatashin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f044745-aa8f-5fff-66c6-4b24521967c8@google.com \
    --to=rientjes@google.com \
    --cc=akpm@linux-foundation.org \
    --cc=cerasuolodomenico@gmail.com \
    --cc=jpoimboe@kernel.org \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lizhijian@fujitsu.com \
    --cc=nphamcs@gmail.com \
    --cc=pasha.tatashin@soleen.com \
    --cc=peterz@infradead.org \
    --cc=shakeel.butt@linux.dev \
    --cc=surenb@google.com \
    --cc=vbabka@suse.cz \
    --cc=willy@infradead.org \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox