I cannot use the script from ZFS dtrace scripts to print the correct value of zfs_dirty_data_max, and the output is as follows:
vfs.zfs.dirty_data_max is
One could reproduce by executing
I also checked dtrace(1) output of zfs_txg_timeout,
It does not match vfs.zfs.txg.timeout either,
Maybe my usage of dtrace(1) is wrong. Any suggestions?
My FreeBSD version is as below:
Same error was founded in 14.0, but it's OK in 13.2. Other than dtrace.ko, opensolaris.ko, I see some additional modules loaded automatically in 14.0+ version, e.g.
Code:
CPU ID FUNCTION:NAME
2 85224 none:txg-syncing 41MB of 0MB used
0 85224 none:txg-syncing 25MB of 0MB used
1 85224 none:txg-syncing 18MB of 0MB used
Code:
[fjc@freebsd ~]$ sysctl vfs.zfs.dirty_data_max
vfs.zfs.dirty_data_max: 3426727526
Code:
pkg install dtrace-toolkit
dtrace -s /usr/local/share/dtrace-toolkit/FS/zfstxgsyncbytes.d zroot
Code:
[fjc@freebsd ~]$ sudo dtrace -n 'dtrace:::BEGIN {printf("%d\n", `zfs_txg_timeout);}'
dtrace: description 'dtrace:::BEGIN ' matched 1 probe
CPU ID FUNCTION:NAME
0 1 :BEGIN 2184337368
Code:
[fjc@freebsd ~]$ sysctl vfs.zfs.txg.timeout
vfs.zfs.txg.timeout: 5
My FreeBSD version is as below:
Code:
[fjc@freebsd ~]$ freebsd-version -kru
14.0-RELEASE-p6
14.0-RELEASE-p6
14.0-RELEASE-p8
Code:
dtraceall.ko
systrace.ko