HomeFreeBSD

Improve sorted scan memory accounting

Description

Improve sorted scan memory accounting

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.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #13537

Details

Provenance
mavAuthored on Jun 10 2022, 5:01 PM
Tony Hutter <hutter2@llnl.gov>Committed on Jun 15 2022, 6:23 PM
Parents
rGcc565f557b46: Corrected edge case in uncompressed ARC->L2ARC handling
Branches
Unknown
Tags
Unknown

Event Timeline