Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scord
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eu
ADMIRE
scord
Commits
fe41a711
Commit
fe41a711
authored
11 months ago
by
Ramon Nou
Browse files
Options
Downloads
Patches
Plain Diff
Solved some issues with systemd
parent
2676e81d
No related branches found
No related tags found
1 merge request
!126
Resolve "Root issues and stage-out with SPANK"
Pipeline
#4447
failed
11 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/adhoc_services.d/gekkofs.sh
+3
-3
3 additions, 3 deletions
plugins/adhoc_services.d/gekkofs.sh
plugins/slurm/scord_epilog.sh.in
+2
-2
2 additions, 2 deletions
plugins/slurm/scord_epilog.sh.in
with
5 additions
and
5 deletions
plugins/adhoc_services.d/gekkofs.sh
+
3
−
3
View file @
fe41a711
...
...
@@ -15,8 +15,8 @@ if [ "$1" == "start" ]; then
datadir
=
$7
mountdir
=
$9
unset
SLURM_CPU_BIND SLURM_CPU_BIND_LIST SLURM_CPU_BIND_TYPE SLURM_CPU_BIND_VERBOSE
srun
-N
$num_nodes
-n
$num_nodes
--oversubscribe
--cpus-per-task
=
1
--mem-per-cpu
=
1
--export
=
ALL bash
-c
"mkdir -p
$mountdir
; mkdir -p
$datadir
"
srun
-N
$num_nodes
-n
$num_nodes
--oversubscribe
--cpus-per-task
=
4
--mem-per-cpu
=
1
--export
=
ALL bash
-c
"gkfs_daemon --rootdir
$datadir
--mountdir
$mountdir
"
&
srun
-N
$num_nodes
-n
$num_nodes
--oversubscribe
--overlap
--cpus-per-task
=
1
--mem-per-cpu
=
1
--export
=
ALL bash
-c
"mkdir -p
$mountdir
; mkdir -p
$datadir
"
srun
-N
$num_nodes
-n
$num_nodes
--oversubscribe
--overlap
--cpus-per-task
=
4
--mem-per-cpu
=
1
--export
=
ALL bash
-c
"gkfs_daemon --rootdir
$datadir
--mountdir
$mountdir
"
&
sleep
4
elif
[
"
$1
"
==
"stop"
]
;
then
echo
"Stopping GEKKOFS"
...
...
@@ -28,7 +28,7 @@ elif [ "$1" == "stop" ]; then
exit
0
fi
unset
SLURM_CPU_BIND SLURM_CPU_BIND_LIST SLURM_CPU_BIND_TYPE SLURM_CPU_BIND_VERBOSE
srun
-N
$num_nodes
-n
$num_nodes
--oversubscribe
--cpus-per-task
=
1
--mem-per-cpu
=
1 pkill
-9
gkfs_daemon
srun
-N
$num_nodes
-n
$num_nodes
--overlap
--oversubscribe
--cpus-per-task
=
1
--mem-per-cpu
=
1
--export
=
ALL bash
-c
"
pkill -9 gkfs_daemon
"
elif
[
"
$1
"
==
"expand"
]
;
then
echo
"Expand command"
elif
[
"
$1
"
==
"shrink"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
plugins/slurm/scord_epilog.sh.in
+
2
−
2
View file @
fe41a711
...
...
@@ -108,8 +108,8 @@ CARGO_CONFIG_FILE=$CONFIG_DIRECTORY/$CARGO_ID.cfg
CARGO_SERVICE_NAME
=
$(
systemd-escape
--template
cargo@.service
"
$CARGO_ID
"
)
echo
"Shutting down Cargo data stager for job
$SLURM_JOB_ID
(user:
$SLURM_JOB_USER
)"
if
!
run_as
"
$SLURM_JOB_USER
"
systemctl
--user
stop
"
$CARGO_SERVICE_NAME
"
;
then
CUID
=
$(
id
-u
$SLURM_JOB_USER
)
if
!
run_as
"
$SLURM_JOB_USER
"
DBUS_SESSION_BUS_ADDRESS
=
unix:path
=
/run/user/
$CUID
/bus
systemctl
--user
stop
"
$CARGO_SERVICE_NAME
"
;
then
exit
1
fi
...
...
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