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
f8342b44
Commit
f8342b44
authored
18 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
svn merge -r9928:9938
https://eris.llnl.gov/svn/slurm/branches/slurm-1.1
parent
0b2f2b9f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+0
-2
0 additions, 2 deletions
NEWS
src/common/slurm_protocol_socket_implementation.c
+11
-6
11 additions, 6 deletions
src/common/slurm_protocol_socket_implementation.c
with
11 additions
and
8 deletions
NEWS
+
0
−
2
View file @
f8342b44
...
@@ -95,8 +95,6 @@ documents those changes that are of interest to users and admins.
...
@@ -95,8 +95,6 @@ documents those changes that are of interest to users and admins.
passthrough nodes to the allocation when creating a block.
passthrough nodes to the allocation when creating a block.
- BLUEGENE - Fix deadlock issue with starting and failing jobs at the same
- BLUEGENE - Fix deadlock issue with starting and failing jobs at the same
time
time
- Make connect() non-blocking and poll to avoid possibly very long default
timeout.
* Changes in SLURM 1.1.17
* Changes in SLURM 1.1.17
=========================
=========================
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_protocol_socket_implementation.c
+
11
−
6
View file @
f8342b44
...
@@ -565,28 +565,33 @@ extern int _slurm_getsockname (int __fd, struct sockaddr * __addr,
...
@@ -565,28 +565,33 @@ extern int _slurm_getsockname (int __fd, struct sockaddr * __addr,
extern
int
_slurm_connect
(
int
__fd
,
struct
sockaddr
const
*
__addr
,
extern
int
_slurm_connect
(
int
__fd
,
struct
sockaddr
const
*
__addr
,
socklen_t
__len
)
socklen_t
__len
)
{
{
#if 1
return
connect
(
__fd
,
__addr
,
__len
)
;
#else
/* From "man connect": Note that for IP sockets the timeout
/* From "man connect": Note that for IP sockets the timeout
* may be very long when syncookies are enabled on the server.
* may be very long when syncookies are enabled on the server.
*
*
* Timeouts in excess of 3 minutes have been observed, resulting
* Timeouts in excess of 3 minutes have been observed, resulting
* in serious problems for slurmctld. Making the connect call
* in serious problems for slurmctld. Making the connect call
* non-blocking and polling seems to fix the problem. */
* non-blocking and polling seems to fix the problem on Linux.
* It fails on AIX. */
int
rc
=
-
1
,
flags
;
int
rc
=
-
1
,
flags
;
flags
=
fcntl
(
__fd
,
F_GETFL
);
flags
=
fcntl
(
__fd
,
F_GETFL
);
fcntl
(
__fd
,
F_SETFL
,
flags
|
O_NONBLOCK
);
fcntl
(
__fd
,
F_SETFL
,
flags
|
O_NONBLOCK
);
rc
=
connect
(
__fd
,
__addr
,
__len
)
;
rc
=
connect
(
__fd
,
__addr
,
__len
);
if
((
rc
==
-
1
)
if
((
rc
==
-
1
)
&&
(
errno
==
EINPROGRESS
))
{
&&
((
errno
==
EINPROGRESS
)
||
(
errno
==
EALREADY
)))
{
struct
pollfd
ufds
;
struct
pollfd
ufds
;
ufds
.
fd
=
__fd
;
ufds
.
fd
=
__fd
;
ufds
.
events
=
POLLOUT
;
ufds
.
events
=
POLLOUT
;
ufds
.
revents
=
0
;
ufds
.
revents
=
0
;
poll
(
&
ufds
,
1
,
5000
);
/* 5 sec max wait */
poll
(
&
ufds
,
1
,
5000
);
/* 5 sec max wait */
rc
=
connect
(
__fd
,
__addr
,
__len
)
;
if
(
ufds
.
revents
==
POLLOUT
)
rc
=
connect
(
__fd
,
__addr
,
__len
);
}
}
fcntl
(
__fd
,
F_SETFL
,
flags
);
fcntl
(
__fd
,
F_SETFL
,
flags
);
return
rc
;
return
rc
;
#endif
}
}
/* Put the address of the peer connected to socket FD into *ADDR
/* Put the address of the peer connected to socket FD into *ADDR
...
...
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