does malloc cause swapping out?

Monika plug-devel@lists.PLUG.phoenix.az.us
Sat Apr 13 23:55:02 2002


> Actually, after reading David Mandala's reply and performing a few
> experiments, it appears that merely calling malloc() won't even
> cause swapping to occur indirectly.  Of course, if the pages allocated
> by malloc are accessed in some way (either read from or written to),
> this will cause the kernel to really allocate them and this could
> cause paging.

Although this time paging would be done through frequent checks with kswapd,
right?

thank you guys,
you were very helpful,
Monika



> 
> Kevin
> _______________________________________________
> PLUG-devel mailing list  -  PLUG-devel@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-devel
>