Skip to contentSkip to conversation

qcow2: Fix cache-clean-interval documentation

PATCH Eric Blake 3 participants 3 messages Oct 1, 2018 – Oct 2, 2018 1 message not in the archive

lore
Share & tools
lore

Eric Blake

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 15 lines · Leonid Bloch

Fixing cache-clean-interval documentation following the recent change to a default of 600 seconds on supported plarforms (only Linux currently).

---
  docs/qcow2-cache.txt | 19 +++++++++----------
  qapi/block-core.json |  3 ++-
  qemu-options.hx      |  3 ++-
  3 files changed, 13 insertions(+), 12 deletions(-)
docs/qcow2-cache.txt +0 -0
index 59358b816f..1778312e09 100644

docs/qcow2-cache.txt Reducing the memory usage · line 206

Quoted 8 lines
docs/qcow2-cache.txt +2 -3
@@ -202,18 +202,17 @@ Reducing the memory usage
  It is possible to clean unused cache entries in order to reduce the
  memory usage during periods of low I/O activity.
 
-The parameter "cache-clean-interval" defines an interval (in seconds).
-All cache entries that haven't been accessed during that interval are
-removed from memory.
+The parameter "cache-clean-interval" defines an interval (in seconds),
+affer which all the cache entries that haven't been accessed during it

s/affer/after/

Maybe s/during it/during the interval/

Quoted 9 lines
docs/qcow2-cache.txt +2 -3
+are removed from memory. Setting this parameter to 0 disables this feature.
 
-This example removes all unused cache entries every 15 minutes:
+The following example removes all unused cache entries every 15 minutes:
 
     -drive file=hd.qcow2,cache-clean-interval=900
 
-If unset, the default value for this parameter is 600. Setting it to 0
-disables this feature.

docs/qcow2-cache.txt Reducing the memory usage · line 218

Quoted 10 lines
docs/qcow2-cache.txt +5 -4
+If unset, the default value for this parameter is 600 on platforms which
+support this functionality, and is 0 (disabled) on other platforms.
 
-Note that this functionality currently relies on the MADV_DONTNEED
-argument for madvise() to actually free the memory. This is a
-Linux-specific feature, so cache-clean-interval is not supported in
-other systems.
+This functionality currently relies on the MADV_DONTNEED argument for
+madvise() to actually free the memory. This is a Linux-specific feature,
+so cache-clean-interval is not supported on other systems.

Otherwise looks good.

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org
#2 lore raw

Am 01.10.2018 um 16:35 hat Eric Blake geschrieben:

Quoted 26 lines · Leonid Bloch
Quoted 15 lines

Fixing cache-clean-interval documentation following the recent change to a default of 600 seconds on supported plarforms (only Linux currently).

---
  docs/qcow2-cache.txt | 19 +++++++++----------
  qapi/block-core.json |  3 ++-
  qemu-options.hx      |  3 ++-
  3 files changed, 13 insertions(+), 12 deletions(-)
docs/qcow2-cache.txt +0 -0
index 59358b816f..1778312e09 100644

docs/qcow2-cache.txt Reducing the memory usage · line 205

Quoted 7 lines
docs/qcow2-cache.txt +2 -3
@@ -202,18 +202,17 @@ Reducing the memory usage
  It is possible to clean unused cache entries in order to reduce the
  memory usage during periods of low I/O activity.
-The parameter "cache-clean-interval" defines an interval (in seconds).
-All cache entries that haven't been accessed during that interval are
-removed from memory.
+The parameter "cache-clean-interval" defines an interval (in seconds),
+affer which all the cache entries that haven't been accessed during it

s/affer/after/

Quoted 1 line

Maybe s/during it/during the interval/

Thanks, made these fixes and applied it to the block branch.

Kevin

#3 lore raw
Quoted 27 lines · Kevin Wolf

Am 01.10.2018 um 16:35 hat Eric Blake geschrieben:

Quoted 26 lines · Leonid Bloch
Quoted 15 lines

Fixing cache-clean-interval documentation following the recent change to a default of 600 seconds on supported plarforms (only Linux currently).

---
   docs/qcow2-cache.txt | 19 +++++++++----------
   qapi/block-core.json |  3 ++-
   qemu-options.hx      |  3 ++-
   3 files changed, 13 insertions(+), 12 deletions(-)
docs/qcow2-cache.txt +0 -0
index 59358b816f..1778312e09 100644

docs/qcow2-cache.txt Reducing the memory usage · line 205

Quoted 7 lines
docs/qcow2-cache.txt +2 -3
@@ -202,18 +202,17 @@ Reducing the memory usage
   It is possible to clean unused cache entries in order to reduce the
   memory usage during periods of low I/O activity.
-The parameter "cache-clean-interval" defines an interval (in seconds).
-All cache entries that haven't been accessed during that interval are
-removed from memory.
+The parameter "cache-clean-interval" defines an interval (in seconds),
+affer which all the cache entries that haven't been accessed during it

s/affer/after/

Quoted 6 lines
Quoted 1 line

Maybe s/during it/during the interval/

Thanks, made these fixes and applied it to the block branch.

Kevin

Thanks Kevin, Eric!