compctld recvmsg(): Allocate space for cmsg
[compctl.git] / common.h
blobdd7ca6a1017aef64471c908b97a66b8241b3076c
1 /* Definitions common for the client and daemon,
2 * and runtime configuration definitions. */
4 #ifndef COMMON__H
5 #define COMMON__H
7 /* Compile-time configuration area. */
9 /* Default memory split policy. Memory is split between
10 * user and computations by split_ratio, but so that neither
11 * has reserved less than minfree (in case of too little memory,
12 * user takes precedence) and user does not have reserved more
13 * than maxfree. */
14 size_t static_minfree = 512*1048576UL;
15 size_t static_maxfree = 2048*1048576UL;
16 double split_ratio = 0.5;
19 /* Other common definitions. */
20 /* See README for the high-level protocol description. */
22 #define SOCKFILE "/var/run/compctl.sock"
24 /* CGroup and hierarchy names. */
25 static const char chier[] = "memory";
26 static const char cgroup[] = "comp";
28 #endif