diff options
author | Juhyung Park <[email protected]> | 2023-05-31 23:59:23 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-31 17:59:23 +0300 |
commit | 7f8bb428d3023448145199c3a41243d666afe253 (patch) | |
tree | 6a1db1719f007d0783e64858f8a265c441cf7c53 /kvmd.install | |
parent | d608b6e01064ede7c1d4d112236582cab0456446 (diff) |
sysctl: tune dirty data writeback policies (#135)
The existing policy sets dirty_background_bytes to 5, which is erroneously
too small that incurs write amplification and read starvations.
Considering a raspi with 2 GiB of RAM, this is 43 million times smaller
than the default Linux policy, which is 10%.
Considering that this will be deployed to mostly read-only system with
emphasis on data integrity (hence needing tighter data writeback), set
this to 256 KiB.
Continuing addressing the overly excessive data writeback policies, also
bump the dirty_writeback_centisecs from 250ms to 1000ms. Any dirty data
written in the past 1 second will be written to the storage.
Signed-off-by: Juhyung Park <[email protected]>
Diffstat (limited to 'kvmd.install')
0 files changed, 0 insertions, 0 deletions