Lines Matching full:limit
6 * after a certain limit is reached.
8 * Since it is trivial to hit the task limit without hitting any kmemcg limits
21 * To set a cgroup to have no limit, set pids.max to "max". This is the default
23 * stringent limit in the hierarchy is followed).
49 atomic64_t limit; member
54 /* Number of times fork failed because limit was hit. */
78 atomic64_set(&pids->limit, PIDS_MAX); in pids_css_alloc()
123 * This function does *not* follow the pid limit set. It cannot fail and the new
124 * pid count may exceed the limit. This is only used for reverting failed
125 * attaches, where there is no other way out than violating the limit.
140 * This function follows the set limit. It will fail if the charge would cause
141 * the new value to exceed the hierarchical limit. Returns 0 if the charge
150 int64_t limit = atomic64_read(&p->limit); in pids_try_charge() local
154 * p->limit is %PIDS_MAX then we know that this test will never in pids_try_charge()
157 if (new > limit) in pids_try_charge()
267 int64_t limit; in pids_max_write() local
272 limit = PIDS_MAX; in pids_max_write()
276 err = kstrtoll(buf, 0, &limit); in pids_max_write()
280 if (limit < 0 || limit >= PIDS_MAX) in pids_max_write()
285 * Limit updates don't need to be mutex'd, since it isn't in pids_max_write()
286 * critical that any racing fork()s follow the new limit. in pids_max_write()
288 atomic64_set(&pids->limit, limit); in pids_max_write()
296 int64_t limit = atomic64_read(&pids->limit); in pids_max_show() local
298 if (limit >= PIDS_MAX) in pids_max_show()
301 seq_printf(sf, "%lld\n", limit); in pids_max_show()