zfs Ramdisk?

Moderators: jhartley, MSR734, nola

zfs Ramdisk?

Post by shuman » Fri Nov 16, 2012 1:36 pm

Does anyone remember the ramdisks we used to be able to make with Mac OS? Is there a way to bring this concept forward to zfs in which a virtual drive would exist inside of memory? Could that be a way to help guard against not having ECC memory in my mini?

Not sure if this is possible or beneficial. I just heard an OS panel discussing running things in memory and thought about zfs as a filesystem existing in memory.
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am

Re: zfs Ramdisk?

Post by shuman » Fri Nov 16, 2012 2:39 pm

So this answer is, yes you can.

Code: Select all
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://9323440`


Code: Select all
sudo zpool create -f zRamDisk /dev/disk9


Created 2 filesystems then proceeded to copy a 1.75GB file from one to the other. Performance was pretty fast at first then crawled to a snails pace. I don't really have enough memory to do much with it (maybe 16GB would make it more interesting), but it might be a good way to judge the performance of zfs outside of all the other hardware factors.
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 3 guests

cron