X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fdefaults.h;h=06d6bf7b7a4e33b498176ee2c4b60c235009df07;hb=f7c3ffd79ddcece895eb0de616001d549aced5fc;hp=23f1f733610664b9f989e5e6541ae72ea07aed1b;hpb=5da88b0f58d7f838068037ea449ddfb25d3e85ad;p=lttng-tools.git diff --git a/src/common/defaults.h b/src/common/defaults.h index 23f1f7336..06d6bf7b7 100644 --- a/src/common/defaults.h +++ b/src/common/defaults.h @@ -93,6 +93,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" @@ -345,6 +360,7 @@ #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_DISALLOW_CLEAR_ENV "LTTNG_RELAYD_DISALLOW_CLEAR" #define DEFAULT_LTTNG_RELAYD_WORKING_DIRECTORY_ENV "LTTNG_RELAYD_WORKING_DIRECTORY" @@ -352,8 +368,10 @@ * Name of the intermediate directory used to rename the trace chunk of a * session's first rotation. */ -#define DEFAULT_TEMPORARY_CHUNK_RENAME_DIRECTORY ".tmp_rename_chunk" +#define DEFAULT_CHUNK_TMP_OLD_DIRECTORY ".tmp_old_chunk" +#define DEFAULT_CHUNK_TMP_NEW_DIRECTORY ".tmp_new_chunk" #define DEFAULT_ARCHIVED_TRACE_CHUNKS_DIRECTORY "archives" +#define DEFAULT_UNLINKED_FILES_DIRECTORY ".unlinked" /* * Default timer value in usec for the rotate pending polling check on the