X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fdefaults.h;h=2dff3908768ab24157dfd94cad012696520bcaa5;hb=47bd3dfaa9aec8fff131d7afd8d4c76a182aeccc;hp=27f1ddc82a66524afeef8250d50c2f0dfefa72c7;hpb=4d5fb75f02db3ea42a5d9718f2c34dda4c485f76;p=lttng-tools.git diff --git a/src/common/defaults.h b/src/common/defaults.h index 27f1ddc82..2dff39087 100644 --- a/src/common/defaults.h +++ b/src/common/defaults.h @@ -20,7 +20,8 @@ #ifndef _DEFAULTS_H #define _DEFAULTS_H -#include +#include +#include /* Default unix group name for tracing. */ #define DEFAULT_TRACING_GROUP "tracing" @@ -89,6 +90,21 @@ #define DEFAULT_RELAYD_RUNDIR "%s" #define DEFAULT_RELAYD_PATH DEFAULT_RELAYD_RUNDIR "/relayd" +#define DEFAULT_RELAYD_MIN_FD_POOL_SIZE 100 +/* + * The file descriptor pool size needs a reserve buffer to accomodate the + * indirect use of short-lived file descriptors. For instance, glibc will + * create a socket (and thus, use an fd) during calls to gethostname() or + * when querying the user's group. Other calls also probably make use of + * short-lived FDs. + * + * The theoritical maximal reserve corresponds to the number of threads as, + * in the worst case, they could all be making such calls. + * + * This value must be less than DEFAULT_RELAYD_MIN_FD_POOL_SIZE. + */ +#define DEFAULT_RELAYD_FD_POOL_SIZE_RESERVE 10 + /* Default lttng run directory */ #define DEFAULT_LTTNG_HOME_ENV_VAR "LTTNG_HOME" #define DEFAULT_LTTNG_FALLBACK_HOME_ENV_VAR "HOME" @@ -285,6 +301,10 @@ */ #define DEFAULT_INET_TCP_TIMEOUT 180 /* sec */ +/* Maximum payload size for a control connection */ + +#define DEFAULT_NETWORK_RELAYD_CTRL_MAX_PAYLOAD_SIZE 134217728 + /* * Default receiving and sending timeout for an application socket. */ @@ -312,6 +332,14 @@ /* Default thread stack size; the default mandated by pthread_create(3) */ #define DEFAULT_LTTNG_THREAD_STACK_SIZE 2097152 +#define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE" +#define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_IDLE_TIME_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE_IDLE_TIME" +#define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_MAX_PROBE_COUNT_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE_MAX_PROBE_COUNT" +#define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_PROBE_INTERVAL_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE_PROBE_INTERVAL" +#define DEFAULT_LTTNG_RELAYD_TCP_KEEP_ALIVE_ABORT_THRESHOLD_ENV "LTTNG_RELAYD_TCP_KEEP_ALIVE_ABORT_THRESHOLD" + +#define DEFAULT_LTTNG_RELAYD_WORKING_DIRECTORY_ENV "LTTNG_RELAYD_WORKING_DIRECTORY" + /* * Returns the default subbuf size. *