Is there anything like CompCache for FreeBSD?

  • CompCache is like mfs or tmpfs in FreeBSD. You can turn on compression on FS level or use something like geom_uzip(4) – Eir Nym Nov 19 '11 at 15:30
# mdconfig -a -t malloc -o compress -o reserve -s 512m -u 7
# newfs -U /dev/md7
# mount /dev/md7 /mnt/ramdrive
  • 1
    albeit this might answer the quuestion can you elaborate a bit on the commands you suggested and what (specially the first line) do? – vfbsilva Aug 24 '13 at 5:30
  • 3
    FreeBSD has special md driver that allow to create virtual drives with various backends, like file on the disk or part of RAM. mdconfig just create such virtual drive. -t malloc define that drive is placed in the RAM, -o compress define that this drive will be un/compressed on the fly, -o reserve means that all amount of RAM will be reserved at creation. After that command new device will be created in the /dev - /dev/md7. Then you can use it like any other device - until system reboot or manual destruction of virtual drive. – Kondybas Aug 24 '13 at 22:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.