On 5/11/23 14:15, Pankaj Raghav wrote:
XArray was introduced to hold large array of pointers with a simple API.
XArray API also provides array semantics which simplifies the way we store
and access the backing pages, and the code becomes significantly easier
to understand.
No performance difference was noticed between the two implementation
using fio with direct=1 [1].
[1] Performance in KIOPS:
| radix-tree | XArray | Diff
| | |
write | 315 | 313 | -0.6%
randwrite | 286 | 290 | +1.3%
read | 330 | 335 | +1.5%
randread | 309 | 312 | +0.9%
Signed-off-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
---
@willy: I noticed later that you sent a similar patch in 2019[1]. Let me
know if you need your signoff in the patch as well.
[1] https://lore.kernel.org/linux-block/20190318194821.3470-9-willy@xxxxxxxxxxxxx/
drivers/block/brd.c | 93 ++++++++++++---------------------------------
1 file changed, 24 insertions(+), 69 deletions(-)
Reviewed-by: Hannes Reinecke <hare@xxxxxxx>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman