DVR Performance Tuning

I am running Channels DVR on an older Synology that also runs surveillance on 3 1080p IP camera feeds. I do also use the Synology for network file storage, DSNote, and some small websites. I try not to run much else though. Most other server software I have offloaded to an RPi, including my UniFi controller and the docker containers for Pluto and Stirr.

I have a script that restarts Channels-DVR every day at 4:59AM. And, since the volume is btrfs, I delete home directory snapshots and run a defrag every 6 months or so. All of this fine-tuning took some time to figure out, but would be interested if anyone else running a similar NAS has any other tricks.

  • Dave

I disable Universal Search on boot-up using this script:
synoservice --disable pkgctl-SynoFinder

I never found it to be useful, and it seems to always take a lot of resources when it is running.

I also run this script nightly to prune any entries from the Channels DB if the files were manually deleted for any reason:
curl -XPUT http://192.168.1.xxx:8089/dvr/pruner/deleted

Aside from these, I also defragment my drives and do the standard S.M.A.R.T. checks and whatnot. I'm not sure if there is much more to be done, but I'm interested to see if anyone else chimes in with good ideas. Curious - Why do you restart Channels daily?

1 Like

Thanks for the input! I also have universal search indexing disabled. Thanks for the command though.

I also use comskip play_nice from 2100 to 2359.

I started restarting the dvr when one of the older builds had some kind of performance issue where a restart was required to make it run quickly again. It may have been fixed in recent builds, but I have left the restart there just in case it crops up again. I'm never recording anything at 4:59AM, so it doesn't hurt anything.

When I had docker running on the Synology, I used to get periodic connection issues on my clients sometimes. Not sure what caused that, but it might have been something to do with the docker network being used. It is much better running docker elsewhere.