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
c3d911ab
Commit
c3d911ab
authored
16 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
update description of how user environment is loaded and GetEnvTimeout
config parameter
parent
d24a2331
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/html/moab.shtml
+19
-7
19 additions, 7 deletions
doc/html/moab.shtml
with
19 additions
and
7 deletions
doc/html/moab.shtml
+
19
−
7
View file @
c3d911ab
...
@@ -198,18 +198,30 @@ that the user's environment on the execution host be loaded.
...
@@ -198,18 +198,30 @@ that the user's environment on the execution host be loaded.
Moab relies upon SLURM to perform this action, using the
Moab relies upon SLURM to perform this action, using the
<i>--get-user-env</i> option for the salloc, sbatch and srun commands.
<i>--get-user-env</i> option for the salloc, sbatch and srun commands.
The SLURM command then executes as user root a command of this sort
The SLURM command then executes as user root a command of this sort
as user root:
as user root:
</p>
<pre>
<pre>
/bin/su - <user> -c \
/bin/su - <user> -c \
"/bin/echo BEGIN; /bin/env; /bin/echo FINI"
"/bin/echo BEGIN; /bin/env; /bin/echo FINI"
</pre>
</pre>
While this command is executing within salloc, sbatch or srun,
<p> For typical batch jobs, the job transfer from Moab to
the Moab daemon is completely non-responsive.
SLURM is performed using <i>sbatch</i> and occurs instantaneously.
The environment is loadeded by a SLURM daemon (slurmd) when the
batch job begins execution.
For interactive jobs (<i>msub -I ...</i>), the job transfer
from Moab to SLURM can not be completed until the environment
variables are loaded, during which time the Moab daemon is
completely non-responsive.
To insure that Moab remains operational, SLURM will abort the above
To insure that Moab remains operational, SLURM will abort the above
command within a
few seconds
and look for a cache
file with the
command within a
configurable period of time
and look for a cache
user's environment and use that if found.
file with the
user's environment and use that if found.
Otherwise an error is reported to Moab.
Otherwise an error is reported to Moab.
We have provided a simple program that can be used to build
The time permitted for loading the current environment
before searching for a cache file is configurable using
the <i>GetEnvTimeout</i> parameter in SLURM's configuration
file, slurm.conf. A value of zero results in immediately
using the cache file. The default value is 2 seconds.</p>
<p>We have provided a simple program that can be used to build
cache files for users. The program can be found in the SLURM
cache files for users. The program can be found in the SLURM
distribution at <i>contribs/env_cache_builder.c</i>.
distribution at <i>contribs/env_cache_builder.c</i>.
This program can support a longer timeout than Moab, but
This program can support a longer timeout than Moab, but
...
@@ -247,6 +259,6 @@ Write the output to a file with the same name as the user in the
...
@@ -247,6 +259,6 @@ Write the output to a file with the same name as the user in the
<p class="footer"><a href="#top">top</a></p>
<p class="footer"><a href="#top">top</a></p>
<p style="text-align:center;">Last modified
23 April
2008</p>
<p style="text-align:center;">Last modified
10 July
2008</p>
<!--#include virtual="footer.txt"-->
<!--#include virtual="footer.txt"-->
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