diff options
| author | Alberto Garcia | 2015-08-04 14:14:40 +0200 |
|---|---|---|
| committer | Max Reitz | 2015-09-04 21:00:32 +0200 |
| commit | 279621c046ce57de0af9e3c00663b48d3a7835ae (patch) | |
| tree | e14d8ab78e7bfcddf42b763a120cc8d116d38430 /docs/qcow2-cache.txt | |
| parent | qcow2: mark the memory as no longer needed after qcow2_cache_empty() (diff) | |
| download | qemu-279621c046ce57de0af9e3c00663b48d3a7835ae.tar.gz qemu-279621c046ce57de0af9e3c00663b48d3a7835ae.tar.xz qemu-279621c046ce57de0af9e3c00663b48d3a7835ae.zip | |
qcow2: add option to clean unused cache entries after some time
This adds a new 'cache-clean-interval' option that cleans all qcow2
cache entries that haven't been used in a certain interval, given in
seconds.
This allows setting a large L2 cache size so it can handle scenarios
with lots of I/O and at the same time use little memory during periods
of inactivity.
This feature currently relies on MADV_DONTNEED to free that memory, so
it is not useful in systems that don't follow that behavior.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: a70d12da60433df9360ada648b3f34b8f6f354ce.1438690126.git.berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'docs/qcow2-cache.txt')
0 files changed, 0 insertions, 0 deletions
