chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: update empty and "infinity" handling for [User]TasksMax (#3835)
[elogind.git]
/
src
/
basic
/
cgroup-util.h
diff --git
a/src/basic/cgroup-util.h
b/src/basic/cgroup-util.h
index 0255e2850b94c87d0c67ca4aa4a814462a409c0f..5f3152995e253b1a4e3182d5a5747733ee8430df 100644
(file)
--- a/
src/basic/cgroup-util.h
+++ b/
src/basic/cgroup-util.h
@@
-114,6
+114,10
@@
static inline bool CGROUP_BLKIO_WEIGHT_IS_OK(uint64_t x) {
}
#endif // 0
}
#endif // 0
+/* Default resource limits */
+#define DEFAULT_TASKS_MAX_PERCENTAGE 15U /* 15% of PIDs, 4915 on default settings */
+#define DEFAULT_USER_TASKS_MAX_PERCENTAGE 33U /* 33% of PIDs, 10813 on default settings */
+
/*
* General rules:
*
/*
* General rules:
*
@@
-238,7
+242,7
@@
bool cg_ns_supported(void);
#endif // 0
#if 0 /// UNNEEDED by elogind
#endif // 0
#if 0 /// UNNEEDED by elogind
-int cg_
all_
unified(void);
+int cg_unified(void);
void cg_unified_flush(void);
bool cg_is_unified_wanted(void);
void cg_unified_flush(void);
bool cg_is_unified_wanted(void);