iolog: don't copy log samples for compression
authorJens Axboe <axboe@fb.com>
Wed, 9 Dec 2015 16:16:13 +0000 (09:16 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 9 Dec 2015 16:16:13 +0000 (09:16 -0700)
commit949ae6dce35c81348cfb15f77c9d0a6785fe4053
tree706bd634d9449d18808ece08d2787951b75f98ff
parentada6fcee71b5eb65ea11ec36a3dd4f7e13d104e3
iolog: don't copy log samples for compression

For larger settings of log_compression, the allocation and copying of
the log will adversely affect performance and logged latencies. Instead
just reference the log in the compression code, while resetting the
current log to a smaller size. We pay a slightly higher cost in memory
until compression has completd, but it saves us from allocating and
copying tens (or hundreds) of megabytes inline.

Signed-off-by: Jens Axboe <axboe@fb.com>
iolog.c