diff options
author | Alexander Motin <[email protected]> | 2019-11-11 20:27:59 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-11 09:27:59 -0800 |
commit | f15d6a54575567c6d69b6f1ffc000d2df5a8f206 (patch) | |
tree | ecd75206966787c0eb941590fa0216123b42b0a7 /NEWS | |
parent | 2f1ca8a32af1c405fc5735673cc3f24f35465b68 (diff) |
Improve logging of 128KB writes
Before my ZIL space optimization few years ago 128KB writes were logged
as two 64KB+ records in two 128KB log blocks. After that change it
became ~127KB+/1KB+ in two 128KB log blocks to free space in the second
block for another record. Unfortunately in case of 128KB only writes,
when space in the second block remained unused, that change increased
write latency by unbalancing checksum computation and write times
between parallel threads. It also didn't help with SLOG space
efficiency in that case.
This change introduces new 68KB log block size, used for both writes
below 67KB and 128KB-sharp writes. Writes of 68-127KB are still using
one 128KB block to not increase processing overhead. Writes above
131KB are still using full 128KB blocks, since possible saving there
is small. Mixed loads will likely also fall back to previous 128KB,
since code uses maximum of the last 16 requested block sizes.
Reviewed-by: Matt Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Closes #9409
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions