openzfsonwindows / ZFSin

OpenZFS on Windows port
https://openzfsonwindows.org
1.2k stars 68 forks source link

Adding new tunables to kstat #317

Open imtiazdc opened 3 years ago

imtiazdc commented 3 years ago

@lundman Apparently, the metaslabs are unloaded from RAM if they are not used in last 8 transaction groups. If we increase the limit from 8 to 256 it seems to give better performance. We are planning to make it tunable and conduct more experiments. Any recommendations or guidelines we need to follow to make it tunable?

lundman commented 3 years ago

Good idea - edit kstat_windows.h, and zfs_kstat_windows.c. Make sure the placement in the struct is the same between the files. Stick with the KSTAT_DATA_UINT64 as that definitely works (I just rely on casting to handle any conversion). The other types should work, just not as heavily tested. That's all the changes needed. Basically 2 files, 3 places.

datacore-yash commented 3 years ago

@lundman Do you know a way to find the memory usage used exclusively by metaslabs ?