1847452 Members
3225 Online
110265 Solutions
New Discussion

Re: Kernel parameter

 
SOLVED
Go to solution
yairg
Occasional Advisor

Kernel parameter

Hi
I have program that need above 850M memory size
but after my process allocated 850M memory my process crashed

Can you tell me which kernel parameter define this size ?

10x
10 REPLIES 10
RAC_1
Honored Contributor

Re: Kernel parameter

What program crashed? What is error message?

What is ur OS?
There is no substitute to HARDWORK
yairg
Occasional Advisor

Re: Kernel parameter

system infomation :

hpux 11.11
4 CPU
10G Mem
model rp7405
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Kernel parameter

Almost certainly this is maxdsiz (or its 64-bit cousin maxdsiz_64bit if this is a 64-bit process). The other thing that could be getting you is that this is a 32-bit process and unless you take some special steps 1GB is the limit but often much less than this can actually be allocated because no available chunk is large enough.

Its possible that you are limited by maxssiz but anything needing a stack larger than about 64M is seriously miscoded.
If it ain't broke, I can fix that.
Pete Randall
Outstanding Contributor

Re: Kernel parameter

Probably one of the maxXsize parameters:
maxdsiz
maxssiz
mzxtsiz
or their 64 bit cousins:
maxdsiz_64bit
etc.


Pete

Pete
Sanjay_6
Honored Contributor

Re: Kernel parameter

yairg
Occasional Advisor

Re: Kernel parameter

Hi
My process is 32 bit and those are my current kernel params:

maxdsiz 3221225472 - 3221225472
maxdsiz_64bit 0x40000000 - 0X40000000
maxfiles 200 - 200
maxfiles_lim 2048 Y 2048
maxqueuetime - - 0
maxssiz 83570688 - 83570688
maxssiz_64bit 0x800000 - 0X800000
maxswapchunks 2048 - 2048
maxtsiz 1073741824 Y 1073741824
maxtsiz_64bit 0x40000000 Y 0X40000000
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel parameter

Typically, about 900 MB or so is as good as it gets unless you compile with -N to set EXEC_MAGIC. This allows you to cross a 1GB quadrant barrier. The real answer to your problem is to compile as a 64-bit program and then your problems completely go away.

If your down have the source, you can use chatr to enable EXEC_MAGIC.
If it ain't broke, I can fix that.
yairg
Occasional Advisor

Re: Kernel parameter

we are using aCC can you send me please the commpilation , link command line with this flag .
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel parameter

The answer is the same for ANSI C and aCC, add -N to the aCC command and the instructions are passed along to ld.
If it ain't broke, I can fix that.
yairg
Occasional Advisor

Re: Kernel parameter

Dear A.Clay Stephenson
Thanks you very very much - you saved my life
(-;