_M_ARENA_OPTS and _M_CACHE_OPTS (306 Views)
Reply
Collector
khgoh
Posts: 2
Registered: ‎08-04-2013
Message 1 of 4 (306 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

Acclaimed Contributor
Dennis Handly
Posts: 25,072
Registered: ‎03-06-2006
Message 2 of 4 (292 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"

Collector
khgoh
Posts: 2
Registered: ‎08-04-2013
Message 3 of 4 (275 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.

Acclaimed Contributor
Dennis Handly
Posts: 25,072
Registered: ‎03-06-2006
Message 4 of 4 (269 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

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.