Actions
Bug #14736
openzfs: Improve sorted scan memory accounting
Start date:
Due date:
% Done:
90%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
Update from OpenZFS:
Since we use two B-trees q_exts_by_size and q_exts_by_addr, we should count 2x sizeof (range_seg_gap_t) per node. And since average B-tree memory efficiency is about 75%, we should increase it to 3x.
Previous code under-counted up to 30% of the memory usage.
OpenZFS issue: https://github.com/openzfs/zfs/pull/13537
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #13537
Testing done: run zpool scrub several times, nothing unexpected did happen.
Actions