Re: [PATCH v2] iommu/iova: Optimize alloc_iova with rbtree_augmented

From: Peng Zhang
Date: Tue Sep 20 2022 - 23:56:16 EST


This patch seems to solve the performance issues i have.  Currently my nic's rx performance is unstable in large-capacity scenarios. I applied this patch to 5.19 rc4 and tested 8 times rx performance in these scenes. Here are test results, "before" row is the result of 5.19 rc4. "after" row means 5.19 rc4 with this patch, the unit is Mbits/s

    1    2    3    4    5    6    7    8
before    55430    76701    84194    77560    88292    90106    87770 77273
after    92770    92767    92792    92764    92742    92696    92781 92756

Obviously, after using this patch, the performance is stable.

Thank you for your test. Can you add a "Tested-by" token?
I plan to update the commit message in the next version.