diff options
author | Tom Caputi <[email protected]> | 2019-12-13 14:51:39 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-13 11:51:39 -0800 |
commit | c317c8c811873c4a0fefd41bd317bf266a29f966 (patch) | |
tree | 86769c080c728579048caaa440990e846abb08dd /module/zfs/dmu_diff.c | |
parent | 13a9a6f5e872fe45684f9ba12d1e322ced577849 (diff) |
Allow empty ds_props_obj to be destroyed
Currently, 'zfs list' and 'zfs get' commands can be slow when
working with snapshots that have a ds_props_obj. This is
because the code that discovers all of the properties for these
snapshots needs to read this object for each snapshot, which
almost always ends up causing an extra random synchronous read
for each snapshot. This performance penalty exists even if the
properties on that snapshot have been unset because the object
is normally only freed when the snapshot is freed, even though
it is only created when it is needed.
This patch allows the user to regain 'zfs list' performance on
these snapshots by destroying the ds_props_obj when it no longer
has any entries left. In practice on a production machine, this
optimization seems to make 'zfs list' about 55% faster.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Paul Zuchowski <[email protected]>
Signed-off-by: Tom Caputi <[email protected]>
Closes #9704
Diffstat (limited to 'module/zfs/dmu_diff.c')
0 files changed, 0 insertions, 0 deletions