Operating System - HP-UX
1745972 Members
4574 Online
108724 Solutions
New Discussion

_M_ARENA_OPTS and _M_CACHE_OPTS

 
SOLVED
Go to solution
khgoh
Collector

_M_ARENA_OPTS and _M_CACHE_OPTS

Hi All,

 

I have cheked online and I see many posts on how to set these values. I can't seem to find how to check/get the value though. Does anybody know or have any links which are related to printing the values? Thanks. 

 

 

P.S. This thread has been moved from HP-UX > System Administration to HP-UX > languages. - Hp Forum Moderator

3 REPLIES 3
Dennis Handly
Acclaimed Contributor
Solution

Re: _M_ARENA_OPTS and _M_CACHE_OPTS

>I can't seem to find how to check/get the value though.

 

These are env vars.  Just use env(1) or:

echo "$_M_ARENA_OPTS and $_M_CACHE_OPTS"

khgoh
Collector

Re: _M_ARENA_OPTS and _M_CACHE_OPTS

Thanks, Dennis.

 

I thought the value was set by default like a kernel parameter (hence my post in the System Admin section). I remember reading somewhere that the default value for _M_ARENA_OPTS is 1:8.

Dennis Handly
Acclaimed Contributor

Re: _M_ARENA_OPTS and _M_CACHE_OPTS

>I thought the value was set by default like a kernel parameter

 

No, these are libc variables.

 

>the default value for _M_ARENA_OPTS is 1:8.

 

The defaults are listed under malloc(3):

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02261136/c02261136.pdf