Lines Matching defs:usage

1686 	pr_info("memory: usage %llukB, limit %llukB, failcnt %lu\n",
1690 pr_info("swap: usage %llukB, limit %llukB, failcnt %lu\n",
1694 pr_info("memory+swap: usage %llukB, limit %llukB, failcnt %lu\n",
1697 pr_info("kmem: usage %llukB, limit %llukB, failcnt %lu\n",
2511 * | usage | time to allocate in ms |
2539 static u64 calculate_overage(unsigned long usage, unsigned long high)
2543 if (usage <= high)
2552 overage = usage - high;
2834 * being freed very soon. Allow memory usage go over the limit
4237 unsigned long usage;
4249 usage = mem_cgroup_usage(memcg, swap);
4252 * current_threshold points to threshold just below or equal to usage.
4261 * If none of thresholds below usage is crossed, we read
4264 for (; i >= 0 && unlikely(t->entries[i].threshold > usage); i--)
4273 * If none of thresholds above usage is crossed, we read
4276 for (; i < t->size && unlikely(t->entries[i].threshold <= usage); i++)
4337 unsigned long usage;
4348 usage = mem_cgroup_usage(memcg, false);
4351 usage = mem_cgroup_usage(memcg, true);
4385 if (new->entries[i].threshold <= usage) {
4428 unsigned long usage;
4435 usage = mem_cgroup_usage(memcg, false);
4438 usage = mem_cgroup_usage(memcg, true);
4479 if (new->entries[j].threshold <= usage) {
6727 * proportion to each cgroup's *usage*. This makes the protection
6736 static unsigned long effective_protection(unsigned long usage,
6745 protected = min(usage, setting);
6764 * If there is unprotected usage beyond this value, reclaim
6788 * Check both usage and parent_usage against the respective
6796 usage > protected) {
6800 unclaimed *= usage - protected;
6820 unsigned long usage, parent_usage;
6839 usage = page_counter_read(&memcg->memory);
6840 if (!usage)
6856 WRITE_ONCE(memcg->memory.emin, effective_protection(usage, parent_usage,
6861 WRITE_ONCE(memcg->memory.elow, effective_protection(usage, parent_usage,
7470 unsigned long usage = page_counter_read(&memcg->swap);
7472 if (usage * 2 >= READ_ONCE(memcg->swap.high) ||
7473 usage * 2 >= READ_ONCE(memcg->swap.max))