ZFS force my system into the knees

New to OpenZFS on OS X (Or ZFS in general)? Ask your questions here!

ZFS force my system into the knees

Postby mbauhardt » Fri Oct 26, 2018 6:58 am


This is my mac
Code: Select all
High Sierra 10.13.6
MacBook Pro (Retina, 15-inch, Late 2013)
2,3 GHz Intel Core i7
16 GB 1600 MHz DDR3

Code: Select all
❯ brew cask info openzfs
openzfs: 1.8.1,25
/usr/local/Caskroom/openzfs/1.7.2,ea (18 files, 42.9MB)
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/openzfs.rb

Code: Select all
This my zfs pool
❯ zpool status
  pool: tank
 state: ONLINE
  scan: none requested

        NAME                                          STATE     READ WRITE CKSUM
        tank                                      ONLINE       0     0     0
          media-CBE77E32-83C1-4273-B96C-47703F428EEE  ONLINE       0     0     0

errors: No known data errors

Code: Select all
My datasets
❯ zfs list
tank            37.4G   277G  1.95M  /Volumes/tank
tank/documents  4.43G   277G  4.43G  /Users/mb/z/documents
tank/opt        6.86G   277G  6.86G  /opt
tank/src        26.0G   277G  26.0G  /Users/mb/z/src

Code: Select all
❯ cat /etc/zfs/zsysctl.conf

I'm running my osx with APFS case sensitive. I have 2 partitions. One is the system, the other is my partition for data. I installed zfs and created my pool on the data partition.

Code: Select all
sudo zpool create -f -o ashift=13 -O casesensitivity=sensitive -O normalization=formD tank disk0s3

My datasets are encrypted and compressed.
atime is off.
spotlight does not search in these datasets.

I know it doesn't make sense to run ZFS on one disk. But I like to use snapshots, disk encryption, compression....
So far so good. But, when I start for example a compilation process on the dataset `src` then my system goes down and is terrible slow. The compilation for example needs more than 20min on my zfs but on the osx partition around 5min.
The CPU and the memory looks not too bad but it feels like a memory leak.
I would like to give you numbers. But I would like to use a general command (maybe dd or so) to create huge or small files to measure the speed of my disk or the cpu or memory etc.
What is your experience, which command you recommend to dig into the problem to figure out where the culprit on my system is.
Do you have a recommendation about the memory settings in `zsysctl.conf`?

Posts: 1
Joined: Wed Oct 24, 2018 12:50 pm

Return to Absolute Beginners Section

Who is online

Users browsing this forum: No registered users and 2 guests