Drop file system cache for log files
commit9aeee721b7eea595cdaa12628232a5b7c183ae7f
authormyang <myang@facebook.com>
Thu, 21 Oct 2010 18:35:15 +0000 (21 11:35 -0700)
committermacvicar <macvicar@facebook.com>
Thu, 28 Oct 2010 20:02:12 +0000 (28 13:02 -0700)
tree78eae40bee47e23acdd4f6b88a3bb3b86e93a761
parent124fe661a51fe8ee318f0ca9a75990e54090d84a
Drop file system cache for log files

Summary:
Various log files can grow big and may stay in the file system cache forcing
out other more useful contents. Log files are not frequently accessed
once written. I made changes to drop the log file from the file system cache
after every N bytes is written, where N is a runtime option with default
value 1MB.

Test Plan:
make fast_tests
make slow_tests
make www and do production test.

DiffCamp Revision: 172720
Reviewed By: ps
Commenters: hzhao
CC: ps, hzhao, hphp-diffs@lists
Revert Plan:
OK
src/runtime/base/runtime_option.cpp
src/runtime/base/server/access_log.cpp
src/runtime/base/server/access_log.h
src/runtime/ext/ext_output.cpp
src/util/cronolog.h
src/util/logger.cpp
src/util/logger.h
src/util/util.cpp
src/util/util.h