diff options
author | Simon Rettberg | 2018-03-15 22:03:36 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-15 22:03:36 +0100 |
commit | 09dbfb968c4ef469f4a43dad3b9818fd2ed4ef82 (patch) | |
tree | a2e936ba7e199badad7b18efa71576203bf5b48b /conf | |
parent | [SERVER] Make TSAN happy (diff) | |
download | dnbd3-09dbfb968c4ef469f4a43dad3b9818fd2ed4ef82.tar.gz dnbd3-09dbfb968c4ef469f4a43dad3b9818fd2ed4ef82.tar.xz dnbd3-09dbfb968c4ef469f4a43dad3b9818fd2ed4ef82.zip |
[SERVER] Experimental support for sparse files in proxy mode
Will not preallocate images in this mode. Old images are only
deleted if the disk is full, determined by write() calls to
the cache file yielding ENOSPC or EDQUOT. In such a case,
the least recently used image(s) will be deleted to free
up at least 256MiB, and then the write() call will be repeated.
This *should* work somewhat reliably unless the cache partition
is ridiculously small. Performance might suffer a little, and
disk fragmentation might occur much faster than in prealloc
mode. Testing is needed.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/server.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/server.conf b/conf/server.conf index f748a4a..332f8a3 100644 --- a/conf/server.conf +++ b/conf/server.conf @@ -13,6 +13,8 @@ isProxy=true backgroundReplication=true ; if isProxy==true and another proxy requests and image that we don't have, should we ask our alt-servers for it? lookupMissingForProxy=true +; create sparse files instead of preallocating; ignored if backgroundReplication=true -- only recommended if cache space is small +sparseFiles=false ; if true (which is the default), images will automatically be removed from the list if they can't be accessed removeMissingImages=true ; timeout in ms for send/recv on connections to uplink servers (used for replication) |