I noticed that docker containers were slow on writing to mapped volumes, the dd inside the docker was 20x faster. First i thought it was something wrong with docker but then i did a dd test on the server
root@Tower:/mnt# dd if=/dev/zero of=/mnt/disk4/DST/test.dat bs=1024 count=100000
100000+0 records in
100000+0 records out
102400000 bytes (102 MB, 98 MiB) copied, 0.182794 s, 560 MB/s
root@Tower:/mnt# dd if=/dev/zero of=/mnt/cache/DST/test.dat bs=1024 count=100000
100000+0 records in
100000+0 records out
102400000 bytes (102 MB, 98 MiB) copied, 0.442347 s, 231 MB/s
root@Tower:/mnt# dd if=/dev/zero of=/mnt/user/DST/test.dat bs=1024 count=100000
100000+0 records in
100000+0 records out
102400000 bytes (102 MB, 98 MiB) copied, 7.74579 s, 13.2 MB/s
root@Tower:/mnt# dd if=/mnt/disk4/DST/test.dat of=/dev/null bs=1024
100000+0 records in
100000+0 records out
102400000 bytes (102 MB, 98 MiB) copied, 0.0804936 s, 1.3 GB/s
root@Tower:/mnt# dd if=/mnt/cache/DST/test.dat of=/dev/null bs=1024
100000+0 records in
100000+0 records out
102400000 bytes (102 MB, 98 MiB) copied, 0.0693544 s, 1.5 GB/s
root@Tower:/mnt# dd if=/mnt/user/DST/test.dat of=/dev/null bs=1024
100000+0 records in
100000+0 records out
102400000 bytes (102 MB, 98 MiB) copied, 2.76295 s, 37.1 MB/s
I have an old KINGSTONE savage SSD as cache and form these test it looks that it has slower write speed than a hdd, i can live with that, but the /mnt/user speed is extremely slow. I saw that there are other topics that complain that they have slow speeds in /mnt/user but it was at most 50% slower not like this.
Can anyone help with this?