Lines Matching defs:dirty_ratelimit

902  * (1) f(freerun)  = 2.0 => rampup dirty_ratelimit reasonably fast
944 * task_ratelimit = dirty_ratelimit * pos_ratio >> RATELIMIT_CALC_SHIFT
1279 * Maintain wb->dirty_ratelimit, the base dirty throttle rate.
1294 unsigned long dirty_ratelimit = wb->dirty_ratelimit;
1311 task_ratelimit = (u64)dirty_ratelimit *
1313 task_ratelimit++; /* it helps rampup dirty_ratelimit from tiny values */
1356 * wb->dirty_ratelimit = balanced_dirty_ratelimit;
1358 * However to get a more stable dirty_ratelimit, the below elaborated
1364 * task_ratelimit - dirty_ratelimit
1365 * = (pos_ratio - 1) * dirty_ratelimit
1371 * dirty_ratelimit will follow balanced_dirty_ratelimit iff
1372 * task_ratelimit is on the same side of dirty_ratelimit, too.
1374 * - dirty_ratelimit > balanced_dirty_ratelimit
1375 * - dirty_ratelimit > task_ratelimit (dirty pages are above setpoint)
1376 * lowering dirty_ratelimit will help meet both the position and rate
1377 * control targets. Otherwise, don't update dirty_ratelimit if it will
1381 * |task_ratelimit - dirty_ratelimit| is used to limit the step size
1396 * We rampup dirty_ratelimit forcibly if wb_dirty is low because
1411 if (dirty_ratelimit < x)
1412 step = x - dirty_ratelimit;
1416 if (dirty_ratelimit > x)
1417 step = dirty_ratelimit - x;
1425 shift = dirty_ratelimit / (2 * step + 1);
1431 if (dirty_ratelimit < balanced_dirty_ratelimit)
1432 dirty_ratelimit += step;
1434 dirty_ratelimit -= step;
1436 WRITE_ONCE(wb->dirty_ratelimit, max(dirty_ratelimit, 1UL));
1549 unsigned long dirty_ratelimit,
1553 long lo = ilog2(READ_ONCE(wb->dirty_ratelimit));
1572 * on the much more stable dirty_ratelimit. However the next pause time
1575 * below dirty_ratelimit/2 and the target pause is max_pause, the next
1578 * eventually bring down dirty_ratelimit.
1586 * nr_dirtied_pause will remain as stable as dirty_ratelimit.
1589 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ);
1601 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ);
1604 t = HZ * DIRTY_POLL_THRESH / dirty_ratelimit;
1686 unsigned long dirty_ratelimit;
1853 dirty_ratelimit = READ_ONCE(wb->dirty_ratelimit);
1854 task_ratelimit = ((u64)dirty_ratelimit * sdtc->pos_ratio) >>
1858 task_ratelimit, dirty_ratelimit,
1884 dirty_ratelimit,
1913 dirty_ratelimit,