Skip to contentSkip to conversation

"used greatest stack depth: n bytes left" messages

DISCUSSION Le Rouzic 3 participants 4 messages Sep 12, 2007

Subsystems (2)
lore
Share & tools
lore

Le Rouzic

author
#0 lore raw

Hi,

Since 2.6.23-RC5 we can get the following kind of messages in /var/log/messages:

Sep 11 12:22:40 frec kernel: loadkeys used greatest stack depth: 4568 
bytes left
Sep 11 12:22:40 frec kernel: rc.sysinit used greatest stack depth: 4448 
bytes left
Sep 11 12:22:40 frec kernel: readahead used greatest stack depth: 4264 
bytes left
Sep 11 13:38:36 frec kernel: mount.nfs4 used greatest stack depth: 4088 
bytes left
Sep 11 17:12:08 frec kernel: mount.nfs4 used greatest stack depth: 3512 

bytes left

Are there only WARNINGs?
Does that mean we need to act on some kernel parameter ? Which one? Can we conclude anything is not normal?
How nfsv4 can be impacted in its behavior?

Cheers

Signature · 17 lines
-----------------------------------------------------------------
Company : Bull, Architect of an Open World TM (www.bull.com)
Name    : Aime Le Rouzic 
Mail    : Bull - BP 208 - 38432 Echirolles Cedex - France
E-Mail  : [email protected]
Phone   : 33 (4) 76.29.75.51
Fax     : 33 (4) 76.29.75.18
----------------------------------------------------------------- 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#1 lore raw
Quoted 17 lines · On 9/12/07, Le Rouzic <[email protected]> wrote:

Hi,

Since 2.6.23-RC5 we can get the following kind of messages in /var/log/messages:

Sep 11 12:22:40 frec kernel: loadkeys used greatest stack depth: 4568
bytes left
Sep 11 12:22:40 frec kernel: rc.sysinit used greatest stack depth: 4448
bytes left
Sep 11 12:22:40 frec kernel: readahead used greatest stack depth: 4264
bytes left
Sep 11 13:38:36 frec kernel: mount.nfs4 used greatest stack depth: 4088
bytes left
Sep 11 17:12:08 frec kernel: mount.nfs4 used greatest stack depth: 3512
Quoted 8 lines

bytes left

Are there only WARNINGs?
Does that mean we need to act on some kernel parameter ? Which one? Can we conclude anything is not normal?
How nfsv4 can be impacted in its behavior?

Cheers

You must have changed your kernel configuration to include stack debugging? This message comes from kerne/exit.c and is #ifdef'd with CONFIG_DEBUG_STACK_USAGE. So it seems to be more of a debug warning.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

author
#2 lore raw

Kevin Coffman a =E9crit :

Quoted 31 lines · On 9/12/07, Le Rouzic <[email protected]> wrote:

=

Quoted 17 lines

Hi,

Since 2.6.23-RC5 we can get the following kind of messages in /var/log/messages:

Sep 11 12:22:40 frec kernel: loadkeys used greatest stack depth: 4568
bytes left
Sep 11 12:22:40 frec kernel: rc.sysinit used greatest stack depth: 4448
bytes left
Sep 11 12:22:40 frec kernel: readahead used greatest stack depth: 4264
bytes left
Sep 11 13:38:36 frec kernel: mount.nfs4 used greatest stack depth: 4088
bytes left
Sep 11 17:12:08 frec kernel: mount.nfs4 used greatest stack depth: 3512

bytes left

Quoted 9 lines

Are there only WARNINGs?
Does that mean we need to act on some kernel parameter ? Which one? Can we conclude anything is not normal?
How nfsv4 can be impacted in its behavior?

Cheers
=

Quoted 7 lines

You must have changed your kernel configuration to include stack debugging? This message comes from kerne/exit.c and is #ifdef'd with CONFIG_DEBUG_STACK_USAGE. So it seems to be more of a debug warning.

=

Hi,
CONFIG_DEBUG_STACK_USAGE was already set in my previous kernel configurat=
ion
but those messages are new but like you wrote more for debug warning. Nevertheless the question was more to know if they mean some degradation happening. So far, it looks not.

Cheers

=

-- =

-----------------------------------------------------------------
Company : Bull, Architect of an Open World TM (www.bull.com)
Name : Aime Le Rouzic =

Mail : Bull - BP 208 - 38432 Echirolles Cedex - France
E-Mail : [email protected]
Phone : 33 (4) 76.29.75.51
Fax : 33 (4) 76.29.75.18
----------------------------------------------------------------- =

#3 lore raw
Quoted 4 lines · On Wed, Sep 12, 2007 at 02:54:08PM +0200, Le Rouzic wrote:

CONFIG_DEBUG_STACK_USAGE was already set in my previous kernel configuration but those messages are new but like you wrote more for debug warning. Nevertheless the question was more to know if they mean some degradation happening. So far, it looks not.

Right, it doesn't necessarily mean anything, it's just telling you the number of bytes that weren't used on the stack. If you've got thousands of bytes left:

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Sep 11 12:22:40 frec kernel: loadkeys used greatest stack depth: 4568
bytes left
Sep 11 12:22:40 frec kernel: rc.sysinit used greatest stack depth: 4448
bytes left
Sep 11 12:22:40 frec kernel: readahead used greatest stack depth: 4264
bytes left
Sep 11 13:38:36 frec kernel: mount.nfs4 used greatest stack depth: 4088
bytes left
Sep 11 17:12:08 frec kernel: mount.nfs4 used greatest stack depth: 3512

bytes left

then nothing's coming anywhere near overflowing its stack, so that's good. (But do you know what stack size your kernel is using? I guess it's >4k, so probably 8k, suggesting some of these processes are using over 4k, which seems like a lot.)

--b.