For what its worth. Running in a VM on a 2011 macbook pro , 2 CPUs, 2GB of RAM allocated to VM. 2.2 GHz Intel Core i7. This is not a configuration I'd recommend. Compressed deduplication, your mileage may vary, to quote Lundman "Friends don't let friends dedup".
Create Pool (disk0...3 are all 20G virtual disks hosted on a single SSD):
- Code: Select all
sudo zpool create -f -o ashift=12 -O compression=lz4 -O dedup=on -O casesensitivity=insensitive -O normalization=formD tank mirror disk1 disk2 disk3
Transfer a large app from /Applications to tank (Xcode.app):
- Code: Select all
sudo time rsync -rv Xcode.app /Volumes/tank/
... copying ...
sent 10521231341 bytes received 9286148 bytes 7117619.12 bytes/sec
total size is 10488497050 speedup is 1.00
1478.67 real 78.00 user 568.56 sys
Thats a 20 minute copy, ~10G @7 MB/sec. Final state of the pool. Was browsing the web a little in the VM. Machine felt busy.
- Code: Select all
big-vm-mac-imac:tank zfs-tests$ zfs get used tank
NAME PROPERTY VALUE SOURCE
tank used 8.02G -
Export the tank:
- Code: Select all
sudo time zpool export tank
Running process: '/usr/sbin/diskutil' 'unmount' '/Volumes/tank'
Unmount failed for /Volumes/tank
cannot unmount '/Volumes/tank': umount failed
0.44 real 0.01 user 0.02 sys
Shutdown VM ... took 15-20 seconds I guess.
EDIT: A few more configurations and performance measurements...
No deuplication, but retain silly mirror.
- Code: Select all
big-vm-mac-imac:Applications zfs-tests$ sudo zpool create -f -o ashift=12 -O compression=lz4 -O casesensitivity=insensitive -O normalization=formD tank mirror disk1 disk2 disk3
sent 10521231341 bytes received 9286148 bytes 7932593.21 bytes/sec
total size is 10488497050 speedup is 1.00
1326.44 real 79.26 user 582.01 sys
Single disk, no dedup.
- Code: Select all
sudo zpool create -f -o ashift=12 -O compression=lz4 -O casesensitivity=insensitive -O normalization=formD tank disk1
sent 10521231341 bytes received 9286148 bytes 14220820.38 bytes/sec
total size is 10488497050 speedup is 1.00
739.41 real 76.07 user 513.08 sys
Single disk, dedup, 19% slower than the no dedup configuration.
- Code: Select all
sudo zpool create -f -o ashift=12 -O compression=lz4 -O dedup=on -O casesensitivity=insensitive -O normalization=formD tank disk1
sent 10521231341 bytes received 9286148 bytes 11616676.77 bytes/sec
total size is 10488497050 speedup is 1.00
905.94 real 78.46 user 533.19 sys