Commit 95b88f4
dm writecache: pause writeback if cache full and origin being written directly
Implementation reuses dm_io_tracker, that until now was only used by
dm-cache, to track if any writes were issued directly to the origin
(due to cache being full) within the last second. If so writeback is
paused for a second.
This change improves performance for when the cache is full and IO is
issued directly to the origin device (rather than through the cache).
Depends-on: d53f1fa ("dm writecache: do direct write if the cache is full")
Suggested-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>1 parent dc4fa29 commit 95b88f4
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| 188 | + | |
| 189 | + | |
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| |||
1466 | 1470 | | |
1467 | 1471 | | |
1468 | 1472 | | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
1469 | 1477 | | |
1470 | 1478 | | |
1471 | 1479 | | |
| |||
1496 | 1504 | | |
1497 | 1505 | | |
1498 | 1506 | | |
1499 | | - | |
| 1507 | + | |
1500 | 1508 | | |
1501 | 1509 | | |
1502 | 1510 | | |
1503 | 1511 | | |
| 1512 | + | |
| 1513 | + | |
1504 | 1514 | | |
1505 | 1515 | | |
1506 | 1516 | | |
| |||
1827 | 1837 | | |
1828 | 1838 | | |
1829 | 1839 | | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
1830 | 1847 | | |
1831 | 1848 | | |
1832 | 1849 | | |
| |||
2140 | 2157 | | |
2141 | 2158 | | |
2142 | 2159 | | |
| 2160 | + | |
| 2161 | + | |
2143 | 2162 | | |
2144 | 2163 | | |
2145 | 2164 | | |
| |||
0 commit comments