You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mostly wondering if somebody might have looked into this, have any insights, or might know about things we could try to get better performance writing to disk with the pi2/pi3configuration?
I've noticed that most things I run inpi2 or pi3 mode are slower than in pi1. Partially this is due to the poor disk performance compared with the pi1 configuration (which is not great either; the other reason is poor network performance, but that is usually blamed on the USB ethernet device).
Running dd if=/dev/zero of=~/test.tmp bs=1M count=128 conv=fsync we find:
dd 128 MB write
Docker host (no qemu)
0.2s
qemu versatilepb (pi1)
7 s
qemu raspi2b (pi2)
58 s
qemu raspi3b (pi3)
60 s
qemu virt *
5 s
Docker host: docker run --rm -it --entrypoint sh lukechilds/dockerpi:latest
versatilepb docker run --rm -it lukechilds/dockerpi:latest
raspi2b: docker run --rm -it lukechilds/dockerpi:latest pi2
raspi3b: docker run --rm -it lukechilds/dockerpi:latest pi3
* The virt machine type was from a different arm emulation I have in a fork of this project, which I haven't pushed to any docker registry yet, but it's here to show that other qemu machine types can also have better performance than pi2/pi3.
Mostly wondering if somebody might have looked into this, have any insights, or might know about things we could try to get better performance writing to disk with the
pi2
/pi3
configuration?I've noticed that most things I run in
pi2
orpi3
mode are slower than inpi1
. Partially this is due to the poor disk performance compared with thepi1
configuration (which is not great either; the other reason is poor network performance, but that is usually blamed on the USB ethernet device).Running
dd if=/dev/zero of=~/test.tmp bs=1M count=128 conv=fsync
we find:versatilepb
(pi1)raspi2b
(pi2)raspi3b
(pi3)virt
*Docker host:
docker run --rm -it --entrypoint sh lukechilds/dockerpi:latest
versatilepb
docker run --rm -it lukechilds/dockerpi:latest
raspi2b:
docker run --rm -it lukechilds/dockerpi:latest pi2
raspi3b:
docker run --rm -it lukechilds/dockerpi:latest pi3
* The
virt
machine type was from a different arm emulation I have in a fork of this project, which I haven't pushed to any docker registry yet, but it's here to show that other qemu machine types can also have better performance than pi2/pi3.I haven't found much info online about the
raspi2b
/raspi3b
machine types being this slow, as they are 8 to 12 times slower than other qemu arm emulations (all writting to an .img file in the "raw" format).The closest I've found was this unanswered question in stackexchange, but no responses: https://raspberrypi.stackexchange.com/questions/139487/improving-file-system-performance-on-emulated-raspberry-pi
The text was updated successfully, but these errors were encountered: