Skip to content

Instantly share code, notes, and snippets.

@bryder
Created October 21, 2015 03:19
Show Gist options
  • Save bryder/9af775bad4342ba97490 to your computer and use it in GitHub Desktop.
Save bryder/9af775bad4342ba97490 to your computer and use it in GitHub Desktop.
Simulating less memory using tmpfs
sudo mkdir /mnt/tmpfs
sudo mount -t tmpfs -o size=16g /dev/shm /mnt/tmpfs
dd if=/dev/zero bs=1024k count=4096 of=/mnt/tmpfs/bigfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment