What steps will reproduce the problem?
1. Set log level to WARNING or less
2. strace -p <redis pid>
3. Watch all the system calls to the log file
Just check the source here:
http://github.com/antirez/redis/blob/master/src/redis.c#L186
The file pointer will be opened, even if no logging takes place. The log level
should be checked *before* any files are opened or closed. Otherwise on each
call to redisLog() at least two not requried system calls are issued. This
lowers the performance of initial append only file loading on redis start
dramatically.
Original issue reported on code.google.com by marcel.oelke on 22 Jul 2010 at 8:50
Original issue reported on code.google.com by
marcel.oelke
on 22 Jul 2010 at 8:50