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
148562d9
Commit
148562d9
authored
21 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in slurmd -c handling of shared memory deletion.
parent
07db47ee
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
NEWS
+4
-1
4 additions, 1 deletion
NEWS
src/slurmd/shm.c
+6
-7
6 additions, 7 deletions
src/slurmd/shm.c
with
10 additions
and
8 deletions
NEWS
+
4
−
1
View file @
148562d9
This file describes changes in recent versions of SLURM. It primarily
documents those changes that are of interest to users and admins.
* Changes in SLURM 0.3.0-pre3
(not yet tagged or built)
* Changes in SLURM 0.3.0-pre3
=============================
-- Fixes for reported problems:
- slurm/328: Slurmd was restarting with a new shared memory segment and
losing track of jobs
- slurm/329: Job processing may be left running when one task dies
- slurm/333: Slurmd fails to launch a job and deletes a step, due to
a race condition in shared memory management
- slurm/334: Slurmd was getting a segv due to a race condition in shared
...
...
@@ -35,6 +36,8 @@ documents those changes that are of interest to users and admins.
-- Insure proper enforcement of node sharing by job
-- Treat lack of SpoolDir or StateSaveDir as a fatal error
-- Quickstart.html guide expanded
-- Increase maximum jobs steps per node from 16 to 64
-- Delete correct shared memory segment on slurmd -c (clean start)
* Changes in SLURM 0.3.0-pre2
=============================
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/shm.c
+
6
−
7
View file @
148562d9
...
...
@@ -73,8 +73,7 @@
/* We use Chris Dunlap's POSIX semaphore implementation if necessary */
#include
"src/slurmd/semaphore.h"
#define MAX_JOB_STEPS 16
#define MAX_BATCH_JOBS 128
#define MAX_JOB_STEPS 64
#define MAX_TASKS 1024
#define SHM_LOCKNAME "/.slurm.lock"
...
...
@@ -200,7 +199,7 @@ shm_fini(void)
slurmd_shm
=
NULL
;
if
(
destroy
&&
(
shmctl
(
shmid
,
IPC_RMID
,
NULL
)
<
0
))
{
error
(
"
shmctl: %m"
);
error
(
"
Can't delete shm segment (%d): %m"
,
shmid
);
goto
error
;
}
_shm_unlock
();
...
...
@@ -239,10 +238,10 @@ shm_cleanup(void)
* region.
*/
id
=
shmget
(
key
,
1
,
0
);
}
}
if
((
id
>
0
)
&&
(
shmctl
(
shm
id
,
IPC_RMID
,
NULL
)
<
0
))
{
error
(
"
Unable to
destroy existing shm segment
"
);
if
((
id
>
0
)
&&
(
shmctl
(
id
,
IPC_RMID
,
NULL
)
<
0
))
{
error
(
"
Can't
destroy existing shm segment
(%d): %m"
,
id
);
}
}
...
...
@@ -961,7 +960,7 @@ _shm_attach()
shmid
,
(
int
)(
shmi
.
shm_segsz
/
1024
),
(
sizeof
(
slurmd_shm_t
)
/
1024
));
error
(
"You probably need to run with `-c' "
"or just delete old segment."
);
"or just delete old segment
(see `ipcrm')
."
);
slurm_seterrno_ret
(
EINVAL
);
}
...
...
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