Closed drscream closed 1 year ago
Can you provide some metrics on behavior before and after? I'd also like to know under what conditions performance degrades.
Example zfs list
output with wc -c
on one of our production systems:
$ /usr/sbin/zfs list -t filesystem,volume,snapshot -pH -o name,origin,mountpoint,imgadm:ignore | wc -c
10808528
As 10808528
is larger than maxBuffer
value 10485760
the imgadm list
command fail with a strange output of listed snapshots, datasets. After I increased the value the output is working again.
The performance of imgadm
is already really bad on that system:
$ time imgadm list
[...]
real 5m51.537s
user 0m5.972s
sys 1m55.309s
How many datasets do you have?
$ zfs list | wc -l
1200
The server receive datasets into zones via znapzend
as a backup solution.
The maxBuffer is not suitable for production environments with lot's of snapshots and delegate datasets. Especially when the structure contains lot's of sub-folders.