Just fill /dev/shm via dd or similar.
dd if=/dev/zero of=/dev/shm/fill bs=1k count=1024k
(option #2 is to limit the amount of ram available to the kernel via grub.conf, see my comment below)