Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

_M_ARENA_OPTS and _M_CACHE_OPTS

SOLVED
Go to Solution
Collector

_M_ARENA_OPTS and _M_CACHE_OPTS

[ Edited ]

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

1 ACCEPTED SOLUTIONS
Acclaimed Contributor Acclaimed Contributor

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"

3 REPLIES
Acclaimed Contributor Acclaimed Contributor

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"

Collector

Re: _M_ARENA_OPTS and _M_CACHE_OPTS

[ Edited ]

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.

Acclaimed Contributor Acclaimed Contributor

Re: _M_ARENA_OPTS and _M_CACHE_OPTS

[ Edited ]

>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