* Re: [Qemu-devel] [PATCH] qcow2: Fix cache-clean-interval documentation [not found] <20180929095454.32066-1-lbloch@janustech.com> @ 2018-10-01 14:35 ` Eric Blake 2018-10-01 16:59 ` Kevin Wolf 0 siblings, 1 reply; 3+ messages in thread From: Eric Blake @ 2018-10-01 14:35 UTC (permalink / raw) To: Leonid Bloch, qemu-devel Cc: qemu-block, Kevin Wolf, Max Reitz, Alberto Garcia On 9/29/18 4:54 AM, Leonid Bloch wrote: > Fixing cache-clean-interval documentation following the recent change to > a default of 600 seconds on supported plarforms (only Linux currently). > > Signed-off-by: Leonid Bloch <lbloch@janustech.com> > --- > docs/qcow2-cache.txt | 19 +++++++++---------- > qapi/block-core.json | 3 ++- > qemu-options.hx | 3 ++- > 3 files changed, 13 insertions(+), 12 deletions(-) > > diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt > index 59358b816f..1778312e09 100644 > --- a/docs/qcow2-cache.txt > +++ b/docs/qcow2-cache.txt > @@ -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/ > +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. > +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. Reviewed-by: Eric Blake <eblake@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] qcow2: Fix cache-clean-interval documentation 2018-10-01 14:35 ` [Qemu-devel] [PATCH] qcow2: Fix cache-clean-interval documentation Eric Blake @ 2018-10-01 16:59 ` Kevin Wolf 2018-10-02 9:50 ` Leonid Bloch 0 siblings, 1 reply; 3+ messages in thread From: Kevin Wolf @ 2018-10-01 16:59 UTC (permalink / raw) To: Eric Blake Cc: Leonid Bloch, qemu-devel, qemu-block, Max Reitz, Alberto Garcia Am 01.10.2018 um 16:35 hat Eric Blake geschrieben: > On 9/29/18 4:54 AM, Leonid Bloch wrote: > > Fixing cache-clean-interval documentation following the recent change to > > a default of 600 seconds on supported plarforms (only Linux currently). > > > > Signed-off-by: Leonid Bloch <lbloch@janustech.com> > > --- > > docs/qcow2-cache.txt | 19 +++++++++---------- > > qapi/block-core.json | 3 ++- > > qemu-options.hx | 3 ++- > > 3 files changed, 13 insertions(+), 12 deletions(-) > > > > diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt > > index 59358b816f..1778312e09 100644 > > --- a/docs/qcow2-cache.txt > > +++ b/docs/qcow2-cache.txt > > @@ -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/ Thanks, made these fixes and applied it to the block branch. Kevin ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] qcow2: Fix cache-clean-interval documentation 2018-10-01 16:59 ` Kevin Wolf @ 2018-10-02 9:50 ` Leonid Bloch 0 siblings, 0 replies; 3+ messages in thread From: Leonid Bloch @ 2018-10-02 9:50 UTC (permalink / raw) To: Kevin Wolf, Eric Blake Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz, Alberto Garcia On 10/1/18 7:59 PM, Kevin Wolf wrote: > Am 01.10.2018 um 16:35 hat Eric Blake geschrieben: >> On 9/29/18 4:54 AM, Leonid Bloch wrote: >>> Fixing cache-clean-interval documentation following the recent change to >>> a default of 600 seconds on supported plarforms (only Linux currently). >>> >>> Signed-off-by: Leonid Bloch <lbloch@janustech.com> >>> --- >>> docs/qcow2-cache.txt | 19 +++++++++---------- >>> qapi/block-core.json | 3 ++- >>> qemu-options.hx | 3 ++- >>> 3 files changed, 13 insertions(+), 12 deletions(-) >>> >>> diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt >>> index 59358b816f..1778312e09 100644 >>> --- a/docs/qcow2-cache.txt >>> +++ b/docs/qcow2-cache.txt >>> @@ -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/ > > Thanks, made these fixes and applied it to the block branch. > > Kevin > Thanks Kevin, Eric! ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-02 9:50 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20180929095454.32066-1-lbloch@janustech.com> 2018-10-01 14:35 ` [Qemu-devel] [PATCH] qcow2: Fix cache-clean-interval documentation Eric Blake 2018-10-01 16:59 ` Kevin Wolf 2018-10-02 9:50 ` Leonid Bloch
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).