Slow concurrent reads on mounted loopback images
Hi erofs team,
I'm working on a small daemon that caches and mounts disk images containing datasets based on usage (https://github.com/CEA-LIST/scratch_manager).
My understanding is that this is a good use-case for EROFS. However, in my experience concurrent reads on loopback mounted disk images are rather slow.
I tested both squashfs and erofs images so I don't think it is specific to erofs, I just can't figure out where the bottleneck is. By any chance would you have any any tips to share on that subject?
Best,
Nicolas Granger
Hi GRANGER,
Quoted 8 lines · GRANGER Nicolas
Hi erofs team,
I'm working on a small daemon that caches and mounts disk images containing datasets based on usage (https://github.com/CEA-LIST/scratch_manager <https://github.com/CEA-LIST/scratch_manager>).
My understanding is that this is a good use-case for EROFS. However, in my experience concurrent reads on loopback mounted disk images are rather slow.
I tested both squashfs and erofs images so I don't think it is specific to erofs, I just can't figure out where the bottleneck is. By any chance would you have any any tips to share on that subject?
Thanks for the information. I don't know more about "scratch_manager", but does "scratch_manager" really use loopback devices? if yes, which kernel version are you using, and could you try with loop direct-io mode?
Later the EROFS project will land native solutions for dataset and AI models and we will evaluate this use cases formally.
Thanks,
Gao Xiang
Quoted 6 lines
Best,
Nicolas Granger