common.h: Add #define ADMINCONTACT for easy customization
[compctl.git] / common.h
blob95efeaa2cc23ca201ebb5798c3a4f4ce5b32033b
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 /* Contact of the network administrators. */
10 #define ADMINCONTACT "<wizards@kam.mff.cuni.cz>"
12 /* Default memory split policy. Memory is split between
13 * user and computations by split_ratio, but so that neither
14 * has reserved less than minfree (in case of too little memory,
15 * user takes precedence) and user does not have reserved more
16 * than maxfree. */
17 #define static_minfree (512*1048576UL)
18 #define static_maxfree (2048*1048576UL)
19 #define split_ratio 0.5
21 /* Default nice value for processes started using compctl --run. */
22 #define COMPNICE 12
24 /* Comment out if swap memory resource accounting is disabled
25 * and only RAM memory should be limited. */
26 #define SWAP_LIMIT 1
29 /* Other common definitions. */
30 /* See README for the high-level protocol description. */
32 #define SOCKFILE "/var/run/compctl.sock"
34 /* CGroup and hierarchy names. */
35 static const char chier[] = "memory";
36 static const char cgroup[] = "comp";
38 #endif