Home
last modified time | relevance | path

Searched refs:threshold (Results 1 – 2 of 2) sorted by relevance

/mm/
Dvmstat.c174 int threshold; in calculate_pressure_threshold() local
186 threshold = max(1, (int)(watermark_distance / num_online_cpus())); in calculate_pressure_threshold()
191 threshold = min(125, threshold); in calculate_pressure_threshold()
193 return threshold; in calculate_pressure_threshold()
198 int threshold; in calculate_normal_threshold() local
233 threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem)); in calculate_normal_threshold()
238 threshold = min(125, threshold); in calculate_normal_threshold()
240 return threshold; in calculate_normal_threshold()
251 int threshold; in refresh_zone_stat_thresholds() local
264 threshold = calculate_normal_threshold(zone); in refresh_zone_stat_thresholds()
[all …]
Dmemcontrol.c3986 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--) in __mem_cgroup_threshold()
3998 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++) in __mem_cgroup_threshold()
4023 if (_a->threshold > _b->threshold) in compare_thresholds()
4026 if (_a->threshold < _b->threshold) in compare_thresholds()
4058 unsigned long threshold; in __mem_cgroup_usage_register_event() local
4062 ret = page_counter_memparse(args, "-1", &threshold); in __mem_cgroup_usage_register_event()
4099 new->entries[size - 1].threshold = threshold; in __mem_cgroup_usage_register_event()
4108 if (new->entries[i].threshold <= usage) { in __mem_cgroup_usage_register_event()
4196 if (new->entries[j].threshold <= usage) { in __mem_cgroup_usage_unregister_event()