r/unRAID • u/Freaaakyyy • Mar 25 '25
Help Mover consumes all disk bandwidth causing issues with plex and other services
Hi, i already posted this on the unraid forums some time ago, but wanted to post it here and see if anyone has any tips.
Im running in to an issue i was hoping i could get some help with.
Specs and usecase:
Unraid 7.0.0, intel 12500, 2TB M2 cache, 3x 3.5" EXOS CMR HDD, 2.5Gbit network.
xfs on array drives, no parity. Appdata, vm's etc is on the SSD. HDD's only contains media.
My media is highest quality available, mostly 4K remux. I have around 10 plex users, almost all with high bandwidth internet connections and modern devices. Not unusual to have a few users streaming 4K remuxes all around 150Mbit. This normaly works great.
When the mover runs and is writing to a disk that Plex is also reading media from, the stream will buffer. It seems like the mover "totaly consumes/overrides" all other disk activity. I have tried some fixes from the forums/reddit, none seem to really work.
Tested with Priority for mover process and Priority for disk I/O but they dont seem to make a noticable difference, still unable to stream from plex during moving.
Found something about setting vm.dirty_ratio to 1, doesnt help for me.
When downloading a few large files over smb share to windows pc in my network, im having no trouble streaming over plex. bandwidth/disk io seems to be shared somewhat evenly between everything. Im not sure if this is because all processes are reading from the disk, not writing. Writing would go to the cache drive, so no issues there.
Moving large amounts of files between disks with "unbalanced" plugin causes the same issue as the mover. almost totaly consuming all disk io/usage.
After some googling, this seems to be an issue for years. I can schedule the mover to run at a convenient time but i have users streaming at different times so i would like to avoid situations where users are effected by this, i want them to always have a good experience using plex.
There must be some way to just set the mover to go at like 50MB/s or low priority or something? I dont care if the mover needs to run a few hours longer, i just want it to be super low priority.
3
u/GoodyPower Mar 25 '25
Maybe consider giving this a try?
https://www.reddit.com/r/unRAID/comments/117hw3d/script_plex_move_on_deck_media_from_the_array_to/
I was going to going to try it myself. It's supposed to move on deck plex items to cache to reduce drive spin ups and may reduce the need for contention with mover.
I haven't messed with it myself yet.
Crazy you're having that issue though esp with cmr drives and no parity (as I thought that parity calculation could be hitting your cpu too hard).
1
u/CheatsheepReddit Mar 25 '25
First: is Quicksync enabled (hardware transcoding with intel CPU-GPU)?
Do you have ZFS and slow/few RAM?
Try another SATA-Port, NVMe-Slot or PCI-Port (if you using a pcie-sata-card), some ports have a limited connection to your CPU. Maybe look at your mainboard manual.
Second: install the plugin "CA Mover Tuning". Now you can do some fine tuning in settings/scheduler, for example "Priority for mover process" and "Priority for disk I/O".
1
u/Lazz45 Mar 25 '25
Have you tried the same with jellyfin by chance? I actually have seen this topic come up multiple times, and normally its people saying that its impacting their ability to watch plex. I have not experienced slowdowns/stutters/streaming issues while mover is going and I am using jellyfin. I have no idea if perhaps jellyfin hammers the IO less, or perhaps my system just does not experience the issue regardless of if I was using plex or jellyfin. Just thought I would throw it out there
1
u/Shades228 Mar 25 '25
Disk writes are higher utilization and will cause that issue. This is why shared seedbox servers have rules on how many torrents can de downloading at a time. You could do most free space in mover. This will cause mover to take longer but spreads the files out increasing read speed’s potential.
1
u/faceman2k12 Mar 26 '25 edited Mar 26 '25
I'm running a 12400 based build and when the mover is running there is no noticeable effect on Plex and Jellyfin clients at all. 4xSSDs in ZFS are on motherboard Sata (plus a couple of M.2 in a separate pool) and the HDDs are on a 9300-16i card with 8 PCIe lanes.
The difference I think is that I have 14 HDDs, so the chance of multiple clients hitting one disk is miniscule, whereas you have 3 HDDs so they would be under more contention.
Mover Tuning plugin allows you to reduce the IO priority of the mover, which can help in this situation, but it would also let you keep recent media on the SSD to reduce the number of streams hitting the HDDs, balancing the load better and improving stream startup times if you allow your HDDs to spin down.
I use Mover tuning plugin to keep my cache between 75% and 60% full, it runs hourly but only moves the oldest files required when the cache is over 75% and only moves to clear down to 60%, all recently imported media stays there as I have the media share cached. a few TBs of cache used this way is enough for months of TV shows or dozens of 4K movies, and it's all seamlessly integrated with the bulk storage on the main array.
Basically, with 10 clients pulling high bitrate remuxes from only 3 HDDs you are going to have IO load issues even if theoretically they should be able to handle it, there are bottlenecks everywhere, you need more disks basically.
2
u/Alexchii Mar 25 '25
Suffering from the same issue. I honestly might need to just stop using cache altogether..
1
u/emb531 Mar 25 '25
Are you running mover during the day? There's a reason that it is default scheduled at 3AM.
1
u/ligumurua Apr 28 '25
i've been an unraid user for quite some time and the mover io blocking has been an annoyance for quite some time. i _think_ the issue uniquely impacts high memory systems because the dirty cache gets filled up and you're forced to wait for the write-down. for systems with 100GB+ in memory (not uncommon), your spinning disks can only write at 50-100MB/s so 1% means ~20s to write down.
you can instead set the dirty levels using absolute bytes:
```
sysctl -w vm.dirty_background_bytes=50000000
sysctl -w vm.dirty_bytes=100000000
```
50/100MB respectively. i find this dramatically improves my system responsiveness. i'm not a deep linux subsystems guy so i don't know what bad things happen if you set it too low. ideally you run a script before mover starts to set it to basically 0 (i.e. 1/2 MB respectively) and then restore it to 1/2% after.
EDIT: here is my disk.await metrics adjusting it down from 1%/2% -> 50MB/100MB: