1838277 Members
3790 Online
110125 Solutions
New Discussion

Allocation of memory

 
Yair Goldel
Advisor

Allocation of memory

Hi All
I have simple program that make allocation of memory .
With one user she allocate 1010M and with user root she allocate 1900M
I can see with "ulimit -a" that for user root data is unlimited and with my user its limit to 1G
What i need to change to allow my user to alloc more then 1G

10 REPLIES 10
Kent Ostby
Honored Contributor

Re: Allocation of memory

You need to change the kernel parameter values of maxdsiz and maxssiz to higher values.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Tom Smith_9
Frequent Advisor

Re: Allocation of memory

Have you tried "ulimit unlimited" for that user?

-Tom
Yair Goldel
Advisor

Re: Allocation of memory

my maxdsize is 3.2GB maxssize is 209M

i've compiled the application using MAGIC attributes - in some machines i get 1010M others i get 1900M.

Yair Goldel
Advisor

Re: Allocation of memory

ulimit works on some - at others i still get 1010MB
Yair Goldel
Advisor

Re: Allocation of memory

i've worked according to the attached document
Yair Goldel
Advisor

Re: Allocation of memory

ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048

how do i change the data(kbytes)????
Elena Leontieva
Esteemed Contributor

Re: Allocation of memory

The maximum data segment size for a process is specified via the 'maxdsiz'
kernel parameter. For the value of maxdsiz, use integer that are multiple
of 4096 bytes, the system pagesize.

Elena.
Yair Goldel
Advisor

Re: Allocation of memory

i currently have 3221225472
but still have on more than 1010MB
Elena Leontieva
Esteemed Contributor

Re: Allocation of memory

Are you running 64 bit application? What is your maxdsiz_64?
Yair Goldel
Advisor

Re: Allocation of memory

im running 32 Bit appliction