From 889b21a9a7cad7cbb70dfe8a589620ef33c401a5 Mon Sep 17 00:00:00 2001 From: thib Date: Mon, 28 Aug 2000 17:54:46 +0000 Subject: [PATCH] modifications for lavg + SERIAL_ONCE --- config.h.in | 48 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/config.h.in b/config.h.in index 3b0d643..f03d893 100644 --- a/config.h.in +++ b/config.h.in @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: config.h.in,v 1.12 2000-08-22 21:18:51 thib Exp $ */ + /* $Id: config.h.in,v 1.13 2000-08-28 17:54:46 thib Exp $ */ /* *********************************************************** */ @@ -48,6 +48,10 @@ #define ETC "/etc/" #endif +#ifndef PROC /* directory where is mounted the procfs */ +#define PROC "/proc/" +#endif + #ifndef DEBUG #define DEBUG 0 /* 1 if you want debug mode */ #endif @@ -86,19 +90,40 @@ /* *** memory *** */ -#define EXE_ARRAY_INITIAL_SIZE 6 /* initial number of possible running job +#define EXE_INITIAL_SIZE 6 /* initial number of possible running job * if more jobs have to be run simultaneously, * fcron will have to calloc() more memory */ -#define EXE_ARRAY_GROW_SIZE 5 /* this is the number of entries that will be +#define EXE_GROW_SIZE 5 /* this is the number of entries that will be * added to exe_array each time it has to grow * up */ +#define SERIAL_QUEUE_MAX 20 /* if serial queue contains this number of entries, + * the next serial job to be executed will be run + * non-serially each time a serial job is added */ +#define SERIAL_INITIAL_SIZE 10 /* initial number of possible serial job. If + * more jobs have to be in queue simultaneously, + * fcron will have to calloc() more memory */ +#define SERIAL_GROW_SIZE 10 /* this is the number of entries that will be + * added to serial queue each time it has to grow + * up */ + +#define LAVG_QUEUE_MAX 30 /* if lavg queue contains this number of entries, + * the next lavg job to be executed will be run + * before a new lavg job is added */ +#define LAVG_INITIAL_SIZE 10 /* initial number of possible lavg job. If + * more jobs have to be in queue simultaneously, + * fcron will have to calloc() more memory */ +#define LAVG_GROW_SIZE 10 /* this is the number of entries that will be + * added to lavg queue each time it has to grow + * up */ + + #define MAXENTRIES 256 /* max lines in non-root fcrontabs */ #define LINE_LEN 1024 /* max line length in user's config file */ #define FNAME_LEN 512 /* max length of a file name */ #define USER_NAME_LEN 128 /* max length of a user name */ -#define ENV_LEN 50 /* max length of an env variable name */ +#define PATH_LEN 256 /* max length of a file path */ #define MAX_MSG 150 /* max length of a log message */ @@ -109,18 +134,13 @@ * during system boot */ /* *** behavior *** */ -#define SERIAL_QUEUE_MAX 30 /* if serial queue contains this number of entries, - * the next serial job to be executed will be run - * non-serially each time a serial job is added */ -#define SERIAL_INITIAL_SIZE 10 /* initial number of possible serial job. If - * more jobs have to be in queue simultaneously, - * fcron will have to calloc() more memory */ -#define SERIAL_GROW_SIZE 10 /* this is the number of entries that will be - * added to serial queue each time it has to grow - * up */ -#define SERIAL_ONCE 1 /* can a job be several times in the serial queue at +#define SERIAL_ONCE 0 /* can a job be several times in the serial queue at * the same moment ? */ +#define LAVG_ONCE 1 /* can a job be several times in the lavg queue at + * the same moment ? */ + +#define LAVG_SLEEP 30 /* the time we sleep when some jobs are in lavg queue */ /* Syslog facility and priorities messages will be logged to (see syslog(3)) */ -- 2.40.0