[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: malloc and swap space



shaleh writes
> Michel, malloc() allocates memory that is given it by the kernel.  It does not
> care where it comes from.  The kernel actually does the swap allocation, not
> malloc.
> 

OK, thanks, so let me reword it: what would cause the kernel 
(2.0.34) to refuse to allocate swap space and trigger a memory 
exhausted error for some programs even when there is swap space 
available and that the request is much smaller than available swap 
space. (for some other programs, it works fine. In both cases the 
request is made by malloc).

Michel

---------------------------------------------
Michel Juillard
CEPREMAP
142, rue du Chevaleret
75013 Paris

tel (33 1) 40.77.84.24
fax (33 1) 44.24.38.57
maison (33 1) 42.52.92.66
---------------------------------------------


Reply to: