I have been tasked with improving file I/O performance on a certain embedded system running a flavor of Android. It has been set up with LXC by someone who is not me.
The container storage is mounted through a loop device and eventually ends up as files in a subdirectory of the same filesystem (f2fs) mounted by the host. Each container maps to its own subdirectory.
I did some tests and found this to be around 20% slower than access to the same filesystem on the host.
I also confirmed that mounting a new partition directly (for example /dev/sda6, unused elsewhere) gives host-level performance.
So my question: would creating separate storage partitions for each container be a sane thing to do, or is there a much easier way to improve performance without fragmenting device storage?
Any advice would be appreciated!