Received: from eggs.gnu.org ([2001:4830:134:3::10]:45820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0tzJ-0004nL-PY for qemu-devel@nongnu.org; Fri, 05 Jun 2015 11:56:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0tzD-0004SU-W3 for qemu-devel@nongnu.org; Fri, 05 Jun 2015 11:56:53 -0400 From: Alberto Garcia In-Reply-To: <5571C5BD.2080804@redhat.com> References: <5571C5BD.2080804@redhat.com> Date: Fri, 05 Jun 2015 17:56:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 3/4] docs: document how to configure the qcow2 L2/refcount caches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Stefan Hajnoczi On Fri 05 Jun 2015 05:52:29 PM CEST, Max Reitz wrote: >> +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) >> +after which all unused cache entries are removed from memory. >> + >> +This 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 0 and it disables >> +this feature. >> + >> +Note that this functionality currently relies on the MADV_DONTNEED >> +argument for madvise() to actually free the memory, so it is not >> +useful in systems that don't follow that behavior. > > I'd like a definition of what "unused" means (I know because of this > series, but I wouldn't know just from this document). It means that it hasn't been accessed in that interval (because it was not needed). Are you thinking of any other possible interpretation? Berto