Ticket 6194 - Compute nodes draining with "kill task failed" message
Summary: Compute nodes draining with "kill task failed" message
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: slurmd (show other tickets)
Version: 18.08.0
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Albert Gil
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2018-12-07 04:45 MST by David Baker
Modified: 2019-01-09 10:08 MST (History)
3 users (show)

See Also:
Site: OCF
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: Southampton University
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments
cgroup.conf (330 bytes, application/octet-stream)
2019-01-03 09:59 MST, David Baker
Details
dmesg (469.27 KB, application/octet-stream)
2019-01-03 09:59 MST, David Baker
Details
slurmd.log (22.19 KB, application/octet-stream)
2019-01-03 09:59 MST, David Baker
Details
cgroup.conf (330 bytes, application/octet-stream)
2019-01-03 10:06 MST, David Baker
Details
dmesg (469.27 KB, application/octet-stream)
2019-01-03 10:06 MST, David Baker
Details
slurmd.log (22.19 KB, application/octet-stream)
2019-01-03 10:06 MST, David Baker
Details

Note You need to log in before you can comment on or make changes to this ticket.
Description David Baker 2018-12-07 04:45:03 MST
Hello,

I wondered if you could please advise on compute nodes being drained by failed jobs...

We don't see this issue that much, however we we see it. It seems that sometimes a job failure can place a compute node in a drained state. I saw 4 compute nodes in this state this morning. In all cases we can clear the drained state and resume the compute node. Nevertheless, it would be good to understand why this is happening. Here is an extract from the slurmd logs on one of the affected nodes -- below...

Best regards,
David

[2018-12-06T13:02:12.776] launch task 236249.0 request from UID:8195 GID:205 HOST:10.13.32.71 PORT:38066
[2018-12-06T13:02:12.805] _run_prolog: run job script took usec=3
[2018-12-06T13:02:12.805] _run_prolog: prolog with lock for job 236249 ran for 0 seconds
[2018-12-06T13:02:12.820] [236249.0] task/cgroup: /slurm/uid_8195/job_236249: alloc=0MB mem.limit=193080MB memsw.limit=
unlimited
[2018-12-06T13:02:12.820] [236249.0] task/cgroup: /slurm/uid_8195/job_236249/step_0: alloc=0MB mem.limit=193080MB memsw
.limit=unlimited
[2018-12-06T13:06:38.248] error: slurm_receive_msg_and_forward: Zero Bytes were transmitted or received
[2018-12-06T13:06:38.258] error: service_connection: slurm_receive_msg: Zero Bytes were transmitted or received
[2018-12-06T13:16:38.058] error: slurm_receive_msg_and_forward: Zero Bytes were transmitted or received
[2018-12-06T13:16:38.068] error: service_connection: slurm_receive_msg: Zero Bytes were transmitted or received
[2018-12-06T13:16:42.001] [236249.0] error: *** STEP 236249.0 STEPD TERMINATED ON red383 AT 2018-12-06T13:16:42 DUE TO JOB NOT ENDING WITH SIGNALS ***
[2018-12-06T13:16:44.306] [236249.0] done with job
Comment 2 Albert Gil 2018-12-13 05:23:30 MST
Hi David,

Yes, some specific "job failures" can put the node into a draining state.
But please note that not the usual failures of a job (their error codes), but "failures related to the job management".

For example, your error "kill task failed" is one of them because the slurmstepd is trying to kill the task (probably because it reached some limit) but it can't. This means that slurm is not able to kill tasks in that node! So, it moves it to drain to avoid bigger/future problems on that node.

Usually, if slurmstepd was no able to kill the task (your case), if you ssh to the node and try to do it, you won't be able either. Probably because the process is stuck in some IO operation, but there are other (corner) cases like the one explained in bug 5913 comment 5 related to a bug in the Kernel on cgroups and kmem.

Also, although it's not your case, is probably worth to mention here that if the EpiLog in your slurm.conf returns a non-zero value, slurm will also drain that node.

Do you have any clue why slurm cannot kill process on some nodes sometimes in your cluster?
Maybe the filesystem on some nodes is not working properly?

Hope it helps,
Albert
Comment 3 Albert Gil 2018-12-27 01:49:31 MST
Hi David,
The comment 2 solved your question?

Regards,
Albert
Comment 4 Albert Gil 2018-12-28 06:49:17 MST
By the way David,

Besides the explanation on comment 2, the log that you provided seems to show that you could have some other problems.
It's strange to have both messages, the "JOB NOT ENDING WITH SIGNALS" and the "Zero Bytes were transmitted or received".
They are probably not related, but not totally sure.

Have you tested if you can kill the process that slurm can't?

If you wish you could send us more info so we could investigate it further.
For example we could start with the the slurm.conf, slurm logs, cgroup.conf and dmesg.


Regards,
Albert
Comment 5 David Baker 2019-01-03 02:16:29 MST
Hello Albert,


Thank you for your email. My apologies for the tardy reply -- we only started back after our Christmas and new year break yesterday.


Would it make best sense to wait for a node to be set to drain re "kill task failed" and then send you as much information as possible from that node? Alternatively, if you think our issues might be more general then I'm happy to take a random node and sent you the output/files that your suggested. I do agree that it appears odd that we are constantly generating odd messages on a routine basis.


Best regards,

David

________________________________
From: bugs@schedmd.com <bugs@schedmd.com>
Sent: 28 December 2018 13:49:17
To: Baker D.J.
Subject: [Bug 6194] Compute nodes draining with "kill task failed" message


Comment # 4<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c4&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=9t1yR8fYjCvmlkFJfyKt%2Fm%2BQDqX3nO9OfprKbnMNwf8%3D&reserved=0> on bug 6194<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=RuEbyvxJPkMaLjBz4yBronYzgz0aFnGKEOOqbNtulwY%3D&reserved=0> from Albert Gil<mailto:albert.gil@schedmd.com>

By the way David,

Besides the explanation on comment 2<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c2&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=KY9KMOZX%2FqmWx2UI3mPxbWDyk8cFMgecXWNNabZ3%2FZg%3D&reserved=0>, the log that you provided seems to show
that you could have some other problems.
It's strange to have both messages, the "JOB NOT ENDING WITH SIGNALS" and the
"Zero Bytes were transmitted or received".
They are probably not related, but not totally sure.

Have you tested if you can kill the process that slurm can't?

If you wish you could send us more info so we could investigate it further.
For example we could start with the the slurm.conf, slurm logs, cgroup.conf and
dmesg.


Regards,
Albert

________________________________
You are receiving this mail because:

  *   You reported the bug.
Comment 6 David Baker 2019-01-03 09:59:09 MST
Created attachment 8824 [details]
cgroup.conf

Hello Albert,


For the sake of the argument I have attached the files/output from one compute node that you requested in this email.


One interesting thought that is coming to mind is that we use the command "pkill -KILL -U $SLURM_JOB_UID" to kill processes in the epilog. Oddly enough I was doing some work on our PBS/Moab cluster today and noted that this pkill command does not always do the business as expected. It is sometimes necessary to club processes over the head with...


/usr/bin/killall -9 -u <user>


For example, I know that rsh sessions don't get successfully killed with the pkill command. In our slurm epilog we haven't yet activated the "killall" command and so I wonder if we really need to as a "belt and braces" approach. Currently in the epilog...


#
# ?? Left Over processes that do not kill
#
#LO=$(/bin/ps -u ${SLURM_JOB_USER} -o "pid=")
#   # wait a little while and check again
#   if [[ -n "$LO" ]] ; then
#       /bin/sleep 20
#       /usr/bin/killall -9 -u ${SLURM_JOB_USER}
#       /bin/sleep 10
#   fi


Whether we really need to go around the loop is a great question, however I wonder if we really need killall in operation. What are your thoughts?


Best regards,

David

________________________________
From: Baker D.J.
Sent: 03 January 2019 09:16
To: bugs@schedmd.com
Subject: Re: [Bug 6194] Compute nodes draining with "kill task failed" message


Hello Albert,


Thank you for your email. My apologies for the tardy reply -- we only started back after our Christmas and new year break yesterday.


Would it make best sense to wait for a node to be set to drain re "kill task failed" and then send you as much information as possible from that node? Alternatively, if you think our issues might be more general then I'm happy to take a random node and sent you the output/files that your suggested. I do agree that it appears odd that we are constantly generating odd messages on a routine basis.


Best regards,

David

________________________________
From: bugs@schedmd.com <bugs@schedmd.com>
Sent: 28 December 2018 13:49:17
To: Baker D.J.
Subject: [Bug 6194] Compute nodes draining with "kill task failed" message


Comment # 4<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c4&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=9t1yR8fYjCvmlkFJfyKt%2Fm%2BQDqX3nO9OfprKbnMNwf8%3D&reserved=0> on bug 6194<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=RuEbyvxJPkMaLjBz4yBronYzgz0aFnGKEOOqbNtulwY%3D&reserved=0> from Albert Gil<mailto:albert.gil@schedmd.com>

By the way David,

Besides the explanation on comment 2<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c2&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=KY9KMOZX%2FqmWx2UI3mPxbWDyk8cFMgecXWNNabZ3%2FZg%3D&reserved=0>, the log that you provided seems to show
that you could have some other problems.
It's strange to have both messages, the "JOB NOT ENDING WITH SIGNALS" and the
"Zero Bytes were transmitted or received".
They are probably not related, but not totally sure.

Have you tested if you can kill the process that slurm can't?

If you wish you could send us more info so we could investigate it further.
For example we could start with the the slurm.conf, slurm logs, cgroup.conf and
dmesg.


Regards,
Albert

________________________________
You are receiving this mail because:

  *   You reported the bug.
Comment 7 David Baker 2019-01-03 09:59:10 MST
Created attachment 8825 [details]
dmesg
Comment 8 David Baker 2019-01-03 09:59:10 MST
Created attachment 8826 [details]
slurm.conf
Comment 9 David Baker 2019-01-03 09:59:10 MST
Created attachment 8827 [details]
slurmd.log
Comment 10 David Baker 2019-01-03 10:06:10 MST
Created attachment 8829 [details]
cgroup.conf

Not sure if this was delivered on my first attempt..

________________________________
From: Baker D.J.
Sent: 03 January 2019 16:58
To: bugs@schedmd.com
Subject: Re: [Bug 6194] Compute nodes draining with "kill task failed" message


Hello Albert,


For the sake of the argument I have attached the files/output from one compute node that you requested in this email.


One interesting thought that is coming to mind is that we use the command "pkill -KILL -U $SLURM_JOB_UID" to kill processes in the epilog. Oddly enough I was doing some work on our PBS/Moab cluster today and noted that this pkill command does not always do the business as expected. It is sometimes necessary to club processes over the head with...


/usr/bin/killall -9 -u <user>


For example, I know that rsh sessions don't get successfully killed with the pkill command. In our slurm epilog we haven't yet activated the "killall" command and so I wonder if we really need to as a "belt and braces" approach. Currently in the epilog...


#
# ?? Left Over processes that do not kill
#
#LO=$(/bin/ps -u ${SLURM_JOB_USER} -o "pid=")
#   # wait a little while and check again
#   if [[ -n "$LO" ]] ; then
#       /bin/sleep 20
#       /usr/bin/killall -9 -u ${SLURM_JOB_USER}
#       /bin/sleep 10
#   fi


Whether we really need to go around the loop is a great question, however I wonder if we really need killall in operation. What are your thoughts?


Best regards,

David

________________________________
From: Baker D.J.
Sent: 03 January 2019 09:16
To: bugs@schedmd.com
Subject: Re: [Bug 6194] Compute nodes draining with "kill task failed" message


Hello Albert,


Thank you for your email. My apologies for the tardy reply -- we only started back after our Christmas and new year break yesterday.


Would it make best sense to wait for a node to be set to drain re "kill task failed" and then send you as much information as possible from that node? Alternatively, if you think our issues might be more general then I'm happy to take a random node and sent you the output/files that your suggested. I do agree that it appears odd that we are constantly generating odd messages on a routine basis.


Best regards,

David

________________________________
From: bugs@schedmd.com <bugs@schedmd.com>
Sent: 28 December 2018 13:49:17
To: Baker D.J.
Subject: [Bug 6194] Compute nodes draining with "kill task failed" message


Comment # 4<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c4&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=9t1yR8fYjCvmlkFJfyKt%2Fm%2BQDqX3nO9OfprKbnMNwf8%3D&reserved=0> on bug 6194<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=RuEbyvxJPkMaLjBz4yBronYzgz0aFnGKEOOqbNtulwY%3D&reserved=0> from Albert Gil<mailto:albert.gil@schedmd.com>

By the way David,

Besides the explanation on comment 2<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c2&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=KY9KMOZX%2FqmWx2UI3mPxbWDyk8cFMgecXWNNabZ3%2FZg%3D&reserved=0>, the log that you provided seems to show
that you could have some other problems.
It's strange to have both messages, the "JOB NOT ENDING WITH SIGNALS" and the
"Zero Bytes were transmitted or received".
They are probably not related, but not totally sure.

Have you tested if you can kill the process that slurm can't?

If you wish you could send us more info so we could investigate it further.
For example we could start with the the slurm.conf, slurm logs, cgroup.conf and
dmesg.


Regards,
Albert

________________________________
You are receiving this mail because:

  *   You reported the bug.
Comment 11 David Baker 2019-01-03 10:06:11 MST
Created attachment 8830 [details]
dmesg
Comment 12 David Baker 2019-01-03 10:06:11 MST
Created attachment 8831 [details]
slurm.conf
Comment 13 David Baker 2019-01-03 10:06:11 MST
Created attachment 8832 [details]
slurmd.log
Comment 14 David Baker 2019-01-04 05:06:56 MST
Hello Albert,


As an update, I also increased the debug level on a compute node and monitored the slurmd log file. Here's what I received...


[2019-01-04T11:50:41.459] debug3: in the service_connection
[2019-01-04T11:50:41.459] debug:  slurm_recv_timeout at 0 of 4, recv zero bytes
[2019-01-04T11:50:41.459] error: slurm_receive_msg_and_forward: Zero Bytes were transmitted or received
[2019-01-04T11:50:41.469] error: service_connection: slurm_receive_msg: Zero Bytes were transmitted or received
[2019-01-04T11:50:41.469] debug2: slurm_send_timeout: Socket no longer there
[2019-01-04T11:50:41.469] debug3: slurm_msg_sendto: peer has disappeared for msg_type=8001

I've seen SchedMD bug reports citing time mismatches across clusters (not true in this case) and issues with nodes down  (there aren't any down today).


Best regards,

David

________________________________
From: Baker D.J.
Sent: 03 January 2019 17:05
To: bugs@schedmd.com
Subject: [Bug 6194] Compute nodes draining with "kill task failed" message



Not sure if this was delivered on my first attempt..

________________________________
From: Baker D.J.
Sent: 03 January 2019 16:58
To: bugs@schedmd.com
Subject: Re: [Bug 6194] Compute nodes draining with "kill task failed" message


Hello Albert,


For the sake of the argument I have attached the files/output from one compute node that you requested in this email.


One interesting thought that is coming to mind is that we use the command "pkill -KILL -U $SLURM_JOB_UID" to kill processes in the epilog. Oddly enough I was doing some work on our PBS/Moab cluster today and noted that this pkill command does not always do the business as expected. It is sometimes necessary to club processes over the head with...


/usr/bin/killall -9 -u <user>


For example, I know that rsh sessions don't get successfully killed with the pkill command. In our slurm epilog we haven't yet activated the "killall" command and so I wonder if we really need to as a "belt and braces" approach. Currently in the epilog...


#
# ?? Left Over processes that do not kill
#
#LO=$(/bin/ps -u ${SLURM_JOB_USER} -o "pid=")
#   # wait a little while and check again
#   if [[ -n "$LO" ]] ; then
#       /bin/sleep 20
#       /usr/bin/killall -9 -u ${SLURM_JOB_USER}
#       /bin/sleep 10
#   fi


Whether we really need to go around the loop is a great question, however I wonder if we really need killall in operation. What are your thoughts?


Best regards,

David

________________________________
From: Baker D.J.
Sent: 03 January 2019 09:16
To: bugs@schedmd.com
Subject: Re: [Bug 6194] Compute nodes draining with "kill task failed" message


Hello Albert,


Thank you for your email. My apologies for the tardy reply -- we only started back after our Christmas and new year break yesterday.


Would it make best sense to wait for a node to be set to drain re "kill task failed" and then send you as much information as possible from that node? Alternatively, if you think our issues might be more general then I'm happy to take a random node and sent you the output/files that your suggested. I do agree that it appears odd that we are constantly generating odd messages on a routine basis.


Best regards,

David

________________________________
From: bugs@schedmd.com <bugs@schedmd.com>
Sent: 28 December 2018 13:49:17
To: Baker D.J.
Subject: [Bug 6194] Compute nodes draining with "kill task failed" message


Comment # 4<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c4&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=9t1yR8fYjCvmlkFJfyKt%2Fm%2BQDqX3nO9OfprKbnMNwf8%3D&reserved=0> on bug 6194<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=RuEbyvxJPkMaLjBz4yBronYzgz0aFnGKEOOqbNtulwY%3D&reserved=0> from Albert Gil<mailto:albert.gil@schedmd.com>

By the way David,

Besides the explanation on comment 2<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c2&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C631b227a838149b4b7eb08d66ccb4550%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=KY9KMOZX%2FqmWx2UI3mPxbWDyk8cFMgecXWNNabZ3%2FZg%3D&reserved=0>, the log that you provided seems to show
that you could have some other problems.
It's strange to have both messages, the "JOB NOT ENDING WITH SIGNALS" and the
"Zero Bytes were transmitted or received".
They are probably not related, but not totally sure.

Have you tested if you can kill the process that slurm can't?

If you wish you could send us more info so we could investigate it further.
For example we could start with the the slurm.conf, slurm logs, cgroup.conf and
dmesg.


Regards,
Albert

________________________________
You are receiving this mail because:

  *   You reported the bug.
Comment 16 Albert Gil 2019-01-04 10:29:04 MST
Hi David,

Hope that you had a nice Christmas!

I'm not sure about what do mean here:

> Would it make best sense to wait for a node to be set to drain re "kill task failed" and then send you as much information as possible from that node?

You mean that Slurm shouldn't set a node to drain but just notify you that kill task failed?
Killing tasks to enforce limits is an important part of Slurm, so if it is not able to do it in a node it shouldn't send jobs to it or jobs could fail there because resources/nodes are not clean enough to compute the new jobs... right?

Having random nodes to drain is for sure annoying, but if they are having issues they should be drained, right?
Maybe we could try to make this logic optional... but I don't think that it is a good idea because it leads to more run-time errors on jobs or even in Slurm?


Anyway, here some minor comments about your posts and files:

- CgroupReleaseAgentDir was deprecated in 17.02 because all its logic was moved into the code. It is ignored, so it's not any source of errors. Just to help you to clean up your config.
- I've removed some of the files that you uploaded because some had sensitive info was on them (AccountingStoragePass)

And much more important comments:

- The dmesg is reporting important issues. You are having OOM-Kills of the GPFS daemons (mmfsd):

[1100163.441182] Out of memory: Kill process 6944 (mmfsd) score 84 or sacrifice child
[1108875.119111] Out of memory: Kill process 175524 (mmfsd) score 83 or sacrifice child
[6338145.897425] Out of memory: Kill process 235070 (mmfsd) score 83 or sacrifice child
[6338147.307701] Out of memory: Kill process 235132 (mmfsd) score 83 or sacrifice child
[8617085.575858] Out of memory: Kill process 385324 (mmfsd) score 84 or sacrifice child
[8617087.061254] Out of memory: Kill process 385475 (mmfsd) score 84 or sacrifice child

- The dmesg is also reporting blocked tasks (most probably related to GPFS failures above):

[4918995.462947] INFO: task lmod:432196 blocked for more than 120 seconds.
[5176390.882349] INFO: task python:383436 blocked for more than 120 seconds.
[5176391.011690] INFO: task python:383437 blocked for more than 120 seconds.
[5176391.138793] INFO: task python:383438 blocked for more than 120 seconds.
[5176391.266053] INFO: task python:383439 blocked for more than 120 seconds.
[5176391.393032] INFO: task python:383440 blocked for more than 120 seconds.
[5176391.519995] INFO: task python:383441 blocked for more than 120 seconds.
[5176391.646977] INFO: task python:383442 blocked for more than 120 seconds.
[5176391.773907] INFO: task python:383443 blocked for more than 120 seconds.

- GPFS seems to be auto recovered from the OOM-Kills, so after a while probably tasks/process are responsive again.

- All this is consistent with my explanation in comment 2 (and your killing issues):
  - Some times your jobs are blocked because GPFS is not responding because is was oom-killed
  - Before it is responsive again, the job reached a time limit and slurm tries to kill it
  - A blocked process cannot be killed, so slurm fails killing it and drain the node (because it does has problems, jobs are blocked because GPFS is failling)

- Does your Epilog check if there is any job pending for that user before pkill -u?
  - In your slurm.conf your nodes are in "ExclusiveUser" or "Shared", so a user could have more than one job in a node, right? If you kill all the process of a user with "pkill -u" in a job epilog, you could be killing other jobs of that user running in that same node.
  - Why you think that you need this epilog killing? If you use cgroups, you shouldn't need to kill process manually.. you should trust slurm to do it! ;-)
  - Maybe you are interested on this: https://slurm.schedmd.com/pam_slurm_adopt.html


And finally, I'm still not sure about the "Zero Bytes were transmitted or received"...
But it is true that dmesg is also reporting some problems with the network:

[    558.722844] IPv6: ADDRCONF(NETDEV_UP): ib0: link is not ready
[    558.889943] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready
[3524609.458516] IPv6: ADDRCONF(NETDEV_UP): eno2: link is not ready
[3524609.465830] 8021q: adding VLAN 0 to HW filter on device eno2
[3533485.603921] 8021q: adding VLAN 0 to HW filter on device eno1
[3533491.627173] pps pps0: new PPS source ptp2
[3533491.636405] IPv6: ADDRCONF(NETDEV_UP): ib0: link is not ready
[3533491.660172] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready
[3536936.528962] 8021q: adding VLAN 0 to HW filter on device eno1
[3536942.559527] pps pps0: new PPS source ptp2
[3536942.566022] IPv6: ADDRCONF(NETDEV_UP): ib0: link is not ready
[3536942.578056] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready


Hope it helps!
Albert
Comment 17 Albert Gil 2019-01-08 02:10:55 MST
Hi David,

> And finally, I'm still not sure about the "Zero Bytes were transmitted or
> received"...
> But it is true that dmesg is also reporting some problems with the network:
> 
> [    558.722844] IPv6: ADDRCONF(NETDEV_UP): ib0: link is not ready
> [    558.889943] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready
> [3524609.458516] IPv6: ADDRCONF(NETDEV_UP): eno2: link is not ready
> [3524609.465830] 8021q: adding VLAN 0 to HW filter on device eno2
> [3533485.603921] 8021q: adding VLAN 0 to HW filter on device eno1
> [3533491.627173] pps pps0: new PPS source ptp2
> [3533491.636405] IPv6: ADDRCONF(NETDEV_UP): ib0: link is not ready
> [3533491.660172] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready
> [3536936.528962] 8021q: adding VLAN 0 to HW filter on device eno1
> [3536942.559527] pps pps0: new PPS source ptp2
> [3536942.566022] IPv6: ADDRCONF(NETDEV_UP): ib0: link is not ready
> [3536942.578056] IPv6: ADDRCONF(NETDEV_CHANGE): ib0: link becomes ready

As mentioned in bug 5443 comment 51, synchronization errors could also produce these "Zero Bytes were transmitted or received".
Is it possible that you are having this issue?


Albert
Comment 18 Albert Gil 2019-01-08 03:55:39 MST
Hi David,

> > Would it make best sense to wait for a node to be set to drain re "kill task failed" and then send you as much information as possible from that node?
> 
> You mean that Slurm shouldn't set a node to drain but just notify you that
> kill task failed?
> Killing tasks to enforce limits is an important part of Slurm, so if it is
> not able to do it in a node it shouldn't send jobs to it or jobs could fail
> there because resources/nodes are not clean enough to compute the new
> jobs... right?
> 
> Having random nodes to drain is for sure annoying, but if they are having
> issues they should be drained, right?
> Maybe we could try to make this logic optional... but I don't think that it
> is a good idea because it leads to more run-time errors on jobs or even in
> Slurm?

Regarding to this maybe you could also be interested in the following options in slurm.conf:

UnkillableStepProgram

  If the processes in a job step are determined to be unkillable for a period of time specified by the UnkillableStepTimeout variable, the program specified by UnkillableStepProgram will be executed. This program can be used to take special actions to clean up the unkillable processes and/or notify computer administrators. The program will be run SlurmdUser (usually "root") on the compute node. By default no program is run.

UnkillableStepTimeout

  The length of time, in seconds, that Slurm will wait before deciding that processes in a job step are unkillable (after they have been signaled with SIGKILL) and execute UnkillableStepProgram as described above. The default timeout value is 60 seconds. If exceeded, the compute node will be drained to prevent future jobs from being scheduled on the node.


Please let me know if we can close this ticket with the info given.

Hope it helps,
Albert
Comment 19 David Baker 2019-01-08 04:29:22 MST
Hi Albert,


Thank you for all your advice. Our 1 year contract is coming to an end very soon (10/01/2019) and so we'll need to decide whether to renew or not. We are meeting tomorrow to make some decision (pending support from the management if we decided to renew our contract). Will we still have access to the bug reports that we have generated if we decide not to renew?


With regard to the nodes drained with the "Kill task" message. I'm confident that these are nodes on which users have exceeded the available memory and consequently either a system or user process has been killed. The tail of the dmesg log appears to support this. Thank you for the advice regarding this issue -- I shall take a look at the slurm.conf options that you have outlined.


I suspect the "Zero Bytes were transmitted or received" issue will have to remain unresolved. The comments in the dmesg logs regarding the ib0 and eno2 links relate to the booting process. I'm aware of these and they only appear at the top of the logs.


Likewise I had read the bug report relating to the synchronization  issue, and I have over viewed the date on each of our compute nodes. All the dates are synchronized -- the only minor issue is that 4 of the nodes are reporting the time in UTC rather than GMT.

I think we are in a position to close this ticket, please.

Best regards,
David

________________________________
From: bugs@schedmd.com <bugs@schedmd.com>
Sent: 08 January 2019 10:55
To: Baker D.J.
Subject: [Bug 6194] Compute nodes draining with "kill task failed" message


Comment # 18<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194%23c18&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C26f74ac620c64170e9b708d67557d505%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=xyowQBIXhH2VgFRDF%2FhW5O4LW%2FV1V0Y09Vg7VzqhvGg%3D&reserved=0> on bug 6194<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.schedmd.com%2Fshow_bug.cgi%3Fid%3D6194&data=01%7C01%7Cd.j.baker%40soton.ac.uk%7C26f74ac620c64170e9b708d67557d505%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&sdata=q60YZKoV%2BMe7Z%2B9bkOD9t2%2FfkYFz%2BtsoYssC5Wou2NY%3D&reserved=0> from Albert Gil<mailto:albert.gil@schedmd.com>

Hi David,

> > Would it make best sense to wait for a node to be set to drain re "kill task failed" and then send you as much information as possible from that node?
>
> You mean that Slurm shouldn't set a node to drain but just notify you that
> kill task failed?
> Killing tasks to enforce limits is an important part of Slurm, so if it is
> not able to do it in a node it shouldn't send jobs to it or jobs could fail
> there because resources/nodes are not clean enough to compute the new
> jobs... right?
>
> Having random nodes to drain is for sure annoying, but if they are having
> issues they should be drained, right?
> Maybe we could try to make this logic optional... but I don't think that it
> is a good idea because it leads to more run-time errors on jobs or even in
> Slurm?

Regarding to this maybe you could also be interested in the following options
in slurm.conf:

UnkillableStepProgram

  If the processes in a job step are determined to be unkillable for a period
of time specified by the UnkillableStepTimeout variable, the program specified
by UnkillableStepProgram will be executed. This program can be used to take
special actions to clean up the unkillable processes and/or notify computer
administrators. The program will be run SlurmdUser (usually "root") on the
compute node. By default no program is run.

UnkillableStepTimeout

  The length of time, in seconds, that Slurm will wait before deciding that
processes in a job step are unkillable (after they have been signaled with
SIGKILL) and execute UnkillableStepProgram as described above. The default
timeout value is 60 seconds. If exceeded, the compute node will be drained to
prevent future jobs from being scheduled on the node.


Please let me know if we can close this ticket with the info given.

Hope it helps,
Albert

________________________________
You are receiving this mail because:

  *   You reported the bug.
Comment 20 Albert Gil 2019-01-08 10:06:04 MST
Hi David!

> Thank you for all your advice. Our 1 year contract is coming to an end very
> soon (10/01/2019) and so we'll need to decide whether to renew or not. We
> are meeting tomorrow to make some decision (pending support from the
> management if we decided to renew our contract).

I hope you decide to keep working with us! ;-)

> Will we still have access
> to the bug reports that we have generated if we decide not to renew?

Yes, unless the opposite is decided, the public bugs that you have reported in bugzilla will be always public (as they are now).


> With regard to the nodes drained with the "Kill task" message. I'm confident
> that these are nodes on which users have exceeded the available memory and
> consequently either a system or user process has been killed. The tail of
> the dmesg log appears to support this.

Yes, most probably to ones related to GPFS.


> I suspect the "Zero Bytes were transmitted or received" issue will have to
> remain unresolved.

I'm confident that if we keep working together, we will fix it.

> Likewise I had read the bug report relating to the synchronization  issue,
> and I have over viewed the date on each of our compute nodes. All the dates
> are synchronized -- the only minor issue is that 4 of the nodes are
> reporting the time in UTC rather than GMT.

Are you using NTP or something similar?
Small synch error could be important.. but you are probably right and this is not the source of the error.


> I think we are in a position to close this ticket, please.


Thanks,
Albert