Project

General

Profile

Actions

Bug #14736

open

zfs: Improve sorted scan memory accounting

Added by Toomas Soome 25 days ago. Updated 8 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
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 <>
Signed-off-by: Alexander Motin <>
Sponsored-By: iXsystems, Inc.
Closes #13537

Testing done: run zpool scrub several times, nothing unexpected did happen.

Actions #1

Updated by Electric Monk 25 days ago

  • Gerrit CR set to 2182
Actions #2

Updated by Toomas Soome 8 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF