Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
a0f85d90
Commit
a0f85d90
authored
10 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes
Put things in alphabetic order. Fix extern definition to be more clear.
parent
97fc2298
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/slurmctld/controller.c
+20
-23
20 additions, 23 deletions
src/slurmctld/controller.c
src/slurmctld/slurmctld.h
+1
-0
1 addition, 0 deletions
src/slurmctld/slurmctld.h
src/slurmctld/statistics.c
+1
-3
1 addition, 3 deletions
src/slurmctld/statistics.c
with
22 additions
and
26 deletions
src/slurmctld/controller.c
+
20
−
23
View file @
a0f85d90
...
...
@@ -163,38 +163,38 @@ log_options_t log_opts = LOG_OPTS_INITIALIZER;
log_options_t
sched_log_opts
=
SCHEDLOG_OPTS_INITIALIZER
;
/* Global variables */
int
accounting_enforce
=
0
;
int
association_based_accounting
=
0
;
void
*
acct_db_conn
=
NULL
;
int
batch_sched_delay
=
3
;
int
bg_recover
=
DEFAULT_RECOVER
;
uint32_t
cluster_cpus
=
0
;
time_t
last_proc_req_start
=
0
;
bool
ping_nodes_now
=
false
;
int
sched_interval
=
60
;
char
*
slurmctld_cluster_name
=
NULL
;
/* name of cluster */
slurmctld_config_t
slurmctld_config
;
int
bg_recover
=
DEFAULT_RECOVER
;
char
*
slurmctld_cluster_name
=
NULL
;
/* name of cluster */
void
*
acct_db_conn
=
NULL
;
int
accounting_enforce
=
0
;
int
association_based_accounting
=
0
;
bool
ping_nodes_now
=
false
;
uint32_t
cluster_cpus
=
0
;
int
with_slurmdbd
=
0
;
bool
want_nodes_reboot
=
true
;
int
batch_sched_delay
=
3
;
int
sched_interval
=
60
;
int
slurmctld_primary
=
1
;
/* Next used for stats/diagnostics */
diag_stats_t
slurmctld_diag_stats
;
int
slurmctld_primary
=
1
;
bool
want_nodes_reboot
=
true
;
int
with_slurmdbd
=
0
;
/* Local variables */
static
pthread_t
assoc_cache_thread
=
(
pthread_t
)
0
;
static
int
daemonize
=
DEFAULT_DAEMONIZE
;
static
int
debug_level
=
0
;
static
char
*
debug_logfile
=
NULL
;
static
bool
dump_core
=
false
;
static
char
*
debug_logfile
=
NULL
;
static
bool
dump_core
=
false
;
static
int
job_sched_cnt
=
0
;
static
uint32_t
max_server_threads
=
MAX_SERVER_THREADS
;
static
time_t
next_stats_reset
=
0
;
static
int
new_nice
=
0
;
static
char
node_name
[
MAX_SLURM_NAME
];
static
int
recover
=
DEFAULT_RECOVER
;
static
pthread_mutex_t
sched_cnt_mutex
=
PTHREAD_MUTEX_INITIALIZER
;
static
pthread_cond_t
server_thread_cond
=
PTHREAD_COND_INITIALIZER
;
static
pid_t
slurmctld_pid
;
static
char
*
slurm_conf_filename
;
static
pthread_t
assoc_cache_thread
=
(
pthread_t
)
0
;
static
pthread_mutex_t
sched_cnt_mutex
=
PTHREAD_MUTEX_INITIALIZER
;
static
int
job_sched_cnt
=
0
;
static
char
*
slurm_conf_filename
;
/*
* Static list of signals to block in this process
...
...
@@ -235,9 +235,6 @@ inline static void _usage(char *prog_name);
static
bool
_valid_controller
(
void
);
static
bool
_wait_for_server_thread
(
void
);
time_t
last_proc_req_start
=
0
;
time_t
next_stats_reset
=
0
;
/* main - slurmctld main function, start various threads and process RPCs */
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/slurmctld.h
+
1
−
0
View file @
a0f85d90
...
...
@@ -201,6 +201,7 @@ typedef struct diag_stats {
uint32_t
bf_active
;
}
diag_stats_t
;
extern
time_t
last_proc_req_start
;
extern
diag_stats_t
slurmctld_diag_stats
;
extern
slurmctld_config_t
slurmctld_config
;
extern
int
bg_recover
;
/* state recovery mode */
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/statistics.c
+
1
−
3
View file @
a0f85d90
...
...
@@ -44,14 +44,12 @@
#include
"src/slurmctld/agent.h"
#include
"src/slurmctld/slurmctld.h"
#include
"src/common/list.h"
#include
"src/common/pack.h"
#include
"src/common/xstring.h"
#include
"src/common/list.h"
extern
int
retry_list_size
(
void
);
extern
time_t
last_proc_req_start
;
/* Pack all scheduling statistics */
extern
void
pack_all_stat
(
int
resp
,
char
**
buffer_ptr
,
int
*
buffer_size
,
uint16_t
protocol_version
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment