3 Matching Annotations
  1. Last 7 days
    1. t = wb_dirty / (1 + bw / roundup_pow_of_two(1 + HZ / 8));

      There is an algorithmic policy here that uses heuristic to determine the max interval between writeback events.

    2. static long wb_min_pause(struct bdi_writeback *wb, long max_pause, unsigned long task_ratelimit, unsigned long dirty_ratelimit, int *nr_dirtied_pause)

      There is an algorithmic policy here in this function which determine the minimum pause time for writeback events to avoid overloading the I/O subsystem and to ensure efficient background writeback of dirty pages.

    3. ratelimit_pages = dirty_thresh / (num_online_cpus() * 32); if (ratelimit_pages < 16) ratelimit_pages = 16;

      This is an algorithmic policy that controls the thresholds of dirty memories based on the number of processors that are available. CPUs will be throttled or blocked if the memories marked dirty in the system exceed the threshold. With these, it make sure that when all CPU are dirtying memories, at most 1/32 of the total memories can become dirty before they get writeback.