P
pervinder
Hi,
I have a c applicaiton which uses calloc to allocate the storage from
heap.
A page is allocated (4096bytes) and then its used in smal small chunks
on need.
It works fine till some n number of pages are alloacted and used. But
it fails
to allocate a fresh page of 4096 after some m times when the prev.
block gets exhausted and new block needs to be allocated/reserved.
result = (alloc_list *) calloc((size_t) ASIZE, 1));
The result becomes NULL... (ASIZE is 4096)
Ran purify and it gave a MAF (Memory allocation Failure)
Any hints as how to go about this issue ?
I have a hp machine with limit as :-
$::home> limit
cputime 0:0-1
filesize 4194303 kbytes
datasize 2883584 kbytes
stacksize 262144 kbytes
coredumpsize 0 kbytes
memoryuse 4194303 kbytes
descriptors 200
Regards, ~Pervinder
I have a c applicaiton which uses calloc to allocate the storage from
heap.
A page is allocated (4096bytes) and then its used in smal small chunks
on need.
It works fine till some n number of pages are alloacted and used. But
it fails
to allocate a fresh page of 4096 after some m times when the prev.
block gets exhausted and new block needs to be allocated/reserved.
result = (alloc_list *) calloc((size_t) ASIZE, 1));
The result becomes NULL... (ASIZE is 4096)
Ran purify and it gave a MAF (Memory allocation Failure)
Any hints as how to go about this issue ?
I have a hp machine with limit as :-
$::home> limit
cputime 0:0-1
filesize 4194303 kbytes
datasize 2883584 kbytes
stacksize 262144 kbytes
coredumpsize 0 kbytes
memoryuse 4194303 kbytes
descriptors 200
Regards, ~Pervinder