Lines Matching defs:usage

1697 	pr_info("memory: usage %llukB, limit %llukB, failcnt %lu\n",
1701 pr_info("swap: usage %llukB, limit %llukB, failcnt %lu\n",
1705 pr_info("memory+swap: usage %llukB, limit %llukB, failcnt %lu\n",
1708 pr_info("kmem: usage %llukB, limit %llukB, failcnt %lu\n",
2472 * | usage | time to allocate in ms |
2500 static u64 calculate_overage(unsigned long usage, unsigned long high)
2504 if (usage <= high)
2513 overage = usage - high;
2794 * being freed very soon. Allow memory usage go over the limit
3701 * Approximate root's usage from global state. This isn't
3702 * perfect, but the root usage was always an approximation.
4233 unsigned long usage;
4245 usage = mem_cgroup_usage(memcg, swap);
4248 * current_threshold points to threshold just below or equal to usage.
4257 * If none of thresholds below usage is crossed, we read
4260 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--)
4269 * If none of thresholds above usage is crossed, we read
4272 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++)
4333 unsigned long usage;
4344 usage = mem_cgroup_usage(memcg, false);
4347 usage = mem_cgroup_usage(memcg, true);
4381 if (new->entries[i].threshold <= usage) {
4424 unsigned long usage;
4431 usage = mem_cgroup_usage(memcg, false);
4434 usage = mem_cgroup_usage(memcg, true);
4475 if (new->entries[j].threshold <= usage) {
6928 * proportion to each cgroup's *usage*. This makes the protection
6937 static unsigned long effective_protection(unsigned long usage,
6946 protected = min(usage, setting);
6965 * If there is unprotected usage beyond this value, reclaim
6989 * Check both usage and parent_usage against the respective
6997 usage > protected) {
7001 unclaimed *= usage - protected;
7021 unsigned long usage, parent_usage;
7040 usage = page_counter_read(&memcg->memory);
7041 if (!usage)
7054 WRITE_ONCE(memcg->memory.emin, effective_protection(usage, parent_usage,
7059 WRITE_ONCE(memcg->memory.elow, effective_protection(usage, parent_usage,
7680 unsigned long usage = page_counter_read(&memcg->swap);
7682 if (usage * 2 >= READ_ONCE(memcg->swap.high) ||
7683 usage * 2 >= READ_ONCE(memcg->swap.max))