1833046 Members
2609 Online
110049 Solutions
New Discussion

sbrk value

 
SOLVED
Go to solution

sbrk value

Dear All,

I want to know what is the meaning of term "sbrk" value.

I am not able to use my CAD softwares as I am getting error like:

current sbrk value = 0x15A4E000
Maximum sbrk value = 0x7A000000

b) How to increase the swap space in unix.

Thanks in advance.

Regards,
Yajuvendra Singh
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: sbrk value

Shalom

kmtune | grep 0x15A4E000

That might help you find out what kernel parameter to adjust.

Always state your system type and OS version when asking for help, so it can b e more detailed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: sbrk value

Dear Steven,

Thanks for your instant reply. I am having c8000 machine loaded with HP-UX 11.11i.

Regards,
Yajuvendra Singh
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: sbrk value

sbrk() is the system call that underlies the higher-level process dynamic memory allocation functions such as malloc(), calloc(), and realloc(). You need to increase maxdsiz or if this is a 64-bit process then you need to increase maxdsiz_64bit. In 32-bit land, both the stack and the heap share the same 1GB quadrant, so often the problem is that maxssiz has been increased too much and that has the unintended effect of limiting dynamic memory allocation. Set maxssiz and no more than 64MB (and that is very generous; 32MB is typically more appropriate). 64MB is even a generous value for massiz_64bit because well-written software does not require huge stacks.
If it ain't broke, I can fix that.

Re: sbrk value

Thank you all.