chiark / gitweb /
logind: update empty and "infinity" handling for [User]TasksMax (#3835)
[elogind.git] / src / basic / cgroup-util.h
index 0255e2850b94c87d0c67ca4aa4a814462a409c0f..5f3152995e253b1a4e3182d5a5747733ee8430df 100644 (file)
@@ -114,6 +114,10 @@ static inline bool CGROUP_BLKIO_WEIGHT_IS_OK(uint64_t x) {
 }
 #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:
  *
@@ -238,7 +242,7 @@ bool cg_ns_supported(void);
 #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);