11971 Reduce loaded range tree memory usage

Review Request #2457 — Created Nov. 18, 2019 and submitted

jjelinek
illumos-gate
11971
general

This is a port from OpenZFS of the range tree performance work that Paul Dagnelie of Delphix presented at the recent OpenZFS developers conference.



  • 0
  • 0
  • 1
  • 1
  • 2
Description From Last Updated
kkantor
  1. I think this looks really clean. Let me know what you think about the mdb question.

  2. It looks like the changes to this struct will break a number of things in mdb. Do you think we should make those changes under this commit, or a follow-on commit?

    1. Good catch. There is no mdb work coming from ZoL but the range tree work has been backported to the Delphix illumos src and it does include mdb fixes there. I'll pull those into our illumos fix and update the code review.

  3. 
      
jjelinek
jjelinek
jjelinek
kkantor
  1. Looks good to me. I don't think we have to fix the little nits if you don't want to.

  2. little thing: the int i can be in the loop header now.

    1. No, I don't think so because 'i' is used after the loop.

  3. There seems to be inconsistent use of %p vs %#lx in this file for printing addresses.

    Also, I suppose the use of %#lx across this file could be replaced with %#" PRIx64 ". It appears that %#lx is much more common in the mdb source than the more portable alternative, however.

    1. I think I'll leave this as-is since it's quite common throughout this mdb module.

  4. 
      
citrus
  1. Ship It!
  2. 
      
jjelinek
Review request changed

Status: Closed (submitted)

Loading...