Closed acrixl closed 8 years ago
Workers writes status information "/tmp/lshttpd/.rtreport" every second. May be this is what you are looking for.
iotop: 794 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #01) 795 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #02) 796 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #03) 797 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #04) 798 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #05) 799 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #06) 800 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #07) 801 be/4 nobody 0.00 B/s 3.87 K/s 0.00 % 0.00 % openlitespeed (lshttpd - #08) 768 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % openlitespeed (lshttpd - main) 1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % init [3]
The above 8 threads 'tick' around ~4k every second. I am/was staging this build on a xen vm (virtual machine). I noticed this problem when this vm surpassed my HOME DVR!!! in sector write request in xen top. This is clearly unacceptable and would greatly appropriate a fix/work around. Also, I am very tankful this was NOT on a SSD - I imagine this would eat through the wear leveling of a SSD rapidly.
This is repeatable - just start the stock lsws. The server is does this with zero load - eg no page requests ( I am just testing ).
Thoughts?
The real time report is configurable now and you can write to a share memory if you want.
2024 OpenLiteSpeed 1.7.19 still 4k every second.
@litespeedtech Is there not a way to disable real-time logs? I don't want to create a ramdisk. I just don't want real-time stats or logging.
Constant 4kb writes by every worker in a dev environment is just not required and annoying with enterprise 3.5 inch drives.
sudo inotifywait -m -r /tmp/lshttpd
Setting up watches. Beware: since -r was given, this may take a while!
Watches established.
/tmp/lshttpd/ OPEN .rtreport
/tmp/lshttpd/ OPEN .rtreport.3
/tmp/lshttpd/ OPEN .rtreport.4
/tmp/lshttpd/ OPEN .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.2
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.4
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.3
/tmp/lshttpd/ OPEN .rtreport
/tmp/lshttpd/ OPEN .rtreport.3
/tmp/lshttpd/ OPEN .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.3
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ OPEN .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.2
/tmp/lshttpd/ OPEN .rtreport
/tmp/lshttpd/ OPEN .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ MODIFY .rtreport
/tmp/lshttpd/ MODIFY .rtreport.2
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.2
/tmp/lshttpd/ OPEN .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ OPEN .rtreport.4
/tmp/lshttpd/ MODIFY .rtreport.3
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.3
/tmp/lshttpd/ MODIFY .rtreport.4
/tmp/lshttpd/ CLOSE_WRITE,CLOSE .rtreport.4
workes constantly write to disk at 4Kb/s speed what they write? is this need to be persist across restarts?