2010/3/22 Kövesdi György <k...@teledigit.hu>: >> Where is the output of mjpg-streamer written to? It looks like it is >> using ram disk or (slow) flash memory. Make sure it is on the hard disk. > Sorry, i forgot to mention that there is a link: > /data -> /mnt/xxx/ > which point to the HD. > >> What is the rate of data being written? If, for some reason, the disk >> (flash?) is too slow, you run out of memory due to the block layer >> buffering. > The measured maximum recorded rate is ~23 fps. My very first try was recording > one picture in every 15 second, which is very slow, and it also leaded to > crash in 3 days. Faster recording crashes sooner. > > ------------------ > > I checked some out-of-memory situations, and found strange things. You can > easily try it (i would like to hear if it works on your system or not): create > a big directory (~50k...100k files) and give a simple 'ls' command: > > $ ls /my/big/directory > > No swap is in use, my physical memory is 32M. > The 'ls' allocates very much memory, which leads to out-of-memory. AFAIK, the > kernel calls the oom-killer, which should kill the biggest process ('ls' in > this case). It happens, but the system hangs. Some seconds later the following > message appears on the console:
This could be your actual problem, but it's kinda hard to fix. You could try a 2.6 kernel, if you are still on 2.4 or trunk if you still use 8.09, maybe those parts changed in the meantime. Besides that, I would suggest to kill mjpg-streamer from time to time and restart it with a different output directory. > > bcm47xx_wdtWatchdog will fire soon!!! > > This is the very last message, the system does not respond any more. > I think this situation should be handled correctly. > > Thanx > K. Gy. > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel