[Bug 27441] Re: Thrashing hell

Ole Laursen olau at hardworking.dk
Tue Dec 5 15:29:51 UTC 2006


I believe so, but unfortunately I don't have access to a Ubuntu
installation with swap for the time being. But I've made little test
program that allocates memory to reproduce the problem.

Compile it with (sole requirement is a C compiler):

  gcc -Wall memhog.c -o memhog

Then test with "./memhog mbs-to-allocate", e.g. "./memhog 400" to eat up
400 MBs of memory. The program sits tight on the memory for 60 seconds,
then quits.

** Attachment added: "Test program to allocate memory"
   http://librarian.launchpad.net/5248717/memhog.c

-- 
Thrashing hell
https://launchpad.net/bugs/27441




More information about the kernel-bugs mailing list