Hi Slava, Thanks for the review.
The "if (is_extmem) goto out;" early exit is dropped in v3: external memory keeps its original behavior - if the entire pool resides within a single hugepage, all ranges are combined into one range of the hugepage size and share_hugepage is set, so the MR sharing between mempools keeps working as before. The new hugepage alignment with merging of the adjacent ranges is kept for non-external memory only. Best regards, Shuaisong Yang On 2026/11/4 17:38, Slava Ovsiienko wrote: > For the external memory - we should keep existing behavior, not skip > combining within a single huge page. > I would also elaborate this approach and combine the ranges within the next > huge pages (if any), but > not combine the huge page itself (for the external memory).

