That got me thinking.... since /dev/shm is bascially a dynamic ram disk, why not use it for zm's temporary files as well as zm's mapped memory files?
To test this, I went to Options -> Paths and changed the last three options (PATH_SOCKS, PATH_LOGS, & PATH_SWAP) to point to /dev/shm instead of /tmp.
Here are a few notes if you are interested in trying this:
- - Don't make this change while zoneminder is running. Stop it first, make the changes, and then start zoneminder.
- make sure that /dev/shm exists on your system. If you are already using mapped memory then you should already have verified this.
- df reports that zoneminder's usage of /dev/shm is in the kilobyte range so, unless you've got debug turned up high, you likely do not need to be concerned about the ram disk using up a lot of memory.
- After making the change, I had to set the max FPS and max alarm FPS for each of my network cameras to match what I had programmed in each camera.... otherwise the system tried to record at 50+ fps and ran itself out of buffer. I guess that means things are running faster, eh?