Lines Matching defs:dirty_ratelimit
816 * (1) f(freerun) = 2.0 => rampup dirty_ratelimit reasonably fast
858 * task_ratelimit = dirty_ratelimit * pos_ratio >> RATELIMIT_CALC_SHIFT
1193 * Maintain wb->dirty_ratelimit, the base dirty throttle rate.
1208 unsigned long dirty_ratelimit = wb->dirty_ratelimit;
1225 task_ratelimit = (u64)dirty_ratelimit *
1227 task_ratelimit++; /* it helps rampup dirty_ratelimit from tiny values */
1270 * wb->dirty_ratelimit = balanced_dirty_ratelimit;
1272 * However to get a more stable dirty_ratelimit, the below elaborated
1278 * task_ratelimit - dirty_ratelimit
1279 * = (pos_ratio - 1) * dirty_ratelimit
1285 * dirty_ratelimit will follow balanced_dirty_ratelimit iff
1286 * task_ratelimit is on the same side of dirty_ratelimit, too.
1288 * - dirty_ratelimit > balanced_dirty_ratelimit
1289 * - dirty_ratelimit > task_ratelimit (dirty pages are above setpoint)
1290 * lowering dirty_ratelimit will help meet both the position and rate
1291 * control targets. Otherwise, don't update dirty_ratelimit if it will
1295 * |task_ratelimit - dirty_ratelimit| is used to limit the step size
1310 * We rampup dirty_ratelimit forcibly if wb_dirty is low because
1325 if (dirty_ratelimit < x)
1326 step = x - dirty_ratelimit;
1330 if (dirty_ratelimit > x)
1331 step = dirty_ratelimit - x;
1339 shift = dirty_ratelimit / (2 * step + 1);
1345 if (dirty_ratelimit < balanced_dirty_ratelimit)
1346 dirty_ratelimit += step;
1348 dirty_ratelimit -= step;
1350 wb->dirty_ratelimit = max(dirty_ratelimit, 1UL);
1452 unsigned long dirty_ratelimit,
1456 long lo = ilog2(wb->dirty_ratelimit);
1475 * on the much more stable dirty_ratelimit. However the next pause time
1478 * below dirty_ratelimit/2 and the target pause is max_pause, the next
1481 * eventually bring down dirty_ratelimit.
1489 * nr_dirtied_pause will remain as stable as dirty_ratelimit.
1492 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ);
1504 pages = dirty_ratelimit * t / roundup_pow_of_two(HZ);
1507 t = HZ * DIRTY_POLL_THRESH / dirty_ratelimit;
1589 unsigned long dirty_ratelimit;
1744 dirty_ratelimit = wb->dirty_ratelimit;
1745 task_ratelimit = ((u64)dirty_ratelimit * sdtc->pos_ratio) >>
1749 task_ratelimit, dirty_ratelimit,
1775 dirty_ratelimit,
1804 dirty_ratelimit,