Check zfs cache usage for Solaris 11.3

Hi All,

How do we calculate the zfs cache value from Solaris 11.3 ?? I normally use memstat but learnt that is not a good practice. Any other way to get the value ?

Maybe you can find zfs-stats for Solaris?

If not, maybe you can get this older BSD version to work for you?

https://github.com/mmatuska/zfs-stats/

Can you elaborate more on need or problem to examine the cache usage ?
Are you having issues and what kind of workload is that ?

memstat/mdb should show correct cache usage.
I did see on 11.3 bugged output tho, so you should probably patch it up :slight_smile:
kstat is also quite verbose and correct.

Hope that helps
Regards
Peasant.