28.06.2014 Views

Solaris Tunable Parameters Reference Manual - SCN Research

Solaris Tunable Parameters Reference Manual - SCN Research

Solaris Tunable Parameters Reference Manual - SCN Research

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Increasing the default stack size means that almost every<br />

kernel thread will have a larger stack, resulting in increased<br />

kernel memory consumption for no good reason. Generally,<br />

that space will be unused. The increased consumption means<br />

other resources that are competing for the same pool of<br />

memory will have the amount of space available to them<br />

reduced, possibly decreasing the system’s ability to perform<br />

work. Among the side effects is a reduction in the number of<br />

threads that the kernel can create. This solution should be<br />

treated as no more than an interim workaround until the root<br />

cause is remedied.<br />

Commitment Level<br />

Unstable<br />

lwp_default_stksize<br />

Description<br />

Data Type<br />

Default<br />

Range<br />

Specifies the default value of the stack size to be used when a<br />

kernel thread is created, and when the calling routine does not<br />

provide an explicit size to be used.<br />

Integer<br />

■<br />

■<br />

■<br />

8192 for x86 platforms<br />

16,384 for SPARC platforms<br />

20,480 for AMD64 platforms<br />

Minimum is the default values:<br />

■<br />

■<br />

■<br />

3xPAGESIZE on SPARC systems<br />

2xPAGESIZE on x86 systems<br />

5xPAGESIZE on AMD64 systems<br />

Maximum is 32 times the default value.<br />

Units<br />

Dynamic?<br />

Validation<br />

Bytes in multiples of the value returned by the getpagesize<br />

parameter. For more information, see getpagesize(3C).<br />

Yes. Affects threads created after the variable is changed.<br />

Must be greater than or equal to 8192 and less than or equal to<br />

262,144 (256 x 1024). Also must be a multiple of the system<br />

page size. If these conditions are not met, the following<br />

message is displayed:<br />

Illegal stack size, Using N<br />

The value of N is the default value of<br />

lwp_default_stksize.<br />

36 <strong>Solaris</strong> <strong>Tunable</strong> <strong>Parameters</strong> <strong>Reference</strong> <strong>Manual</strong> • June 2005

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!