How much RAM is devoted to ZFS on MacOS?

All your general support questions for OpenZFS on OS X.

How much RAM is devoted to ZFS on MacOS?

Postby randolph.kahle » Fri Apr 24, 2020 4:11 am

I use my MacPro 5,1 heavily with applications that use a lot of RAM.

I am curious to learn if I can determine how much RAM is devoted to ZFS, in total, from my 48GB of physical RAM.

Is there a command I can execute from the command line to make this determination?
randolph.kahle
 
Posts: 10
Joined: Fri Feb 24, 2017 8:13 am

Re: How much RAM is devoted to ZFS on MacOS?

Postby sean » Fri Apr 24, 2020 11:57 am

It's a configuration thing. You'll want to make a /etc/zfs/zsysctl.conf file. There's a /etc/zfs/zsysctl.conf.example that you can use for reference. I don't know if it's a requirement, but I reboot after I make changes to that file.
sean
 
Posts: 4
Joined: Sat May 18, 2019 7:25 am

Re: How much RAM is devoted to ZFS on MacOS?

Postby randolph.kahle » Fri Apr 24, 2020 2:37 pm

Thank you. Yes, I realize I can configure the memory.

What I am wondering is how can I check while running MacOS to see how much memory is currently allocated. I don't see anything in Activity monitor that corresponds to ZFS.
randolph.kahle
 
Posts: 10
Joined: Fri Feb 24, 2017 8:13 am

Re: How much RAM is devoted to ZFS on MacOS?

Postby tangles » Fri Apr 24, 2020 7:39 pm

The RAM used by ZFS will be represented by the kernel_task from memory… i.e. the kernel.

Reboot and note your initial value, then note how much it goes up as you use your datasets.

Not ideal I know.

There are some shell scripts that can show you from memory but I can't remember them off hand.

Someone else might know and chip in as I gotta remote setup a new router and ZFS box for a business in 2mins…

Such are the times..
tangles
 
Posts: 195
Joined: Tue Jun 17, 2014 6:54 am


Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 19 guests

cron