diff options
author | Joe Thornber <ejt@redhat.com> | 2013-10-24 14:10:28 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2013-11-09 18:20:25 -0500 |
commit | 01911c19bea63b1a958b9d9024504c2e9079f155 (patch) | |
tree | 613f9334c9d85702ff89168f587d4d90d24378b9 /Documentation/device-mapper | |
parent | ffcbcb6720ab6a4bb6e0a51b3711e8c60872d281 (diff) |
dm cache policy mq: implement writeback_work() and mq_{set,clear}_dirty()
There are now two multiqueues for in cache blocks. A clean one and a
dirty one.
writeback_work comes from the dirty one. Demotions come from the clean
one.
There are two benefits:
- Performance improvement, since demoting a clean block is a noop.
- The cache cleans itself when io load is light.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'Documentation/device-mapper')
-rw-r--r-- | Documentation/device-mapper/cache-policies.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/device-mapper/cache-policies.txt b/Documentation/device-mapper/cache-policies.txt index d7c440b444cc..df52a849957f 100644 --- a/Documentation/device-mapper/cache-policies.txt +++ b/Documentation/device-mapper/cache-policies.txt | |||
@@ -30,8 +30,10 @@ multiqueue | |||
30 | 30 | ||
31 | This policy is the default. | 31 | This policy is the default. |
32 | 32 | ||
33 | The multiqueue policy has two sets of 16 queues: one set for entries | 33 | The multiqueue policy has three sets of 16 queues: one set for entries |
34 | waiting for the cache and another one for those in the cache. | 34 | waiting for the cache and another two for those in the cache (a set for |
35 | clean entries and a set for dirty entries). | ||
36 | |||
35 | Cache entries in the queues are aged based on logical time. Entry into | 37 | Cache entries in the queues are aged based on logical time. Entry into |
36 | the cache is based on variable thresholds and queue selection is based | 38 | the cache is based on variable thresholds and queue selection is based |
37 | on hit count on entry. The policy aims to take different cache miss | 39 | on hit count on entry. The policy aims to take different cache miss |