Comment 3 for bug 27441

Revision history for this message
Ole Laursen (olau) wrote : Re: Thrashing hell

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.