diff options
author | Simon Rettberg | 2018-07-04 17:18:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-07-04 17:18:09 +0200 |
commit | ba052729b316a86d7127a5300582f029780db336 (patch) | |
tree | 5b017e57cae150744004c5e205877006211f5925 /src/server/uplink.c | |
parent | [SERVER] Refactor uplink/cache handling, improve crc checking (diff) | |
download | dnbd3-ba052729b316a86d7127a5300582f029780db336.tar.gz dnbd3-ba052729b316a86d7127a5300582f029780db336.tar.xz dnbd3-ba052729b316a86d7127a5300582f029780db336.zip |
[SERVER] Use O_DIRECT for integrity checks
The idea is that for full image checks, we don't want to
pollute the fs cache with gigabytes of data that won't be
needed again soon. This would certainly hurt performance
on servers that dont have hundreds of GBs of RAM.
For single block checks during replication this has the
advantage that we don't check the block in memory before
it hit the disk once, but actually flush the data to disk,
then remove it from the page cache, and only then read it
again, from disk.
TODO: Might be worth making this a config option
Diffstat (limited to 'src/server/uplink.c')
0 files changed, 0 insertions, 0 deletions