I
Immichβ€’2y ago
ae

Slow iOS backup

Hello, I'm experiencing backup on iOS at a rate of roughly 1 image every 2 to 3 seconds. I believe I saw somewhere that the capability is up to 10 images per second, roughly, so I'm curious as to what's going wrong for me. What information would be helpful in troubleshooting?
34 Replies
Alex Tran
Alex Tranβ€’2y ago
Are you using WIFI or DNS?
ae
aeOPβ€’2y ago
I'm using the docker host's IP, if that's the question no DNS
Alex Tran
Alex Tranβ€’2y ago
so you are using local IP and accessing the instance over WIFI, correct?
ae
aeOPβ€’2y ago
that's correct
Alex Tran
Alex Tranβ€’2y ago
How far is it from your AP and are you on 2.4GHz or 5Ghz band WIFI?
ae
aeOPβ€’2y ago
I've had this rate anywhere from 1 foot to across my house, and I'm on 5GHz (802.11ac, 40MHz, -45 dBm) currently I have an AP in nearly every room, and this issue occurs everywhere
Alex Tran
Alex Tranβ€’2y ago
that is pretty strange that it is that slow hmm is there any throttling on your server by chance?
ae
aeOPβ€’2y ago
it seems fast to upload, but it sticks at 100% for like a second or two before continuing no throttling that I'm aware of the progress bar goes from 0 to 100% nearly immediately, but then it stays at 100% for a couple of seconds before moving on
Alex Tran
Alex Tranβ€’2y ago
Are your photos all Apple ProRaw?
ae
aeOPβ€’2y ago
I do have ProRAW turned on
Alex Tran
Alex Tranβ€’2y ago
That is probably why, the files might be bigger (20MB each) so it take a while for the server to write onto disk I assume
ae
aeOPβ€’2y ago
sorry, ProRAW camera option is enabled, but RAW is not turned on in the camera
Alex Tran
Alex Tranβ€’2y ago
Hmm πŸ€” Do you have a different device that you can try to upload to your server?
ae
aeOPβ€’2y ago
hard to explain, there's an option in the camera settings to show the options within the camera app. that option is turned on. however, in the camera app, the option to actually use RAW is turned off. I don't at the moment I'll share a video with you of what the upload progress looks like
Alex Tran
Alex Tranβ€’2y ago
I understand this, I use iPhone as well
ae
aeOPβ€’2y ago
ae
aeOPβ€’2y ago
I'll check to see what the size of IMG_2702 is
Alex Tran
Alex Tranβ€’2y ago
How is your server IO wait stats? looks like it upload very fast but the server has some problem writing it?
ae
aeOPβ€’2y ago
how do I check that? lol it's a docker container on a synology NAS
Alex Tran
Alex Tranβ€’2y ago
interesting, then I am not sure how to check it πŸ˜„ dost synology have some disk IO metric?
ae
aeOPβ€’2y ago
ls -al IMG_2702.HEIC -rwxr-xr-x+ 1 root root 3866681 Jul 19 11:06 IMG_2702.HEIC this is like a 3.8MB file
Alex Tran
Alex Tranβ€’2y ago
yeah this shouldn't be an issue I don't think the app has any issue as the upload is very quick, it was waiting for the server to response that the file is on the server and the info is created in the database before moving on to accept the next upload so IO looks like a bottleneck here unsure how to measure this on synology You might want to search around?
ae
aeOPβ€’2y ago
yep, I'll try to hunt around for something iostat Linux 4.4.180+ (Alexandria) 07/19/23 _x8664 (2 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 6.92 0.08 3.59 3.89 0.00 85.51 Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd sata1 35.76 41.73 836.11 0.00 130613753 2617225114 0 sata2 37.78 115.79 844.67 0.00 362455309 2644017550 0 md0 0.71 2.36 7.62 0.00 7394160 23859796 0 loop0 0.03 0.07 2.79 0.00 230811 8742748 0 zram0 0.30 0.42 0.77 0.00 1323204 2407852 0 zram1 0.30 0.42 0.77 0.00 1326552 2407856 0 md1 0.00 0.00 0.00 0.00 1060 8 0 synoboot 0.00 0.00 0.00 0.00 68 6 0 usb1 0.00 0.01 0.00 0.00 34808 35 0 md2 41.57 155.15 835.86 0.00 485660128 2616439968 0 dm-0 0.00 0.00 0.00 0.00 416 0 0 dm-1 41.53 155.15 835.86 0.00 485649308 2616439968 0
Alex Tran
Alex Tranβ€’2y ago
iowait is very slow so technically it shouldn't have any issue.
ae
aeOPβ€’2y ago
this is for the whole host
Alex Tran
Alex Tranβ€’2y ago
what is your raid config? @bo0tzz do you have any idea where to hunt down disk performance like this?
ae
aeOPβ€’2y ago
RAID is SHR I would consider not using the synology as the disk store for this, but that's sort of the point 🫠 docker stats shows no blocking IO out of curiosity, how do you run immich? not within a docker container I presume?
bo0tzz
bo0tzzβ€’2y ago
Is this while idle or while uploading files?
ae
aeOPβ€’2y ago
this is while uploading files: Linux 4.4.180+ (Alexandria) 07/19/23 _x8664 (2 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 6.92 0.08 3.59 3.90 0.00 85.50 Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd sata1 35.82 42.03 838.61 0.00 131653481 2626561770 0 sata2 37.84 116.43 847.17 0.00 364663417 2653374770 0 md0 0.71 2.36 7.62 0.00 7405616 23878676 0 loop0 0.03 0.07 2.79 0.00 230811 8742748 0 zram0 0.30 0.42 0.77 0.00 1325376 2413084 0 zram1 0.30 0.42 0.77 0.00 1328648 2413084 0 md1 0.00 0.00 0.00 0.00 1060 8 0 synoboot 0.00 0.00 0.00 0.00 68 6 0 usb1 0.00 0.01 0.00 0.00 35640 35 0 md2 41.66 156.10 838.37 0.00 488896508 2625788556 0 dm-0 0.00 0.00 0.00 0.00 416 0 0 dm-1 41.61 156.09 838.37 0.00 488885688 2625788556 0 as mentioned, this is running within a docker container, so maybe there is some contention there, idk
bo0tzz
bo0tzzβ€’2y ago
Hmmm Docker shouldn't have any effect on performance
Sweepy
Sweepyβ€’2y ago
run fio in the container maybe?
ae
aeOPβ€’2y ago
what exactly do you mean @Sweepy , that's a new one for me lol
Sweepy
Sweepyβ€’2y ago
fio is a disk benchmark it’ll show you sequential, random, iops etc see if something is unusual
Squirrel-IO
Squirrel-IOβ€’2y ago
As it is a Synology you could try and run this on the disks: https://mariushosting.com/synology-how-to-benchmark-your-disks/
Marius Hosting
Synology: How to Benchmark Your Disks
Trustworthy expert guide to your Synology NAS.

Did you find this page helpful?