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
1027de07
Commit
1027de07
authored
13 years ago
by
Morris Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add uptime to "slurmd -C" output
parent
cd6dff5f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man8/slurmd.8
+2
-2
2 additions, 2 deletions
doc/man/man8/slurmd.8
src/slurmd/slurmd/slurmd.c
+9
-1
9 additions, 1 deletion
src/slurmd/slurmd/slurmd.c
with
11 additions
and
3 deletions
doc/man/man8/slurmd.8
+
2
−
2
View file @
1027de07
.TH SLURMD "8" "March 201
0
" "slurmd 2.
2
" "Slurm components"
.TH SLURMD "8" "March 201
2
" "slurmd 2.
4
" "Slurm components"
.SH "NAME"
slurmd \- The compute node daemon for SLURM.
...
...
@@ -20,7 +20,7 @@ abnormally.
.TP
\fB\-C\fR
Print actual hardware configuration and exit. The format of output is the same
as used in \fBslurm.conf\fR to describe a node's configuration.
as used in \fBslurm.conf\fR to describe a node's configuration
plus it's uptime
.
.TP
\fB\-d <file>\fR
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmd/slurmd.c
+
9
−
1
View file @
1027de07
...
...
@@ -1068,6 +1068,7 @@ _destroy_conf(void)
static
void
_print_config
(
void
)
{
int
days
,
hours
,
mins
,
secs
;
char
name
[
128
];
gethostname_short
(
name
,
sizeof
(
name
));
...
...
@@ -1086,8 +1087,15 @@ _print_config(void)
get_memory
(
&
conf
->
real_memory_size
);
get_tmp_disk
(
&
conf
->
tmp_disk_space
,
"/tmp"
);
printf
(
"RealMemory=%u TmpDisk=%u
\n
"
,
printf
(
"RealMemory=%u TmpDisk=%u
"
,
conf
->
real_memory_size
,
conf
->
tmp_disk_space
);
get_up_time
(
&
conf
->
up_time
);
secs
=
conf
->
up_time
%
60
;
mins
=
(
conf
->
up_time
/
60
)
%
60
;
hours
=
(
conf
->
up_time
/
3600
)
%
24
;
days
=
(
conf
->
up_time
/
86400
);
printf
(
"UpTime=%u-%2.2u:%2.2u:%2.2u
\n
"
,
days
,
hours
,
mins
,
secs
);
}
static
void
...
...
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