[WebOS] Images load slow - Cache all images - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: [WebOS] Images load slow - Cache all images (/t-webos-images-load-slow-cache-all-images) |
[WebOS] Images load slow - Cache all images - forcefullpower - 2024-12-13 Hi, Is there a way for WebOS to cache the images from the server. I am finding that it puts quite a load on the arm processor trying to request all these images each time. Either that or is there a way to cache these in memory for faster retrieval. RE: [WebOS] Images load slow - Cache all images - TheDreadPirate - 2024-12-13 Are you images stored with your media on a HDD or NAS? Or a SD card? Loading images shouldn't take much processing power unless the CPU is waiting a long for the image to be transferred from storage. Jellyfin has no mechanism to cache images in memory. If you use Nginx, our documentation has examples for setting up image caching, which you can put on a RAM disk if you have enough unused memory. RE: [WebOS] Images load slow - Cache all images - forcefullpower - 2024-12-13 They are currently stored on an eMMC card using an Orange Pi 5 Plus. I get the following speed in read and writes to the card. Would that speed it up that much using ram disk instead of the eMMC card. /dev/mmcblk0p1: Timing cached reads: 2398 MB in 2.00 seconds = 1200.31 MB/sec Timing buffered disk reads: 716 MB in 3.01 seconds = 238.21 MB/sec root@orangepi5-plus:~# dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync 1+0 records in 1+0 records out 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 4.49881 s, 239 MB/s RE: [WebOS] Images load slow - Cache all images - TheDreadPirate - 2024-12-13 High sequential speeds do not translate to real world speeds. The work load for finding and reading images is a lot of small, random accesses that eMMC does not handle well. RAM would handle small, random accesses very well. Or a proper SSD. RE: [WebOS] Images load slow - Cache all images - forcefullpower - 2024-12-13 I have an NV3 PCIe 4.0 NVMe SSD Kingston Model Number SNV3S/500G. I have just done a test on the NVMe drive I should be getting much higher reading than these. The write speeds are worse than the eMMC. I am not sure if this is an armbian OS issue. /dev/nvme0n1: Timing O_DIRECT cached reads: 1606 MB in 2.00 seconds = 803.98 MB/sec Timing O_DIRECT disk reads: 3332 MB in 3.00 seconds = 1110.38 MB/sec root@orangepi5-plus:~# hdparm -Tt /dev/nvme0n1 /dev/nvme0n1: Timing cached reads: 2480 MB in 2.00 seconds = 1241.87 MB/sec Timing buffered disk reads: 1386 MB in 3.00 seconds = 461.39 MB/sec root@orangepi5-plus:~# dd if=/dev/zero of=/srv/dev-disk-by-uuid-1d9dd550-94e7-4f03-9cba-9a33c9c87cb2/test1.img bs=64M count=1 oflag=dsync 1+0 records in 1+0 records out 67108864 bytes (67 MB, 64 MiB) copied, 0.445011 s, 151 MB/s root@orangepi5-plus:~# dd if=/dev/zero of=/srv/dev-disk-by-uuid-1d9dd550-94e7-4f03-9cba-9a33c9c87cb2/test1.img bs=1GB count=1 oflag=dsync 1+0 records in 1+0 records out 1000000000 bytes (1.0 GB, 954 MiB) copied, 5.83242 s, 171 MB/s |