zfs: is it possible to set metaslab_debug to 1?

Andriy Gapon avg at FreeBSD.org
Sun Dec 16 12:28:54 UTC 2012


on 15/12/2012 18:43 Tom said the following:
> Hi,
> 
> Is it possible to set metaslab_debug to 1 on freebsd without recompiling:
> usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
> 
> /*
>  * Metaslab debugging: when set, keeps all space maps in core to verify
> frees.
>  */
> static int metaslab_debug = 0;
> 
> Is this even possible on FreeBSD? It often helps with ZFS perfomance
> issues on Solaris with lots of ram.

kgdb -w
set metaslab_debug=1

Were you looking for something like this?


-- 
Andriy Gapon


More information about the freebsd-fs mailing list