1837738 Members
3752 Online
110118 Solutions
New Discussion

Re: aC++ linker question

 
Carlo Henrico_1
Regular Advisor

aC++ linker question

My developers are getting stack problems and have now included the following in the make file:

LDFLAGS= +pd 16M

to increase the stack size. Is there any way to monitor whether this has taken effect such as in Glance and if so, where? The stack problem does not happen very often, and we would like to make sure this has helped.

Thank you
Live fast, die young - enjoy a good looking corpse!
2 REPLIES 2
CHRIS_ANORUO
Honored Contributor

Re: aC++ linker question

Hi Carlo,

You can check for stack parameters through the memory window. Increase the MAXSSIZ to 90mb from the default value in kernel configuration through SAM. This will definitely reboot your system.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
James M. Butler
New Member

Re: aC++ linker question

Carlo,

+pd 16M won't in itself increase the stack size. What +pd does is to request a specified data page size. It's typically used if an application or system is having too many TLB misses.

As far as I can tell, glance won't tell you what the maximum available stack size is. You can use SAM to find out the max stack size. You can also use adb, i.e.

# adb -k /stand/vmunix /dev/kmem
maxssiz/D
maxssiz:
maxssiz: 16384
^d
#

This shows the maximum stack size in 4k pages, so this case my machine is configured for a 64Mb stack.

To increase the stack size, you need to change the kernel parameter MAXSSIZ, rebuild your kernel & reboot. The easiest way to do this is using SAM.