Prelink hates me

Matias Feliciano feliciano.matias at free.fr
Sat Apr 10 18:11:16 UTC 2004


Le sam 10/04/2004 à 18:49, Simon Perreault a écrit :
> Also, if the cache was big, almost no disk reading should happen when 
> starting programs. But the contrary happens: the disk starts trashing, 
> as if all the memory was used by some program, which seems to be the 
> case according to the totals, but does not seem to be the case when you 
> look at per-program memory usage.
> 

Compile this program free.c :
-------------------------------
void main(void) {
        while (1) malloc (4096) ;
}
-------------------------------

$ gcc free.c

Check the current memory usage with "free".
run "./a.out" until it crash :
$ ./a.out
Killed

Then use the "free" command to see if you have more free memory.

Just for fun.





More information about the devel mailing list