I'm running the ZM inside a docker container inside a kvm VM (on proxmox) and it's behaving like normal mostly but I noticed a strange issue, it's generating TONS of disk write while streaming to clients via /zoneminder/cgi-bin/nph-zms
The container was built from here: https://github.com/zoneminder-container ... inder-base using docker-compose
each of the zms instances is generating like 2MiB/s disk write. I'm pretty sure this is supposed to go to a memory buffer and be streamed out but for some reason it's actually writing it to a real file. The disk usage isn't actually growing so I'm guessing linux is handling the buffer correctly, however the VM's underlying storage is ZFS and every hour it registers a few GB of "changes" so my daily snapshot is like 570GB meanwhile no real data is changing.
PS: the zms clients are streaming data to 3 tablets each streaming 5 cameras that I have around the house to keep an eye on my property, so I can't really get rid of them.
here's output from iotop -P, showing about 1-2.5 M/s disk write.
Code: Select all
797268 be/4 docker-w 0.00 B/s 2.58 M/s ?unavailable? nph-zms
798772 be/4 docker-w 0.00 B/s 2.15 M/s ?unavailable? nph-zms
800219 be/4 docker-w 0.00 B/s 2.15 M/s ?unavailable? nph-zms
797269 be/4 docker-w 0.00 B/s 2.02 M/s ?unavailable? nph-zms
800218 be/4 docker-w 0.00 B/s 2.02 M/s ?unavailable? nph-zms
798771 be/4 docker-w 0.00 B/s 2.02 M/s ?unavailable? nph-zms
797267 be/4 docker-w 0.00 B/s 1271.80 K/s ?unavailable? nph-zms
798774 be/4 docker-w 0.00 B/s 1271.80 K/s ?unavailable? nph-zms
800217 be/4 docker-w 0.00 B/s 1271.80 K/s ?unavailable? nph-zms
797266 be/4 docker-w 0.00 B/s 972.35 K/s ?unavailable? nph-zms
798775 be/4 docker-w 0.00 B/s 972.35 K/s ?unavailable? nph-zms
800220 be/4 docker-w 0.00 B/s 972.35 K/s ?unavailable? nph-zms
797265 be/4 docker-w 0.00 B/s 232.52 K/s ?unavailable? nph-zms
798770 be/4 docker-w 0.00 B/s 193.77 K/s ?unavailable? nph-zms
800221 be/4 docker-w 0.00 B/s 193.77 K/s ?unavailable? nph-zms
Code: Select all
nph-zms 797268 docker-www txt REG 0,56 19432536 30299455 /zoneminder/cgi-bin/zms
nph-zms 797268 docker-www 0r FIFO 0,13 0t0 4988607 pipe
nph-zms 797268 docker-www 1w FIFO 0,13 0t0 4988608 pipe
nph-zms 797268 docker-www 2w FIFO 0,13 0t0 4988609 pipe
nph-zms 797268 docker-www 3u sock 0,8 0t0 4961073 protocol: UNIX-STREAM
nph-zms 797268 docker-www 4u REG 0,113 18667960 361 /dev/shm/zm.mmap.12
nph-zms 797268 docker-www 5u sock 0,8 0t0 4996695 protocol: TCP
nph-zms 797268 docker-www 6wW REG 0,56 0 30299779 /zoneminder/run/zms-1939318.lock
nph-zms 797268 docker-www 7u sock 0,8 0t0 4992582 protocol: UNIX
nph-zms 797268 797274 nph-zms docker-www cwd DIR 0,56 4096 30299453 /zoneminder/cgi-bin
nph-zms 797268 797274 nph-zms docker-www rtd DIR 0,56 4096 30299514 /
nph-zms 797268 797274 nph-zms docker-www txt REG 0,56 19432536 30299455 /zoneminder/cgi-bin/zms
nph-zms 797268 797274 nph-zms docker-www mem REG 0,113 361 /dev/shm/zm.mmap.12 (stat: No such file or directory)
nph-zms 797268 797274 nph-zms docker-www 0r FIFO 0,13 0t0 4988607 pipe
nph-zms 797268 797274 nph-zms docker-www 1w FIFO 0,13 0t0 4988608 pipe
nph-zms 797268 797274 nph-zms docker-www 2w FIFO 0,13 0t0 4988609 pipe
nph-zms 797268 797274 nph-zms docker-www 3u sock 0,8 0t0 4961073 protocol: UNIX-STREAM
nph-zms 797268 797274 nph-zms docker-www 4u REG 0,113 18667960 361 /dev/shm/zm.mmap.12
nph-zms 797268 797274 nph-zms docker-www 5u sock 0,8 0t0 4996695 protocol: TCP
nph-zms 797268 797274 nph-zms docker-www 6wW REG 0,56 0 30299779 /zoneminder/run/zms-1939318.lock
nph-zms 797268 797274 nph-zms docker-www 7u sock 0,8 0t0 4992582 protocol: UNIX