I run nginx for few websites and for video streaming using h264 module from code-shop.com.
When I start or restart nginx it works normally for a while after it starts generating very high load because of the HIGH IO (see screenshots from top & iotop)
I would like to point out this has nothing to do with the ffmpeg that is in TOP, because it happens no matter if ffmpeg is on or off, so while I do agree it generated a load to CPU, it does not affect the I/O that much to result in this problem.
I use i7-3770 CPU, 8 GB of RAM and SSD disk to serve websites and everything else like system and programs and 2x3TB SATA disks @ 7200k rpm in RAID 0 ONLY for the video streaming directory.
Streaming speed is about 40mB/s according to program called nmon and that is not that much so SATAs would be overloaded.
Here is a screenshot also from nmon program but about disk usage:
Why is there 100% load on HDDs at 40mB/s while I have seen it go higher without any problems and people do achieve much greater speeds with the exact setup?
Why are websites not working while nginx is generating 100% load on HDDs if websites and nginx run from SSD just like database?
Here is my nginx config:
and streaming configuration:
mp4; mp4_buffer_size 1m; mp4_max_buffer_size 10m; limit_rate_after 10m; limit_rate 1m;