Memeater

Memeater is a dummy program to consume as much memory as possible, it can be used for instance to measure the memory overhead of a qemu instance with a limited amount of memory.

More on github.