From 1c8368eb262270da4a77be0bb75d6b0a623b30cf Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Tue, 16 Mar 2004 20:26:00 +0000 Subject: [PATCH] Set the maximum agent thread based upon the slurmctld.h parameter for MAX_SERVER_THREADS and increase that value from 50 to 60 --- src/slurmctld/agent.h | 3 ++- src/slurmctld/slurmctld.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slurmctld/agent.h b/src/slurmctld/agent.h index f005a051e63..d656616e4d9 100644 --- a/src/slurmctld/agent.h +++ b/src/slurmctld/agent.h @@ -36,7 +36,8 @@ * slurmctld, 0 for function call */ #define AGENT_THREAD_COUNT 10 /* maximum active threads per agent */ #define COMMAND_TIMEOUT 10 /* command requeue or error, seconds */ -#define MAX_AGENT_CNT 7 /* maximum simultaneous agents, note +#define MAX_AGENT_CNT (MAX_SERVER_THREADS / (AGENT_THREAD_COUNT + 2)) + /* maximum simultaneous agents, note * total thread count is product of * MAX_AGENT_CNT and * (AGENT_THREAD_COUNT + 2) */ diff --git a/src/slurmctld/slurmctld.h b/src/slurmctld/slurmctld.h index 1f63b601fac..d5f2a9e4252 100644 --- a/src/slurmctld/slurmctld.h +++ b/src/slurmctld/slurmctld.h @@ -75,7 +75,7 @@ * GENERAL CONFIGURATION parameters and data structures \*****************************************************************************/ /* Maximum parallel threads to service incoming RPCs */ -#define MAX_SERVER_THREADS 50 +#define MAX_SERVER_THREADS 60 /* Perform full slurmctld's state every PERIODIC_CHECKPOINT seconds */ #define PERIODIC_CHECKPOINT 300 -- GitLab