ram disk

created onJanuary 20, 2022

create ram disk

mount ramdisk after bootup:

mount -t tmpfs -o size=1024m ramdisk /idoru/ram

‘ramdisk’ is the device name (arbitrary)

entry for ramdisk:

ramdisk /idoru/ram tmpfs defaults,size=1G,x-gvfs-show 0 0

tmpfs vs ramfs

  • tmpfs is the successor of ramfs
  • ramfs can have no upper limit for filesystem size, thus data can eat up all your ram
  • tmpfs has a fixed size
  • tmpfs can swap pages to swap space (you might not want that to happen)