From: Stefani Seibold <stefani@seibold.net>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Joerg Engel <joern@logfs.org>
Subject: Re: Detailed Stack Information Patch [2/3]
Date: Thu, 02 Apr 2009 23:25:47 +0200 [thread overview]
Message-ID: <1238707547.3882.24.camel@matrix> (raw)
In-Reply-To: <20090401193639.GB12316@elte.hu>
Am Mittwoch, den 01.04.2009, 21:36 +0200 schrieb Ingo Molnar:
> * Stefani Seibold <stefani@seibold.net> wrote:
>
> > +config PROC_STACK_MONITOR
> > + default y
> > + depends on PROC_STACK
> > + bool "Enable /proc/stackmon detailed stack monitoring"
> > + help
> > + This enables detailed monitoring of process and thread stack
> > + utilization via the /proc/stackmon interface.
> > + Disabling these interfaces will reduce the size of the kernel by
> > + approximately 2kb.
>
> Hm, i'm not convinced about this one. Stupid question: what's wrong
> with ulimit -s?
>
To tell a long story short, you are right. After a quick investigation
of the glibc 2.9 library i figure out that this is also the default
stack size of a thread started with pthread_create().
> Also, if for some reason you dont want to (or cannot) enforce a
> system-wide stack size ulimit, or it has some limitation that makes
> it impractical for you - if we add what i suggested to the
> /proc/*/maps files, your user-space watchdog daemon could scan those
> periodically and report any excesses and zap the culprit ... right?
I think a user space daemon will be the a good way if the /proc/*/maps
or /proc/*/stack will provide the following information:
- start address of the stack
- current address of the stack pointer
- highest used address in the stack
>
> Ingo
Stefani
WARNING: multiple messages have this Message-ID (diff)
From: Stefani Seibold <stefani@seibold.net>
To: Ingo Molnar <mingo@elte.hu>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Joerg Engel <joern@logfs.org>
Subject: Re: Detailed Stack Information Patch [2/3]
Date: Thu, 02 Apr 2009 23:25:47 +0200 [thread overview]
Message-ID: <1238707547.3882.24.camel@matrix> (raw)
In-Reply-To: <20090401193639.GB12316@elte.hu>
Am Mittwoch, den 01.04.2009, 21:36 +0200 schrieb Ingo Molnar:
> * Stefani Seibold <stefani@seibold.net> wrote:
>
> > +config PROC_STACK_MONITOR
> > + default y
> > + depends on PROC_STACK
> > + bool "Enable /proc/stackmon detailed stack monitoring"
> > + help
> > + This enables detailed monitoring of process and thread stack
> > + utilization via the /proc/stackmon interface.
> > + Disabling these interfaces will reduce the size of the kernel by
> > + approximately 2kb.
>
> Hm, i'm not convinced about this one. Stupid question: what's wrong
> with ulimit -s?
>
To tell a long story short, you are right. After a quick investigation
of the glibc 2.9 library i figure out that this is also the default
stack size of a thread started with pthread_create().
> Also, if for some reason you dont want to (or cannot) enforce a
> system-wide stack size ulimit, or it has some limitation that makes
> it impractical for you - if we add what i suggested to the
> /proc/*/maps files, your user-space watchdog daemon could scan those
> periodically and report any excesses and zap the culprit ... right?
I think a user space daemon will be the a good way if the /proc/*/maps
or /proc/*/stack will provide the following information:
- start address of the stack
- current address of the stack pointer
- highest used address in the stack
>
> Ingo
Stefani
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-04-02 21:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-31 14:58 Detailed Stack Information Patch [2/3] Stefani Seibold
2009-03-31 14:58 ` Stefani Seibold
2009-04-01 19:36 ` Ingo Molnar
2009-04-01 19:36 ` Ingo Molnar
2009-04-02 21:25 ` Stefani Seibold [this message]
2009-04-02 21:25 ` Stefani Seibold
2009-04-03 7:32 ` Mikael Pettersson
2009-04-03 7:32 ` Mikael Pettersson
2009-04-03 8:01 ` Stefani Seibold
2009-04-03 8:01 ` Stefani Seibold
2009-04-03 8:54 ` Mikael Pettersson
2009-04-03 8:54 ` Mikael Pettersson
-- strict thread matches above, loose matches on Subject: below --
2009-01-20 10:16 Stefani Seibold
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=1238707547.3882.24.camel@matrix \
--to=stefani@seibold.net \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=joern@logfs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.