_M_ARENA_OPTS and _M_CACHE_OPTS (239 Views)
Reply
Collector
khgoh
Posts: 2
Registered: ‎08-04-2013
Message 1 of 4 (239 Views)
Accepted Solution

_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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,971
Registered: ‎03-06-2006
Message 2 of 4 (225 Views)

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"

Please use plain text.
Collector
khgoh
Posts: 2
Registered: ‎08-04-2013
Message 3 of 4 (208 Views)

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.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,971
Registered: ‎03-06-2006
Message 4 of 4 (202 Views)

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

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation