<div dir="ltr">Dear Brian,<div><br>Thanks for the hints, I think you are correctly pointing at some network connection issue. I've disabled firewalld on the control host, but that unfortunately did not help. The processes stuck in CLOSE-WAIT suggest indeed that network connections are not properly terminated.</div><div>I've tried to adjust some network settings based on the suggestions for high throughput environments, but this didn't help either.</div><div>I've also updated to 23.11.2, which also did not fix the problem.</div><div>I am able to reproduce the issue by swamping a node with array jobs (128 jobs per node). This results in many of these jobs no longer being tracked correctly by the scheduler. Output for these jobs is missing and hundreds of slurmd connections are stuck in CLOSE-WAIT.</div><div><br></div><div>With slurmd at 23.02.7 and slurmctld and slurmdbd at 23.11.2 the problem does not show up. </div><div>BTW I discovered that the job submission hosts must be at the same level as the compute nodes. Having the submission hosts still at 23.11 resulted in startup failures for jobs using Intel MPI. For the record the error message I got whas:<br>[mpiexec@node24] check_exit_codes (../../../../../src/pm/i_hydra/libhydra/demux/hydra_demux_poll.c:117): unable to run bstrap_proxy on node24 (pid 1909692, exit code 65280)<br>[mpiexec@node24] poll_for_event (../../../../../src/pm/i_hydra/libhydra/demux/hydra_demux_poll.c:159): check exit codes error<br>[mpiexec@node24] HYD_dmx_poll_wait_for_proxy_event (../../../../../src/pm/i_hydra/libhydra/demux/hydra_demux_poll.c:212): poll for event error<br>[mpiexec@node24] HYD_bstrap_setup (../../../../../src/pm/i_hydra/libhydra/bstrap/src/intel/i_hydra_bstrap.c:1061): error waiting for event<br>[mpiexec@node24] HYD_print_bstrap_setup_error_message (../../../../../src/pm/i_hydra/mpiexec/intel/i_mpiexec.c:1027): error setting up the bootstrap proxies<br>[mpiexec@node24] Possible reasons:<br>[mpiexec@node24] 1. Host is unavailable. Please check that all hosts are available.<br>[mpiexec@node24] 2. Cannot launch hydra_bstrap_proxy or it crashed on one of the hosts. Make sure hydra_bstrap_proxy is available on all hosts and it has right permissions.<br>[mpiexec@node24] 3. Firewall refused connection. Check that enough ports are allowed in the firewall and specify them with the I_MPI_PORT_RANGE variable.<br>[mpiexec@node24] 4. slurm bootstrap cannot launch processes on remote host. You may try using -bootstrap option to select alternative launcher.<br></div><div><br></div><div>I spent a whole day debugging the issue and could not find any clue what was causing this. OpenMPI jobs work fine. Finally I discovered that making sure the job submission hosts and the compute nodes are at the same Slurm level fixes the issue.<br></div><div><br></div><div>For now we'll stay in this configuration, to prevent having to get rid of all running and waiting jobs for a slurmctld downgrade. I'll test new Slurm 23.11 releases when they appear to see if that fixes the issue.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Fokke</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 23 jan 2024 om 18:37 schreef Brian Haymore <<a href="mailto:brian.haymore@utah.edu">brian.haymore@utah.edu</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg8837260145993903960">
<div dir="ltr">
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(0,0,0)">Do you have a firewall between the slurmd and the slurmctld daemons? If yes, do you know what kind of idle timeout that firewall has for expiring idle sessions? I ran into something
somewhat similar but for me it was between the slurmctld and slurmdbd where a recent change they made had one direction between those two daemons left idle unless certain operations occurred and we did have a firewall device between them that was expiring
sessions. In our case 23.11.1 brought a fix for that specific issue for us. I never had issues between slurmctld and slurmd (though the firewall is not between those two layers).</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-6979801710142894011Signature">
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Tahoma,sans-serif,serif,EmojiFont;font-size:13.32px;color:rgb(36,36,36);background-color:white">--</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Tahoma,sans-serif,serif,EmojiFont;font-size:13.32px;color:rgb(36,36,36);background-color:white">Brian D. Haymore</span><br>
<span style="font-family:Tahoma,sans-serif,serif,EmojiFont;font-size:13.32px;color:rgb(36,36,36);background-color:white">University of Utah</span><br>
<span style="font-family:Tahoma,sans-serif,serif,EmojiFont;font-size:13.32px;color:rgb(36,36,36);background-color:white">Center for High Performance Computing</span><br>
<span style="font-family:Tahoma,sans-serif,serif,EmojiFont;font-size:13.32px;color:rgb(36,36,36);background-color:white">155 South 1452 East RM 405</span><br>
<span style="font-family:Tahoma,sans-serif,serif,EmojiFont;font-size:13.32px;color:rgb(36,36,36);background-color:white">Salt Lake City, Ut 84112</span><br>
<span style="font-family:Tahoma,sans-serif,serif,EmojiFont;font-size:13.32px;color:rgb(36,36,36);background-color:white">Phone: 801-558-1150</span><br>
<span style="font-family:Tahoma,sans-serif;font-size:13.32px;background-color:white"><a href="http://bit.ly/1HO1N2C" rel="noopener noreferrer" style="margin:0px;background-color:white;text-align:left" target="_blank">http://bit.ly/1HO1N2C</a></span></div>
</div>
<div id="m_-6979801710142894011appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-6979801710142894011divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> slurm-users <<a href="mailto:slurm-users-bounces@lists.schedmd.com" target="_blank">slurm-users-bounces@lists.schedmd.com</a>> on behalf of Fokke Dijkstra <<a href="mailto:f.dijkstra@rug.nl" target="_blank">f.dijkstra@rug.nl</a>><br>
<b>Sent:</b> Tuesday, January 23, 2024 4:00 AM<br>
<b>To:</b> <a href="mailto:slurm-users@lists.schedmd.com" target="_blank">slurm-users@lists.schedmd.com</a> <<a href="mailto:slurm-users@lists.schedmd.com" target="_blank">slurm-users@lists.schedmd.com</a>><br>
<b>Subject:</b> [slurm-users] Issues with Slurm 23.11.1</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear all,<br>
<br>
Since the upgrade from Slurm 22.05 to 23.11.1 we are having problems with the communication between the slurmctld and slurmd processes.<br>
We are running a cluster with 183 nodes and almost 19000 cores. Unfortunately some nodes are in a different network preventing full internode communication. A network topology and setting TopologyParam RouteTree have been used to make sure no slurmd communication
happens between nodes on different networks.<br>
<br>
In the new Slurm version we see the following issues, which did not appear in 22.05:<br>
<br>
1. slurmd processes acquire many network connections in CLOSE-WAIT (or CLOSE_WAIT depending on the tool used) causing the processes to hang, when trying to restart slurmd.<br>
<br>
When checking for CLOSE-WAIT processes we see the following behaviour:<br>
Recv-Q Send-Q Local Address:Port Peer Address:Port Process
<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58572" target="_blank">
10.5.0.43:58572</a> users:(("slurmd",pid=1930095,fd=72),("slurmd",pid=1930067,fd=72))<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58284" target="_blank">
10.5.0.43:58284</a> users:(("slurmd",pid=1930095,fd=8),("slurmd",pid=1930067,fd=8)) <br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58186" target="_blank">
10.5.0.43:58186</a> users:(("slurmd",pid=1930095,fd=22),("slurmd",pid=1930067,fd=22))<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58592" target="_blank">
10.5.0.43:58592</a> users:(("slurmd",pid=1930095,fd=76),("slurmd",pid=1930067,fd=76))<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58338" target="_blank">
10.5.0.43:58338</a> users:(("slurmd",pid=1930095,fd=19),("slurmd",pid=1930067,fd=19))<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58568" target="_blank">
10.5.0.43:58568</a> users:(("slurmd",pid=1930095,fd=68),("slurmd",pid=1930067,fd=68))<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58472" target="_blank">
10.5.0.43:58472</a> users:(("slurmd",pid=1930095,fd=69),("slurmd",pid=1930067,fd=69))<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58486" target="_blank">
10.5.0.43:58486</a> users:(("slurmd",pid=1930095,fd=38),("slurmd",pid=1930067,fd=38))<br>
1 0 <a href="http://10.5.2.40:6818" target="_blank">10.5.2.40:6818</a> <a href="http://10.5.0.43:58316" target="_blank">
10.5.0.43:58316</a> users:(("slurmd",pid=1930095,fd=29),("slurmd",pid=1930067,fd=29))<br>
<br>
The first IP address is that of the compute node, the second that of the node running slurmctld. The nodes can communicate using these IP addresses just fine.<br>
<br>
2. slurmd cannot be properly restarted<br>
[2024-01-18T10:45:26.589] slurmd version 23.11.1 started<br>
[2024-01-18T10:45:26.593] error: Error binding slurm stream socket: Address already in use<br>
[2024-01-18T10:45:26.593] fatal: Unable to bind listen port (6818): Address already in use<br>
<br>
This is probably because of the processes being in CLOSE-WAIT, which can only be killed using signal -9.<br>
<br>
3. We see jobs stuck in completing CG state, probably due to communication issues between slurmctld and slurmd. The slurmctld sends repeated kill requests but those do not seem to be acknowledged by the client. This happens more often in large job arrays, or
generally when many jobs start at the same time. However, this could be just a biased observation (i.e., it is more noticeable on large job arrays because there are more jobs to fail in the first place).<br>
<br>
<div>4. Since the new version we also see messages like:<br>
[2024-01-17T09:58:48.589] error: Failed to kill program loading user environment<br>
[2024-01-17T09:58:48.590] error: Failed to load current user environment variables<br>
[2024-01-17T09:58:48.590] error: _get_user_env: Unable to get user's local environment, running only with passed environment<br>
The effect of this is that the users run with the wrong environment and can’t load the modules for the software that is needed by their jobs. This leads to many job failures.<br>
<br>
The issue appears to be somewhat similar to the one described at: <a href="https://bugs.schedmd.com/show_bug.cgi?id=18561" target="_blank">
https://bugs.schedmd.com/show_bug.cgi?id=18561</a><br>
In that case the site downgraded the slurmd clients to 22.05 which got rid of the problems.<br>
We’ve now downgraded the slurmd on the compute nodes to 23.02.7 which also seems to be a workaround for the issue.<br>
<br>
Does anyone know of a better solution?<br>
<div><br>
</div>
<div>Kind regards,</div>
<div><br>
</div>
<div>Fokke Dijkstra</div>
<div><br>
</div>
<span>-- </span><br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">Fokke Dijkstra <a href="mailto:f.dijkstra@rug.nl" target="_blank">
<f.dijkstra@rug.nl></a> <br>
Team High Performance Computing</div>
<div dir="ltr">Center for Information Technology, University of Groningen <br>
Postbus 11044, 9700 CA Groningen, The Netherlands <br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Fokke Dijkstra <a href="mailto:f.dijkstra@rug.nl" target="_blank"><f.dijkstra@rug.nl></a>
<br>Team High Performance Computing</div><div dir="ltr">Center for Information Technology, University of Groningen
<br>Postbus 11044, 9700 CA Groningen, The Netherlands
<br><br>
</div></div></div></div>