Created attachment 8091 [details] slurmd log from an example node We quite frequently are getting nodes drained due to "kill task failed" How is the best way to go about figuring out how to solve this? attached are slurmd logs form a node that had this happen I often see things like the following on nodes that had been drained: [9836407.297994] SLUB: Unable to allocate memory on node -1 (gfp=0x8020) [9836407.297995] cache: ip6_dst_cache(10656:step_9), object size: 448, buffer size: 448, default order: 3, min order: 0 [9836407.297996] node 0: slabs: 5, objs: 237, free: 0 [9836407.297997] node 1: slabs: 4, objs: 228, free: 0 [10185225.597244] CIFS PidTable: buckets 64 [10185225.597253] CIFS BufTable: buckets 64 example node: [root@head1 ~]# scontrol show node hpc-23-20 NodeName=hpc-23-20 Arch=x86_64 CoresPerSocket=16 CPUAlloc=13 CPUErr=0 CPUTot=32 CPULoad=13.28 AvailableFeatures=skylake ActiveFeatures=skylake Gres=(null) NodeAddr=hpc-23-20 NodeHostName=hpc-23-20 Version=17.11 OS=Linux 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 RealMemory=188000 AllocMem=53248 FreeMem=150399 Sockets=2 Boards=1 State=MIXED+DRAIN ThreadsPerCore=1 TmpDisk=0 Weight=10 Owner=N/A MCS_label=N/A Partitions=any BootTime=2018-06-27T08:08:11 SlurmdStartTime=2018-08-14T14:58:43 CfgTRES=cpu=32,mem=188000M,billing=32 AllocTRES=cpu=13,mem=52G CapWatts=n/a CurrentWatts=0 LowestJoules=0 ConsumedJoules=0 ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s Reason=Kill task failed [root@2018-10-23T22:05:38]
Hi, I need your up-to-date cgroup.conf and slurm.conf Also the output of: $ cat /etc/*release* $ uname -a Thanks
Created attachment 8103 [details] cgroup.conf Here you go [root@head1 ~]# cat /etc/*release* CentOS Linux release 7.3.1611 (Core) Derived from Red Hat Enterprise Linux 7.3 (Source) Cluster Manager v8.0 master cat: /etc/lsb-release.d: Is a directory NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" CentOS Linux release 7.3.1611 (Core) CentOS Linux release 7.3.1611 (Core) cpe:/o:centos:centos:7 [root@head1 ~]# uname -a Linux head1 3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6 23:06:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [root@head1 ~]# From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Thursday, October 25, 2018 at 2:15 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed uname -a
Created attachment 8104 [details] slurm.conf
Please, set this to your cgroup.conf: ConstrainKmemSpace=no Your issue is probably related to a bug in the kernel on applications that are setting kmem limit. It seems kmem limit in a cgroup causes a number of slab caches to get created that don't go away when the cgroup is removed, thus filling up an internal 64K cache that ends showing the error you see in Slurm logs. Following patches that would fix the issue seem not to be commited to RHEL kernels because incompatibilities with OpenShift software: https://github.com/torvalds/linux/commit/73f576c04b9410ed19660f74f97521bee6e1c546 https://github.com/torvalds/linux/commit/24ee3cf89bef04e8bc23788aca4e029a3f0f06d9 Actual kernel patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d6e0b7fa11862433773d986b5f995ffdf47ce672 There's currently an open bug in RHEL: https://bugzilla.redhat.com/show_bug.cgi?id=1507149 Bug 5082 seems a possible duplicate of your issue, if you are curious about a more extensive explanation. The workaround is simply to set "ConstrainKmemSpace=No" in cgroup.conf, then you must reboot the affected nodes. This parameter has been set to "no" by default on 18.08. Commit 32fabc5e006b8f41. Tell me if after applying this change it fixes the issue for you. ----------------- Offtopic: Having JobAcctGatherType=jobacct_gather/linux in slurm.conf + ConstrainCores=yes in cgroup.conf means having two mechanisms to kill jobs if they exceed the memory. I recommend you to set the following to avoid conflicts in both mechanisms or you may have issues if one task is killed by one of the two mechanisms, and the other is monitoring it: slurm.conf: MemLimitEnforce=no JobAcctGatherParams=NoOverMemoryKill In version 18.08 you can remove this both parameters since they are the default.
Thanks. So to be clear, you think this should clear up the “Kill task failed” as well as the slub messages? Reboot the machine or restart slurmd? On the off topic part. So you are saying the memory will be constrinaed by the cgroup now, and not through other means? Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Thursday, October 25, 2018 at 7:20 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Felip Moll<mailto:felip.moll@schedmd.com> changed bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> What Removed Added Ever confirmed 1 Status NEED_INFO UNCONFIRMED Comment # 5<https://bugs.schedmd.com/show_bug.cgi?id=5913#c5> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Please, set this to your cgroup.conf: ConstrainKmemSpace=no Your issue is probably related to a bug in the kernel on applications that are setting kmem limit. It seems kmem limit in a cgroup causes a number of slab caches to get created that don't go away when the cgroup is removed, thus filling up an internal 64K cache that ends showing the error you see in Slurm logs. Following patches that would fix the issue seem not to be commited to RHEL kernels because incompatibilities with OpenShift software: https://github.com/torvalds/linux/commit/73f576c04b9410ed19660f74f97521bee6e1c546 https://github.com/torvalds/linux/commit/24ee3cf89bef04e8bc23788aca4e029a3f0f06d9 Actual kernel patch: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d6e0b7fa11862433773d986b5f995ffdf47ce672 There's currently an open bug in RHEL: https://bugzilla.redhat.com/show_bug.cgi?id=1507149 Bug 5082<show_bug.cgi?id=5082> seems a possible duplicate of your issue, if you are curious about a more extensive explanation. The workaround is simply to set "ConstrainKmemSpace=No" in cgroup.conf, then you must reboot the affected nodes. This parameter has been set to "no" by default on 18.08. Commit 32fabc5e006b8f41. Tell me if after applying this change it fixes the issue for you. ----------------- Offtopic: Having JobAcctGatherType=jobacct_gather/linux in slurm.conf + ConstrainCores=yes in cgroup.conf means having two mechanisms to kill jobs if they exceed the memory. I recommend you to set the following to avoid conflicts in both mechanisms or you may have issues if one task is killed by one of the two mechanisms, and the other is monitoring it: slurm.conf: MemLimitEnforce=no JobAcctGatherParams=NoOverMemoryKill In version 18.08 you can remove this both parameters since they are the default. ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #6) > Thanks. So to be clear, you think this should clear up the “Kill task > failed” as well as the slub messages? The "Kill task failed", yes. The SLUB messages, not so sure, but probably may help. We should see. > Reboot the machine or restart slurmd? Reboot machine to clear the kernel memcache, but only on the affected nodes. If other nodes are not affected yet by these errors, just restart slurmd. > On the off topic part. So you are saying the memory will be constrinaed by > the cgroup now, and not through other means? > > Naveed > Yes. That's how it should be.
Naveed, Do you have any news about this issue? Thanks Felip
I haven’t noticed it recurring yet, but it didn’t happen all the time, so am keeping an eye out to see if it happens again. I have rebuilt all machines and rebooted with the settings. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, October 31, 2018 at 11:42 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 8<https://bugs.schedmd.com/show_bug.cgi?id=5913#c8> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Naveed, Do you have any news about this issue? Thanks Felip ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #9) > I haven’t noticed it recurring yet, but it didn’t happen all the time, so am > keeping an eye out to see if it happens again. I have rebuilt all machines > and rebooted with the settings. > > Naveed That's good. I don't expect the issue to raise again. Would be ok for you if I close the issue, and if the problem happens again, just reopen it? Thanks
Hi, I am closing the bug assuming that actions taken in comment 5 cleared the issues. If it happens again feel free to mark this bug as UNCONFIRMED again and provide more information. Best regards, Felip M
It started up again a couple days ago with a vengeance. This time it happens on every job so i have been trying to keep up with undraining nodes to keep jobs flowing. I don't know what changed to cause this. I did increase the UnkillableStepTimeout to 180 last night to see if it would mitigate the issue, but it did not. I have rebuilt the nodes that have drained to the known state, but that doesn't seem to help either. The nodes get their software and config from a central gpfs filesystem, so the fie shouldn't have reverted, and it did look at the cgroup.conf which has the following: # added to deal with "kill task failed" # schdmd bug 5913 ConstrainKmemSpace=No In the slurmd logs on the clients that are being drained i am seeing the following: [2018-11-29T11:04:24.150] [2977151.extern] Sent SIGKILL signal to 2977151.4294967295 [2018-11-29T11:04:24.152] [2977151.0] debug: Handling REQUEST_STEP_TERMINATE [2018-11-29T11:04:24.152] [2977151.0] debug: _handle_terminate for step=2977151.0 uid=0 [2018-11-29T11:04:24.152] [2977151.0] Sent SIGKILL signal to 2977151.0 [2018-11-29T11:04:34.205] [2977151.extern] debug: Handling REQUEST_STATE [2018-11-29T11:04:34.249] [2977151.extern] debug: Handling REQUEST_STEP_TERMINATE [2018-11-29T11:04:34.249] [2977151.extern] debug: _handle_terminate for step=2977151.4294967295 uid=0 [2018-11-29T11:04:34.249] [2977151.extern] Sent SIGKILL signal to 2977151.4294967295 [2018-11-29T11:04:34.290] [2977151.0] debug: Handling REQUEST_STEP_TERMINATE [2018-11-29T11:04:34.291] [2977151.0] debug: _handle_terminate for step=2977151.0 uid=0 [2018-11-29T11:04:34.291] [2977151.0] Sent SIGKILL signal to 2977151.0 [2018-11-29T11:04:43.001] [2977151.extern] error: *** EXTERN STEP FOR 2977151 STEPD TERMINATED ON hpc-23-13 AT 2018-11-29T11:04:42 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-11-29T11:04:43.001] [2977151.0] error: *** STEP 2977151.0 STEPD TERMINATED ON hpc-23-13 AT 2018-11-29T11:04:42 DUE TO JOB NOT ENDING WITH SIGNALS ***
in a somewhat related quesiton. We are considering updating slurm. What version is the current blessed one and would upgrading help with the current issue? Also, is there anything in our config that would need to change on a later version? I would likely do it live, so wouldn't want to hit any gotchas
Created attachment 8466 [details] current full config directory
Hi, > We are considering updating slurm. What version is the current blessed one and would upgrading help with the current issue? If you plan to upgrade then we would recommend 17.11.12 but I we believe the issues is outside of Slurm. What you can do to diagnose this is to raise your loglevel to debug2. The slurmctld.log will then print out the message: killing process <jobid> (slurm_task) with signal 9 For example: [240512.0] debug2: killing process 640 (slurm_task) with signal 9 [240512.0] debug2: killing process 641 (slurm_task) with signal 9 [240512.0] debug2: killing process 642 (slurm_task) with signal 9 [240512.0] debug2: killing process 643 (slurm_task) with signal 9 You can then ssh to the node and verify that 1) The process is still there 2) If the process is still active, note what it is and what it is doing. 3) See if you can kill it directly with a kill -9. It would also be helpful to see the output of dmesg, ifconfig, and your syslog from one of the nodes with the issue. Note if kill -9 does not work then this suggest the process is hanging on I/O. -Jason
Thanks. I have set it to debug2 and will monitor for more jobs doing this. The funny thing is that it looked like the jobs actually were being killed. When looking on the nodes I wasn’t seeing any stray processes, but I will confirm the next one that drains. Any particular reason to move to 17.11.12 rather than 18.x.x? Naveed
17.11.12 is less of a 'jump' then moving to 18.08 so this is to minimize the downtime and impact. We are also tracking an issue in 6122 that may affect sites moving to 18.08 from 17.11.
Naveed, I marked your attachment as private since it contained etc/.git directory with sensitive info. I could even see all the changes you did to your configurations, and I think you are fine there :) Well, looking at the kernel code I checked a little bit more about the SLUB errors you reported on comment 1: > [9836407.297994] SLUB: Unable to allocate memory on node -1 (gfp=0x8020) I can say that these errors are issued when kernel cache is exhausted (among other situations), so the cgroup.conf setting ConstrainKMemSpace=no should've definitively helped here. If you're curious you can look at linux/mm/slub.c and you'll see like functions that raise this message are always related to kernel cache, i.e: static void *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, int nodeid) I expected then that your SLUB messages got cleared, and related to this also the Kill Task Failed messages. Having said that and seeing that you still have task failed messages, I think you may be hitting another issue. Your configuration looks good. It looks very similar to one internal bug 5164 that discovered a problem in the order of how communications took place between slurmstepd and srun. There was some situation where messages were sent from slurmstepd announcing the end of the task and were never received by srun. This were the same for slurmd. The sequence were such as: slurmstepd -> srun SYN slurmstepd -> srun TCP Retransmit srun -> slurmstepd SYN, ACK slurmstepd -> srun ACK srun -> slurmstepd RST slurmstepd -> srun PSH, ACK srun -> slurmstepd RST slurmstepd -> srun FIN, PSH, ACK (exit message) srun -> slurmstepd RST Quoting from that internal bug: "the RST packets are the srun telling slurmstepd to stop trying to transmit, and that the connection has failed. Notably absent here is any ACK from srun to the slurmstepd after the exit message has been transmitted - that data is never confirmed by the receive side." The TCP transmission in question is processed by slurm_send_only_node_msg(). The main commit which fixes this issue is already in 17.11.9: commit 06582da8ff47132a124497f7dbd41dd5ac227c33 All of this causes errors in slurmd log and keeps jobs CG when there are no processes in the node. But after telling this is the very same situation I would like to try to diagnose it. a) Is it still 'consistently' happening? b) Can you grab information on the submitted job, command, script, and so on that was run? c) Are you able to reproduce? d) Does a dmesg say anything? e) Send me your new slurmd and slurmctld logs, possibly as Jason suggested to debug2 level, showing the issues. f) Did you restart all of the nodes since you did the changes to cgroup.conf? (there could be still some kmemcache full?). g) If it is consitently happening, a momentaneous increase to debug3 could help.
Created attachment 8475 [details] schemd_caltech_bug_5913.zip I am not seeing the same churn that I was seeing over the last few days. I still have 7 nodes drained because of it and another 22 draining. This time around we have not been seeing the slub errors, so I think you are correct that the kmem line in cgroups helped that problem. Perhaps we are looking at the other bug. 1. stopped consistently doing it late yesterday 2. Not sure how to get extended information from a finished job. Happy to grab it if you let me know the best way to get it. I have included basic information 3. Not as of last night 4. I can include dmesg info 5. Will attach the logs. Not sure if these had the issue before or after I set it to debug2 6. All nodes were rebuilt and rebooted numerous times since the cgroup.conf change was made 7. Noted. If it continues we can set that. If you think updating to the latest 17.x version will solve it, would it be prudent to go ahead and do that now? Also we would like to get to the latest reasonable version. Any suggestions on getting to an 18.x verion with minimal fuss? We have gotten too far behind in the past for simple upgrade, so want to keep on top of it. Plus some of the scontrol reboot options now available look helpful. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Friday, November 30, 2018 at 3:33 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 21<https://bugs.schedmd.com/show_bug.cgi?id=5913#c21> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Naveed, I marked your attachment as private since it contained etc/.git directory with sensitive info. I could even see all the changes you did to your configurations, and I think you are fine there :) Well, looking at the kernel code I checked a little bit more about the SLUB errors you reported on comment 1<show_bug.cgi?id=5913#c1>: > [9836407.297994] SLUB: Unable to allocate memory on node -1 (gfp=0x8020) I can say that these errors are issued when kernel cache is exhausted (among other situations), so the cgroup.conf setting ConstrainKMemSpace=no should've definitively helped here. If you're curious you can look at linux/mm/slub.c and you'll see like functions that raise this message are always related to kernel cache, i.e: static void *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, int nodeid) I expected then that your SLUB messages got cleared, and related to this also the Kill Task Failed messages. Having said that and seeing that you still have task failed messages, I think you may be hitting another issue. Your configuration looks good. It looks very similar to one internal bug 5164<show_bug.cgi?id=5164> that discovered a problem in the order of how communications took place between slurmstepd and srun. There was some situation where messages were sent from slurmstepd announcing the end of the task and were never received by srun. This were the same for slurmd. The sequence were such as: slurmstepd -> srun SYN slurmstepd -> srun TCP Retransmit srun -> slurmstepd SYN, ACK slurmstepd -> srun ACK srun -> slurmstepd RST slurmstepd -> srun PSH, ACK srun -> slurmstepd RST slurmstepd -> srun FIN, PSH, ACK (exit message) srun -> slurmstepd RST Quoting from that internal bug: "the RST packets are the srun telling slurmstepd to stop trying to transmit, and that the connection has failed. Notably absent here is any ACK from srun to the slurmstepd after the exit message has been transmitted - that data is never confirmed by the receive side." The TCP transmission in question is processed by slurm_send_only_node_msg(). The main commit which fixes this issue is already in 17.11.9: commit 06582da8ff47132a124497f7dbd41dd5ac227c33 All of this causes errors in slurmd log and keeps jobs CG when there are no processes in the node. But after telling this is the very same situation I would like to try to diagnose it. a) Is it still 'consistently' happening? b) Can you grab information on the submitted job, command, script, and so on that was run? c) Are you able to reproduce? d) Does a dmesg say anything? e) Send me your new slurmd and slurmctld logs, possibly as Jason suggested to debug2 level, showing the issues. f) Did you restart all of the nodes since you did the changes to cgroup.conf? (there could be still some kmemcache full?). g) If it is consitently happening, a momentaneous increase to debug3 could help. ________________________________ You are receiving this mail because: * You reported the bug.
> Perhaps we are looking at the other bug. A first glance to your logs seems seems to indicate that it is not exactly the same problem. We may be hitting another bug, but we may also be hitting a GPFS problem. The dmesg indicates a problem there: [2911535.078873] INFO: task df:162797 blocked for more than 120 seconds. [2911535.078874] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [2911535.078874] df D ffffffffa2091e80 0 162797 1 0x00000084 [2911535.078876] ffff883d5d63b7d8 0000000000000086 ffff883ffbaaaf10 ffff883d5d63bfd8 [2911535.078878] ffff883d5d63bfd8 ffff883d5d63bfd8 ffff883ffbaaaf10 ffff883fe0e970d8 [2911535.078879] 0000000000000000 ffff883ffbaaaf10 ffff883fe0e970c8 ffffffffa2091e80 [2911535.078881] Call Trace: [2911535.078883] [<ffffffff8168b899>] schedule+0x29/0x70 [2911535.078889] [<ffffffffa1de1bea>] cxiWaitEventWait+0x19a/0x280 [mmfslinux] I cannot identify the time. Can you check that the affected nodes did not have a problem in GPFS at that time with dmesg -T ? > 1. stopped consistently doing it late yesterday If its one sporadic thing, it may confirm the GPFS theory, but I don't discard other issues. > 2. Not sure how to get extended information from a finished job. Happy > to grab it if you let me know the best way to get it. I have included basic > information As long as you don't have jobcomp accounting, you must rely on scontrol show job, and in sacct. I see anyway that the jobs makes use of orted and that are job arrays. You could ask the user which kind of job did they launch and see if the problem only happened on this type of job. > 3. Not as of last night > 4. I can include dmesg info > 5. Will attach the logs. Not sure if these had the issue before or after > I set it to debug2 > 6. All nodes were rebuilt and rebooted numerous times since the > cgroup.conf change was made > 7. Noted. If it continues we can set that. All good. > If you think updating to the latest 17.x version will solve it, would it be > prudent to go ahead and do that now? Honestly I'd like first to analyze your logs and diagnose better the issue, if it is possible. Upgrading to the latest 17.x may help indeed, but only if you are really hitting a bug. Let me analyze it a little bit more and come back to you. I will be also waiting for your input about GPFS status at that time. > Also we would like to get to the latest reasonable version. > Any suggestions on getting to an 18.x verion > with minimal fuss? We have gotten too far behind in the past for simple > upgrade, so want to keep on top of it. Plus some of the scontrol reboot > options now available look helpful. 18.08 has a lot of improvemnts, and I definitively recommend to go to that version, but not right now. We are facing a couple issues that are under investigation, so if you want full stability I recommend staying at the last 17.11.x. After a few weeks I will probably change completely my recommendation, but I don't want to avoid any possible new issue to your situation. Since it is not consistently reproducing and your workflow seems to keep going for now, I am changing the priority to sev-3.
I am not entirely sure if there was a gpfs issue at the same time. We have been having some snapshot issues with gpfs and figured it out a few days ago (matlab 2018 was causing crazy load issues on some nodes which was causing gpfs to not quiesce on the nodes). I spot checked the cluster and the nodes that are drained or draining have messages like that, but other nodes that didn’t show the issue also have them here and there. I will contact ibm about those messages, but am unclear as to why or if they affected the scheduler. The logs were showing those messages at [Thu Nov 29 06:39:40 2018] on that node (difereent on some other nodes) Would you suggest turning on jobcomp accounting? If so what to we need to do to do that? We can certainly hold off on upgrading to the latest 17.x if you want to look more at the logs before we do. We will certainly look forward to the latest 18.x once you guys tell us it is good to do that. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Friday, November 30, 2018 at 9:20 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Felip Moll<mailto:felip.moll@schedmd.com> changed bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> What Removed Added Severity 2 - High Impact 3 - Medium Impact Comment # 23<https://bugs.schedmd.com/show_bug.cgi?id=5913#c23> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> > Perhaps we are looking at the other bug. A first glance to your logs seems seems to indicate that it is not exactly the same problem. We may be hitting another bug, but we may also be hitting a GPFS problem. The dmesg indicates a problem there: [2911535.078873] INFO: task df:162797 blocked for more than 120 seconds. [2911535.078874] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [2911535.078874] df D ffffffffa2091e80 0 162797 1 0x00000084 [2911535.078876] ffff883d5d63b7d8 0000000000000086 ffff883ffbaaaf10 ffff883d5d63bfd8 [2911535.078878] ffff883d5d63bfd8 ffff883d5d63bfd8 ffff883ffbaaaf10 ffff883fe0e970d8 [2911535.078879] 0000000000000000 ffff883ffbaaaf10 ffff883fe0e970c8 ffffffffa2091e80 [2911535.078881] Call Trace: [2911535.078883] [<ffffffff8168b899>] schedule+0x29/0x70 [2911535.078889] [<ffffffffa1de1bea>] cxiWaitEventWait+0x19a/0x280 [mmfslinux] I cannot identify the time. Can you check that the affected nodes did not have a problem in GPFS at that time with dmesg -T ? > 1. stopped consistently doing it late yesterday If its one sporadic thing, it may confirm the GPFS theory, but I don't discard other issues. > 2. Not sure how to get extended information from a finished job. Happy > to grab it if you let me know the best way to get it. I have included basic > information As long as you don't have jobcomp accounting, you must rely on scontrol show job, and in sacct. I see anyway that the jobs makes use of orted and that are job arrays. You could ask the user which kind of job did they launch and see if the problem only happened on this type of job. > 3. Not as of last night > 4. I can include dmesg info > 5. Will attach the logs. Not sure if these had the issue before or after > I set it to debug2 > 6. All nodes were rebuilt and rebooted numerous times since the > cgroup.conf change was made > 7. Noted. If it continues we can set that. All good. > If you think updating to the latest 17.x version will solve it, would it be > prudent to go ahead and do that now? Honestly I'd like first to analyze your logs and diagnose better the issue, if it is possible. Upgrading to the latest 17.x may help indeed, but only if you are really hitting a bug. Let me analyze it a little bit more and come back to you. I will be also waiting for your input about GPFS status at that time. > Also we would like to get to the latest reasonable version. > Any suggestions on getting to an 18.x verion > with minimal fuss? We have gotten too far behind in the past for simple > upgrade, so want to keep on top of it. Plus some of the scontrol reboot > options now available look helpful. 18.08 has a lot of improvemnts, and I definitively recommend to go to that version, but not right now. We are facing a couple issues that are under investigation, so if you want full stability I recommend staying at the last 17.11.x. After a few weeks I will probably change completely my recommendation, but I don't want to avoid any possible new issue to your situation. Since it is not consistently reproducing and your workflow seems to keep going for now, I am changing the priority to sev-3. ________________________________ You are receiving this mail because: * You reported the bug.
I got the timestamp of when the GPFS errors start just reading the dmesg line: [ 209.409687] type=1404 audit(1540591175.367:2): selinux=0 auid=4294967295 ses=4294967295 So the first issue with GPFS occurs aprox. at: [2911415.073435] INFO: task cmd:162686 blocked for more than 120 seconds. 1540591175+2911415-209 = 1543502381 = Thursday 29 November 2018 14:39:41 GMT Job 2975587 is killed due to time limit accordingly to slurmd logs: [2018-11-30T01:01:08.197] [2975587.63] error: *** STEP 2975587.63 ON hpc-23-28 CANCELLED AT 2018-11-30T01:01:08 DUE TO TIME LIMIT *** And there doesn't seem to be any error in slurmd at the time of gpfs segfaults, so I think *GPFS is not the cause* of the issue. I am now analyzing the signal management/sequence which seems a bit odd in this case: Phase 1 / Send SIG_TIMELIMIT (src/common/slurm_protocol_defs.h:#define SIG_TIME_LIMIT 996) 2018-11-30T01:01:08.197] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.197] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=996 [2018-11-30T01:01:08.197] [2975587.63] error: *** STEP 2975587.63 ON hpc-23-28 CANCELLED AT 2018-11-30T01:01:08 DUE TO TIME LIMIT *** [2018-11-30T01:01:08.246] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.246] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=996 [2018-11-30T01:01:08.272] [2975587.batch] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.272] [2975587.batch] debug: _handle_signal_container for step=2975587.4294967294 uid=0 signal=996 [2018-11-30T01:01:08.272] [2975587.batch] error: *** JOB 2975587 ON hpc-23-28 CANCELLED AT 2018-11-30T01:01:08 DUE TO TIME LIMIT *** Phase 2 / Send SIGCONT and after SIGTERM But I see here SIGTERMs before SIGCONT, may be something wrong?: [2018-11-30T01:01:08.272] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.272] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=15 [2018-11-30T01:01:08.273] [2975587.63] Sent signal 15 to 2975587.63 [2018-11-30T01:01:08.273] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.273] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=15 [2018-11-30T01:01:08.273] [2975587.extern] Sent signal 15 to 2975587.4294967295 [2018-11-30T01:01:08.273] Job 2975587: timeout: sent SIGTERM to 2 active steps [2018-11-30T01:01:08.273] debug: _rpc_terminate_job, uid = 450 [2018-11-30T01:01:08.273] debug: task_p_slurmd_release_resources: affinity jobid 2975587 [2018-11-30T01:01:08.274] debug: credential for job 2975587 revoked SIGCONT [2018-11-30T01:01:08.274] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.274] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=18 [2018-11-30T01:01:08.274] [2975587.63] Sent signal 18 to 2975587.63 [2018-11-30T01:01:08.274] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.274] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=18 [2018-11-30T01:01:08.274] [2975587.extern] Sent signal 18 to 2975587.4294967295 [2018-11-30T01:01:08.274] [2975587.batch] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.batch] debug: _handle_signal_container for step=2975587.4294967294 uid=0 signal=18 [2018-11-30T01:01:08.275] [2975587.batch] Sent signal 18 to 2975587.4294967294 SIGTERM [2018-11-30T01:01:08.275] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=15 [2018-11-30T01:01:08.275] [2975587.63] Sent signal 15 to 2975587.63 [2018-11-30T01:01:08.275] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=15 [2018-11-30T01:01:08.275] [2975587.extern] Sent signal 15 to 2975587.4294967295 [2018-11-30T01:01:08.275] [2975587.batch] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.batch] debug: _handle_signal_container for step=2975587.4294967294 uid=0 signal=15 [2018-11-30T01:01:08.275] [2975587.batch] Sent signal 15 to 2975587.4294967294 Termination of .63 and .batch steps, but not .extern step: [2018-11-30T01:01:08.276] [2975587.63] debug: Handling REQUEST_STATE [2018-11-30T01:01:08.464] debug: Entering stepd_completion for 2975587.63, range_first = 1, range_last = 1 [2018-11-30T01:01:08.464] [2975587.63] debug: Handling REQUEST_STEP_COMPLETION_V2 [2018-11-30T01:01:08.464] [2975587.63] debug: _handle_completion for job 2975587.63 [2018-11-30T01:01:08.536] debug: Entering stepd_completion for 2975587.63, range_first = 2, range_last = 2 [2018-11-30T01:01:08.536] [2975587.63] debug: Handling REQUEST_STEP_COMPLETION_V2 [2018-11-30T01:01:08.536] [2975587.63] debug: _handle_completion for job 2975587.63 [2018-11-30T01:01:08.652] [2975587.63] task 0 (138267) exited. Killed by signal 15. [2018-11-30T01:01:08.653] [2975587.63] debug: task_p_post_term: affinity 2975587.63, task 0 [2018-11-30T01:01:08.653] [2975587.63] debug: _oom_event_monitor: No oom events detected. [2018-11-30T01:01:08.653] [2975587.63] debug: _oom_event_monitor: stopping. [2018-11-30T01:01:08.663] [2975587.63] debug: step_terminate_monitor_stop signaling condition [2018-11-30T01:01:08.663] [2975587.63] debug: Waiting for IO [2018-11-30T01:01:08.663] [2975587.63] debug: Closing debug channel [2018-11-30T01:01:08.663] [2975587.63] debug: IO handler exited, rc=0 [2018-11-30T01:01:08.665] [2975587.63] debug: get_exit_code task 0 killed by cmd [2018-11-30T01:01:08.666] [2975587.63] debug: Message thread exited [2018-11-30T01:01:08.666] [2975587.63] debug: mpi/pmi2: agent thread exit [2018-11-30T01:01:08.666] [2975587.63] done with job [2018-11-30T01:01:08.768] [2975587.batch] task 0 (57109) exited with exit code 1. [2018-11-30T01:01:08.769] [2975587.batch] debug: task_p_post_term: affinity 2975587.4294967294, task 0 [2018-11-30T01:01:08.769] [2975587.batch] debug: _oom_event_monitor: No oom events detected. [2018-11-30T01:01:08.769] [2975587.batch] debug: _oom_event_monitor: stopping. [2018-11-30T01:01:08.782] [2975587.batch] debug: step_terminate_monitor_stop signaling condition [2018-11-30T01:01:08.782] [2975587.batch] debug: get_exit_code task 0 killed by cmd [2018-11-30T01:01:08.782] [2975587.batch] job 2975587 completed with slurm_rc = 0, job_rc = 256 [2018-11-30T01:01:08.782] [2975587.batch] sending REQUEST_COMPLETE_BATCH_SCRIPT, error:0 status 256 [2018-11-30T01:01:08.784] [2975587.batch] debug: Message thread exited [2018-11-30T01:01:08.784] [2975587.batch] done with job <---------- Here extern was SIGTERMED @ 2018-11-30T01:01:08.275 but seems slurmd was not informed? So slurmd asks for state: [2018-11-30T01:01:09.276] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:10.277] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:11.277] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:12.278] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:13.279] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:14.279] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:15.280] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:16.281] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:17.281] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:18.282] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:19.283] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:29.283] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:33.362] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:33.362] debug: _fill_registration_msg: found apparently running step 2975587.4294967295 [2018-11-30T01:01:33.365] debug: _rpc_terminate_job, uid = 450 [2018-11-30T01:01:33.365] debug: task_p_slurmd_release_resources: affinity jobid 2975587 [2018-11-30T01:01:38.284] [2975587.extern] debug: Handling REQUEST_STEP_TERMINATE [2018-11-30T01:01:38.284] [2975587.extern] debug: _handle_terminate for step=2975587.4294967295 uid=0 [2018-11-30T01:01:38.284] [2975587.extern] Sent SIGKILL signal to 2975587.4294967295 [2018-11-30T01:01:38.285] [2975587.extern] debug: Handling REQUEST_STATE Here we enter in the loop of trying to kill .extern step, but it is alreadi SIGTERMed. I am investigating exactly why this sequence happens. In the meantime: Can you please try to reproduce with an sbatch job which inside runs a 'srun sleep 1000' with a time limit of, for example 30 seconds? Do you see the error?
Created attachment 8518 [details] cvmfs_drain_tests.zip Still looking into it. They started happening again after installing cvmfs. It was installed manually before the last time this happened as well, then I rebuilt everything with an image that did not have it and it started working again. It does seem to be related to that or one of its requirements that yum installed along with it. I have reserved a few machines that are in the state and rebuilding the others since we are building up quite the queue with all these nodes draining. When I do simple sleep tests with and without cvmfs on a newly installed machine the jobs finish as expected and do not drain nodes. Any thoughts on whether this could be causing it or if I am barking up the wrong tree? Also, perhaps there is a known issue with one of the dependency rpms? I have attached some test files, logs, etc. What yum install/updated: Installing: cvmfs 2.5.2-1.el7 cvmfs-config-default 1.7-1 Installing for dependencies: audit-libs-python 2.8.4-4.el7 autofs 1:5.0.7-99.el7 checkpolicy 2.5-8.el7 fuse 2.9.2-11.el7 fuse-libs 2.9.2-11.el7 hesiod 3.2.1-3.el7 libsemanage-python 2.5-14.el7 policycoreutils-python 2.5-29.el7 python-IPy 0.75-6.el7 setools-libs 3.3.8-4.el7 Updating for dependencies audit 2.8.4-4.el7 audit-libs 2.8.4-4.el7 audit-libs 2.8.4-4.el7 libselinux 2.5-14.1.el7 libselinux 2.5-14.1.el7 libselinux-devel 2.5-14.1.el7 libselinux-python 2.5-14.1.el7 libselinux-ruby 2.5-14.1.el7 libselinux-utils 2.5-14.1.el7 libsemanage 2.5-14.el7 libsepol 2.5-10.el7 libsepol 2.5-10.el7 libsepol-devel 2.5-10.el7 policycoreutils From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Monday, December 3, 2018 at 11:28 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 25<https://bugs.schedmd.com/show_bug.cgi?id=5913#c25> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> I got the timestamp of when the GPFS errors start just reading the dmesg line: [ 209.409687] type=1404 audit(1540591175.367:2): selinux=0 auid=4294967295 ses=4294967295 So the first issue with GPFS occurs aprox. at: [2911415.073435] INFO: task cmd:162686 blocked for more than 120 seconds. 1540591175+2911415-209 = 1543502381 = Thursday 29 November 2018 14:39:41 GMT Job 2975587 is killed due to time limit accordingly to slurmd logs: [2018-11-30T01:01:08.197] [2975587.63] error: *** STEP 2975587.63 ON hpc-23-28 CANCELLED AT 2018-11-30T01:01:08 DUE TO TIME LIMIT *** And there doesn't seem to be any error in slurmd at the time of gpfs segfaults, so I think *GPFS is not the cause* of the issue. I am now analyzing the signal management/sequence which seems a bit odd in this case: Phase 1 / Send SIG_TIMELIMIT (src/common/slurm_protocol_defs.h:#define SIG_TIME_LIMIT 996) 2018-11-30T01:01:08.197] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.197] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=996 [2018-11-30T01:01:08.197] [2975587.63] error: *** STEP 2975587.63 ON hpc-23-28 CANCELLED AT 2018-11-30T01:01:08 DUE TO TIME LIMIT *** [2018-11-30T01:01:08.246] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.246] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=996 [2018-11-30T01:01:08.272] [2975587.batch] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.272] [2975587.batch] debug: _handle_signal_container for step=2975587.4294967294 uid=0 signal=996 [2018-11-30T01:01:08.272] [2975587.batch] error: *** JOB 2975587 ON hpc-23-28 CANCELLED AT 2018-11-30T01:01:08 DUE TO TIME LIMIT *** Phase 2 / Send SIGCONT and after SIGTERM But I see here SIGTERMs before SIGCONT, may be something wrong?: [2018-11-30T01:01:08.272] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.272] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=15 [2018-11-30T01:01:08.273] [2975587.63] Sent signal 15 to 2975587.63 [2018-11-30T01:01:08.273] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.273] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=15 [2018-11-30T01:01:08.273] [2975587.extern] Sent signal 15 to 2975587.4294967295 [2018-11-30T01:01:08.273] Job 2975587: timeout: sent SIGTERM to 2 active steps [2018-11-30T01:01:08.273] debug: _rpc_terminate_job, uid = 450 [2018-11-30T01:01:08.273] debug: task_p_slurmd_release_resources: affinity jobid 2975587 [2018-11-30T01:01:08.274] debug: credential for job 2975587 revoked SIGCONT [2018-11-30T01:01:08.274] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.274] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=18 [2018-11-30T01:01:08.274] [2975587.63] Sent signal 18 to 2975587.63 [2018-11-30T01:01:08.274] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.274] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=18 [2018-11-30T01:01:08.274] [2975587.extern] Sent signal 18 to 2975587.4294967295 [2018-11-30T01:01:08.274] [2975587.batch] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.batch] debug: _handle_signal_container for step=2975587.4294967294 uid=0 signal=18 [2018-11-30T01:01:08.275] [2975587.batch] Sent signal 18 to 2975587.4294967294 SIGTERM [2018-11-30T01:01:08.275] [2975587.63] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.63] debug: _handle_signal_container for step=2975587.63 uid=0 signal=15 [2018-11-30T01:01:08.275] [2975587.63] Sent signal 15 to 2975587.63 [2018-11-30T01:01:08.275] [2975587.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.extern] debug: _handle_signal_container for step=2975587.4294967295 uid=0 signal=15 [2018-11-30T01:01:08.275] [2975587.extern] Sent signal 15 to 2975587.4294967295 [2018-11-30T01:01:08.275] [2975587.batch] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-11-30T01:01:08.275] [2975587.batch] debug: _handle_signal_container for step=2975587.4294967294 uid=0 signal=15 [2018-11-30T01:01:08.275] [2975587.batch] Sent signal 15 to 2975587.4294967294 Termination of .63 and .batch steps, but not .extern step: [2018-11-30T01:01:08.276] [2975587.63] debug: Handling REQUEST_STATE [2018-11-30T01:01:08.464] debug: Entering stepd_completion for 2975587.63, range_first = 1, range_last = 1 [2018-11-30T01:01:08.464] [2975587.63] debug: Handling REQUEST_STEP_COMPLETION_V2 [2018-11-30T01:01:08.464] [2975587.63] debug: _handle_completion for job 2975587.63 [2018-11-30T01:01:08.536] debug: Entering stepd_completion for 2975587.63, range_first = 2, range_last = 2 [2018-11-30T01:01:08.536] [2975587.63] debug: Handling REQUEST_STEP_COMPLETION_V2 [2018-11-30T01:01:08.536] [2975587.63] debug: _handle_completion for job 2975587.63 [2018-11-30T01:01:08.652] [2975587.63] task 0 (138267) exited. Killed by signal 15. [2018-11-30T01:01:08.653] [2975587.63] debug: task_p_post_term: affinity 2975587.63, task 0 [2018-11-30T01:01:08.653] [2975587.63] debug: _oom_event_monitor: No oom events detected. [2018-11-30T01:01:08.653] [2975587.63] debug: _oom_event_monitor: stopping. [2018-11-30T01:01:08.663] [2975587.63] debug: step_terminate_monitor_stop signaling condition [2018-11-30T01:01:08.663] [2975587.63] debug: Waiting for IO [2018-11-30T01:01:08.663] [2975587.63] debug: Closing debug channel [2018-11-30T01:01:08.663] [2975587.63] debug: IO handler exited, rc=0 [2018-11-30T01:01:08.665] [2975587.63] debug: get_exit_code task 0 killed by cmd [2018-11-30T01:01:08.666] [2975587.63] debug: Message thread exited [2018-11-30T01:01:08.666] [2975587.63] debug: mpi/pmi2: agent thread exit [2018-11-30T01:01:08.666] [2975587.63] done with job [2018-11-30T01:01:08.768] [2975587.batch] task 0 (57109) exited with exit code 1. [2018-11-30T01:01:08.769] [2975587.batch] debug: task_p_post_term: affinity 2975587.4294967294, task 0 [2018-11-30T01:01:08.769] [2975587.batch] debug: _oom_event_monitor: No oom events detected. [2018-11-30T01:01:08.769] [2975587.batch] debug: _oom_event_monitor: stopping. [2018-11-30T01:01:08.782] [2975587.batch] debug: step_terminate_monitor_stop signaling condition [2018-11-30T01:01:08.782] [2975587.batch] debug: get_exit_code task 0 killed by cmd [2018-11-30T01:01:08.782] [2975587.batch] job 2975587 completed with slurm_rc = 0, job_rc = 256 [2018-11-30T01:01:08.782] [2975587.batch] sending REQUEST_COMPLETE_BATCH_SCRIPT, error:0 status 256 [2018-11-30T01:01:08.784] [2975587.batch] debug: Message thread exited [2018-11-30T01:01:08.784] [2975587.batch] done with job <---------- Here extern was SIGTERMED @ 2018-11-30T01:01:08.275 but seems slurmd was not informed? So slurmd asks for state: [2018-11-30T01:01:09.276] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:10.277] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:11.277] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:12.278] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:13.279] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:14.279] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:15.280] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:16.281] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:17.281] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:18.282] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:19.283] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:29.283] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:33.362] [2975587.extern] debug: Handling REQUEST_STATE [2018-11-30T01:01:33.362] debug: _fill_registration_msg: found apparently running step 2975587.4294967295 [2018-11-30T01:01:33.365] debug: _rpc_terminate_job, uid = 450 [2018-11-30T01:01:33.365] debug: task_p_slurmd_release_resources: affinity jobid 2975587 [2018-11-30T01:01:38.284] [2975587.extern] debug: Handling REQUEST_STEP_TERMINATE [2018-11-30T01:01:38.284] [2975587.extern] debug: _handle_terminate for step=2975587.4294967295 uid=0 [2018-11-30T01:01:38.284] [2975587.extern] Sent SIGKILL signal to 2975587.4294967295 [2018-11-30T01:01:38.285] [2975587.extern] debug: Handling REQUEST_STATE Here we enter in the loop of trying to kill .extern step, but it is alreadi SIGTERMed. I am investigating exactly why this sequence happens. In the meantime: Can you please try to reproduce with an sbatch job which inside runs a 'srun sleep 1000' with a time limit of, for example 30 seconds? Do you see the error? ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #26) > Created attachment 8518 [details] > cvmfs_drain_tests.zip > > Still looking into it. They started happening again after installing cvmfs. > It was installed manually before the last time this happened as well, then I > rebuilt everything with an image that did not have it and it started working > again. It does seem to be related to that or one of its requirements that > yum installed along with it. That's strange, can it be related to the usage of cvmfs instead of the way of installing it? Specifically because you say: > When I do simple sleep tests with and without cvmfs on a newly installed > machine the jobs finish as expected and do not drain nodes. > Any thoughts on whether this could be causing it or if I am barking up the > wrong tree? Also, perhaps there is a known issue with one of the dependency > rpms? I don't see which of the installed packages could've caused any problem. I'll look at CVMFS documentation to get a better idea if it can be related. Could you confirm that the jobs that are having issues are *always* using a CVFMS filesystem?
Actually from what we are seeing it is just having it installed not necessarily using it. We only actually set up autofs for mounting of cvmfs on one rack, but the problem was showing up across all. I can’t say definitevly that it is cvmfs, but it highly coincidental that it occurred both times we tried to install it across the cluster. I have been trying to replicate on some individual nodes, but have not seem it happen on my reservation. Perhaps I am doing something different than users jobs that are. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, December 5, 2018 at 4:33 PM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 27<https://bugs.schedmd.com/show_bug.cgi?id=5913#c27> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #26<show_bug.cgi?id=5913#c26>) > Created attachment 8518 [details]<attachment.cgi?id=8518> [details]<attachment.cgi?id=8518&action=edit> > cvmfs_drain_tests.zip > > Still looking into it. They started happening again after installing cvmfs. > It was installed manually before the last time this happened as well, then I > rebuilt everything with an image that did not have it and it started working > again. It does seem to be related to that or one of its requirements that > yum installed along with it. That's strange, can it be related to the usage of cvmfs instead of the way of installing it? Specifically because you say: > When I do simple sleep tests with and without cvmfs on a newly installed > machine the jobs finish as expected and do not drain nodes. > Any thoughts on whether this could be causing it or if I am barking up the > wrong tree? Also, perhaps there is a known issue with one of the dependency > rpms? I don't see which of the installed packages could've caused any problem. I'll look at CVMFS documentation to get a better idea if it can be related. Could you confirm that the jobs that are having issues are *always* using a CVFMS filesystem? ________________________________ You are receiving this mail because: * You reported the bug.
Created attachment 8554 [details] slurmd Adding the logs using debug3 from a node that is in a state of draining from presumably the same cause. Currently have 50 nodes in the state. Naveed From: Naveed Near-Ansari <naveed@caltech.edu> Date: Wednesday, December 5, 2018 at 4:36 PM To: "bugs@schedmd.com" <bugs@schedmd.com> Subject: Re: [Bug 5913] diagnosing kill task failed Actually from what we are seeing it is just having it installed not necessarily using it. We only actually set up autofs for mounting of cvmfs on one rack, but the problem was showing up across all. I can’t say definitevly that it is cvmfs, but it highly coincidental that it occurred both times we tried to install it across the cluster. I have been trying to replicate on some individual nodes, but have not seem it happen on my reservation. Perhaps I am doing something different than users jobs that are. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, December 5, 2018 at 4:33 PM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 27<https://bugs.schedmd.com/show_bug.cgi?id=5913#c27> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #26<show_bug.cgi?id=5913#c26>) > Created attachment 8518 [details]<attachment.cgi?id=8518> [details]<attachment.cgi?id=8518&action=edit> > cvmfs_drain_tests.zip > > Still looking into it. They started happening again after installing cvmfs. > It was installed manually before the last time this happened as well, then I > rebuilt everything with an image that did not have it and it started working > again. It does seem to be related to that or one of its requirements that > yum installed along with it. That's strange, can it be related to the usage of cvmfs instead of the way of installing it? Specifically because you say: > When I do simple sleep tests with and without cvmfs on a newly installed > machine the jobs finish as expected and do not drain nodes. > Any thoughts on whether this could be causing it or if I am barking up the > wrong tree? Also, perhaps there is a known issue with one of the dependency > rpms? I don't see which of the installed packages could've caused any problem. I'll look at CVMFS documentation to get a better idea if it can be related. Could you confirm that the jobs that are having issues are *always* using a CVFMS filesystem? ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #29) > Created attachment 8554 [details] > slurmd > > Adding the logs using debug3 from a node that is in a state of draining from > presumably the same cause. Currently have 50 nodes in the state. > > Naveed I am not finding anything obvious in the logs. In that last case I only see like the jag_common_poll_data is running frequently (each 30s) until a certain point, which stops. Then, a the regular periodic REQUEST_STATE is send: ... [2018-12-03T12:40:54.283] [3095684.0] debug: jag_common_poll_data: Task average frequency = 2040 pid 406191 mem size 199984 2195892 time 4115.940000(3287+828) [2018-12-03T12:40:54.283] [3095684.0] debug: jag_common_poll_data: Task average frequency = 2038 pid 406190 mem size 194904 2190060 time 4120.200000(3411+708) [2018-12-03T12:40:54.283] [3095684.0] debug: jag_common_poll_data: Task average frequency = 2038 pid 406189 mem size 191664 2190048 time 4120.070000(3425+694) [2018-12-03T12:40:54.283] [3095684.0] debug: jag_common_poll_data: Task average frequency = 2037 pid 406188 mem size 191732 2190076 time 4121.090000(3409+711) [2018-12-03T12:40:54.284] [3095684.0] debug: jag_common_poll_data: Task average frequency = 2045 pid 406187 mem size 196816 2197996 time 4105.930000(3335+770) ... [2018-12-03T15:44:25.734] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T15:44:25.740] debug: _fill_registration_msg: found apparently running step 3095684.4294967295 [2018-12-03T15:44:25.762] [3095684.0] debug: Handling REQUEST_STATE [2018-12-03T15:44:25.773] debug: _fill_registration_msg: found apparently running step 3095684.0 [2018-12-03T15:44:25.796] [3091069.extern] debug: Handling REQUEST_STATE ... And finally all the tasks of the steps end with code 0 [2018-12-03T16:58:09.692] [3095684.0] task 63 (406190) exited with exit code 0. [2018-12-03T16:58:09.692] [3095684.0] debug: task_p_post_term: affinity 3095684.0, task 3 [2018-12-03T16:58:09.692] [3095684.0] debug: _oom_event_monitor: No oom events detected. [2018-12-03T16:58:09.692] [3095684.0] debug: _oom_event_monitor: stopping. [2018-12-03T16:58:09.792] [3095684.0] task 60 (406187) exited with exit code 0. [2018-12-03T16:58:09.793] [3095684.0] debug: task_p_post_term: affinity 3095684.0, task 0 [2018-12-03T16:58:09.793] [3095684.0] task 61 (406188) exited with exit code 0. [2018-12-03T16:58:09.793] [3095684.0] debug: task_p_post_term: affinity 3095684.0, task 1 [2018-12-03T16:58:09.793] [3095684.0] task 62 (406189) exited with exit code 0. [2018-12-03T16:58:09.793] [3095684.0] debug: task_p_post_term: affinity 3095684.0, task 2 [2018-12-03T16:58:09.793] [3095684.0] task 64 (406191) exited with exit code 0. [2018-12-03T16:58:09.793] [3095684.0] debug: task_p_post_term: affinity 3095684.0, task 4 [2018-12-03T16:58:09.793] [3095684.0] debug: No child processes [2018-12-03T16:58:09.810] [3095684.0] debug: step_terminate_monitor_stop signaling condition [2018-12-03T16:58:09.810] [3095684.0] debug: Waiting for IO [2018-12-03T16:58:09.810] [3095684.0] debug: Closing debug channel [2018-12-03T16:58:09.810] [3095684.0] debug: IO handler exited, rc=0 [2018-12-03T16:58:09.817] [3095684.0] debug: Message thread exited [2018-12-03T16:58:09.817] [3095684.0] debug: mpi/pmi2: agent thread exit [2018-12-03T16:58:09.817] [3095684.0] done with job At that point, _rpc_terminate_job is called from slurmd and the interesting thing is that it sends a signal=999, which means JOB_FAILURE, then stepd sends a sigkill to the 3095684.4294967295 step since have not received any notification of termination from it: [2018-12-03T16:58:10.435] debug: _rpc_terminate_job, uid = 450 [2018-12-03T16:58:10.435] debug: task_p_slurmd_release_resources: affinity jobid 3095684 [2018-12-03T16:58:10.435] debug: credential for job 3095684 revoked [2018-12-03T16:58:10.435] [3095684.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-12-03T16:58:10.435] [3095684.extern] debug: _handle_signal_container for step=3095684.4294967295 uid=0 signal=999 [2018-12-03T16:58:10.435] [3095684.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-12-03T16:58:10.436] [3095684.extern] debug: _handle_signal_container for step=3095684.4294967295 uid=0 signal=18 [2018-12-03T16:58:10.436] [3095684.extern] Sent signal 18 to 3095684.4294967295 [2018-12-03T16:58:10.436] [3095684.extern] debug: Handling REQUEST_SIGNAL_CONTAINER [2018-12-03T16:58:10.436] [3095684.extern] debug: _handle_signal_container for step=3095684.4294967295 uid=0 signal=15 [2018-12-03T16:58:10.436] [3095684.extern] Sent signal 15 to 3095684.4294967295 [2018-12-03T16:58:10.436] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T16:58:11.437] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T16:58:12.438] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T16:58:13.439] [3095684.extern] debug: Handling REQUEST_STATE .... [2018-12-03T17:01:31.482] [3095684.extern] debug: _handle_terminate for step=3095684.4294967295 uid=0 [2018-12-03T17:01:31.482] [3095684.extern] Sent SIGKILL signal to 3095684.4294967295 [2018-12-03T17:01:41.000] [3095684.extern] error: *** EXTERN STEP FOR 3095684 STEPD TERMINATED ON hpc-22-10 AT 2018-12-03T17:01:40 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-12-03T17:01:41.002] [3095684.extern] debug: Message thread exited [2018-12-03T17:01:41.002] [3095684.extern] done with job I will try some more tests tomorrow with your configuration. Any idea why it is a JOB_FAILURE? What does scontrol show job 3095684 shows?
It doesn’t show anything, but I ran sacct against it in case that helps. What is the best was to keep more detailed job information once the job is over? We get a lot of people asking about completed job problems and it is a little tought to get answers from them. [root@head1 ~]# scontrol show job 3095684 slurm_load_jobs error: Invalid job id specified [root@head1 ~]# sacct -j 3095684 -l JobID JobIDRaw JobName Partition MaxVMSize MaxVMSizeNode MaxVMSizeTask AveVMSize MaxRSS MaxRSSNode MaxRSSTask AveRSS MaxPages MaxPagesNode MaxPagesTask AvePages MinCPU MinCPUNode MinCPUTask AveCPU NTasks AllocCPUS Elapsed State ExitCode AveCPUFreq ReqCPUFreqMin ReqCPUFreqMax ReqCPUFreqGov ReqMem ConsumedEnergy MaxDiskRead MaxDiskReadNode MaxDiskReadTask AveDiskRead MaxDiskWrite MaxDiskWriteNode MaxDiskWriteTask AveDiskWrite AllocGRES ReqGRES ReqTRES AllocTRES ------------ ------------ ---------- ---------- ---------- -------------- -------------- ---------- ---------- ---------- ---------- ---------- -------- ------------ -------------- ---------- ---------- ---------- ---------- ---------- -------- ---------- ---------- ---------- -------- ---------- ------------- ------------- ------------- ---------- -------------- ------------ --------------- --------------- -------------- ------------ ---------------- ---------------- -------------- ------------ ------------ ---------- ---------- 3095684 3095684 180.0 any 72 05:26:16 FAILED 1:0 Unknown Unknown Unknown 1Gc 0 cpu=72,me+ cpu=72,me+ 3095684.bat+ 3095684.bat+ batch 744144K hpc-22-07 0 744144K 8112K hpc-22-07 0 8112K 0 hpc-22-07 0 0 00:00:00 hpc-22-07 0 00:00:00 1 14 05:26:16 FAILED 1:0 2.10M 0 0 0 1Gc 0 1.27M hpc-22-07 0 1.27M 1.06M hpc-22-07 0 1.06M cpu=14,me+ 3095684.ext+ 3095684.ext+ extern 5 72 05:29:47 COMPLETED 0:0 0 0 0 1Gc cpu=72,me+ 3095684.0 3095684.0 python 2295004K hpc-22-09 32 2250778.8+ 230600K hpc-22-07 0 190471.06K 4K hpc-22-09 29 1.69K 01:04:15 hpc-22-07 0 01:06:45 72 72 05:26:16 COMPLETED 0:0 2.04M Unknown Unknown Unknown 1Gc 0 29978.62M hpc-22-07 0 1017.72M 22241.50M hpc-22-07 0 431.37M cpu=72,me+
(In reply to Naveed Near-Ansari from comment #31) > It doesn’t show anything, but I ran sacct against it in case that helps. That's because the 'scontrol show job' just checks jobs in the ctld in-memory cache, and if this job has been already removed you won't get any output. sacct queries the accounting database, which in this case it shows that the batch job has failed: JobID JobIDRaw JobName Elapsed State ExitCode ------------ ------------ ---------- ---------- ---------- --------- 3095684 3095684 180.0 05:26:16 FAILED 1:0 3095684.bat+ 3095684.bat+ batch 05:26:16 FAILED 1:0 3095684.ext+ 3095684.ext+ extern 05:29:47 COMPLETED 0:0 3095684.0 3095684.0 python 05:26:16 COMPLETED 0:0 I'll continue investigating. > What is the best was to keep more detailed job information once the job is > over? We get a lot of people asking about completed job problems and it is > a little tought to get answers from them. I'd recommend setting up the jobcomp plugin: https://slurm.schedmd.com/jobcompplugins.html This will store more information than the one available in sacct, but may also duplicate some. One good approach is to enable jobcomp/elasticsearch and save all the completion data into an ElasticSearch server, while setting up a Kibana to view the data. https://slurm.schedmd.com/elasticsearch.html
It happened again over the weekend to all nodes, this time with no cvmfs. In both cases, those before and now, rpms were manually installed on the system after building, cvmfs before and novnc this time. Probably a red herring since I don’t see why that would effect anything, but thought I should mention it since the nodes from a stock install do not seem to do it. I did notice a newer 18.x version came out. Do you now recommend going to a later version? Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Tuesday, December 11, 2018 at 1:02 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 32<https://bugs.schedmd.com/show_bug.cgi?id=5913#c32> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #31<show_bug.cgi?id=5913#c31>) > It doesn’t show anything, but I ran sacct against it in case that helps. That's because the 'scontrol show job' just checks jobs in the ctld in-memory cache, and if this job has been already removed you won't get any output. sacct queries the accounting database, which in this case it shows that the batch job has failed: JobID JobIDRaw JobName Elapsed State ExitCode ------------ ------------ ---------- ---------- ---------- --------- 3095684 3095684 180.0 05:26:16 FAILED 1:0 3095684.bat+ 3095684.bat+ batch 05:26:16 FAILED 1:0 3095684.ext+ 3095684.ext+ extern 05:29:47 COMPLETED 0:0 3095684.0 3095684.0 python 05:26:16 COMPLETED 0:0 I'll continue investigating. > What is the best was to keep more detailed job information once the job is > over? We get a lot of people asking about completed job problems and it is > a little tought to get answers from them. I'd recommend setting up the jobcomp plugin: https://slurm.schedmd.com/jobcompplugins.html This will store more information than the one available in sacct, but may also duplicate some. One good approach is to enable jobcomp/elasticsearch and save all the completion data into an ElasticSearch server, while setting up a Kibana to view the data. https://slurm.schedmd.com/elasticsearch.html ________________________________ You are receiving this mail because: * You reported the bug.
I also collected all the slurmd logs from all nodes affected if you would like to see them.There are a lot of them though and all sem to be showing the same thing, for example: [2018-12-16T13:21:42.915] debug: _rpc_terminate_job, uid = 450 [2018-12-16T13:21:42.915] debug: task_p_slurmd_release_resources: affinity jobid 3134674 [2018-12-16T13:21:49.001] [3134674.extern] error: *** EXTERN STEP FOR 3134674 STEPD TERMINATED ON hpc-22-08 AT 2018-12-16T13:21:49 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-12-16T13:21:49.001] [3134674.batch] error: *** JOB 3134674 STEPD TERMINATED ON hpc-22-08 AT 2018-12-16T13:21:49 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-12-16T13:21:49.001] debug: Entering stepd_completion for 3134674.4294967295, range_first = 1, range_last = 1 Naveed From: Naveed Near-Ansari <naveed@caltech.edu> Date: Monday, December 17, 2018 at 8:16 AM To: "bugs@schedmd.com" <bugs@schedmd.com> Subject: Re: [Bug 5913] diagnosing kill task failed It happened again over the weekend to all nodes, this time with no cvmfs. In both cases, those before and now, rpms were manually installed on the system after building, cvmfs before and novnc this time. Probably a red herring since I don’t see why that would effect anything, but thought I should mention it since the nodes from a stock install do not seem to do it. I did notice a newer 18.x version came out. Do you now recommend going to a later version? Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Tuesday, December 11, 2018 at 1:02 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 32<https://bugs.schedmd.com/show_bug.cgi?id=5913#c32> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #31<show_bug.cgi?id=5913#c31>) > It doesn’t show anything, but I ran sacct against it in case that helps. That's because the 'scontrol show job' just checks jobs in the ctld in-memory cache, and if this job has been already removed you won't get any output. sacct queries the accounting database, which in this case it shows that the batch job has failed: JobID JobIDRaw JobName Elapsed State ExitCode ------------ ------------ ---------- ---------- ---------- --------- 3095684 3095684 180.0 05:26:16 FAILED 1:0 3095684.bat+ 3095684.bat+ batch 05:26:16 FAILED 1:0 3095684.ext+ 3095684.ext+ extern 05:29:47 COMPLETED 0:0 3095684.0 3095684.0 python 05:26:16 COMPLETED 0:0 I'll continue investigating. > What is the best was to keep more detailed job information once the job is > over? We get a lot of people asking about completed job problems and it is > a little tought to get answers from them. I'd recommend setting up the jobcomp plugin: https://slurm.schedmd.com/jobcompplugins.html This will store more information than the one available in sacct, but may also duplicate some. One good approach is to enable jobcomp/elasticsearch and save all the completion data into an ElasticSearch server, while setting up a Kibana to view the data. https://slurm.schedmd.com/elasticsearch.html ________________________________ You are receiving this mail because: * You reported the bug.
Any suggestions on moving forward? I have been babysitting th scheulder the last week and would really like to not being doing that over the holidays. I have already gone ahead and built 18.08.4, but not deployed it in case that is the right move. Naveed From: Naveed Near-Ansari <naveed@caltech.edu> Date: Monday, December 17, 2018 at 8:23 AM To: "bugs@schedmd.com" <bugs@schedmd.com> Subject: Re: [Bug 5913] diagnosing kill task failed I also collected all the slurmd logs from all nodes affected if you would like to see them.There are a lot of them though and all sem to be showing the same thing, for example: [2018-12-16T13:21:42.915] debug: _rpc_terminate_job, uid = 450 [2018-12-16T13:21:42.915] debug: task_p_slurmd_release_resources: affinity jobid 3134674 [2018-12-16T13:21:49.001] [3134674.extern] error: *** EXTERN STEP FOR 3134674 STEPD TERMINATED ON hpc-22-08 AT 2018-12-16T13:21:49 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-12-16T13:21:49.001] [3134674.batch] error: *** JOB 3134674 STEPD TERMINATED ON hpc-22-08 AT 2018-12-16T13:21:49 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-12-16T13:21:49.001] debug: Entering stepd_completion for 3134674.4294967295, range_first = 1, range_last = 1 Naveed From: Naveed Near-Ansari <naveed@caltech.edu> Date: Monday, December 17, 2018 at 8:16 AM To: "bugs@schedmd.com" <bugs@schedmd.com> Subject: Re: [Bug 5913] diagnosing kill task failed It happened again over the weekend to all nodes, this time with no cvmfs. In both cases, those before and now, rpms were manually installed on the system after building, cvmfs before and novnc this time. Probably a red herring since I don’t see why that would effect anything, but thought I should mention it since the nodes from a stock install do not seem to do it. I did notice a newer 18.x version came out. Do you now recommend going to a later version? Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Tuesday, December 11, 2018 at 1:02 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 32<https://bugs.schedmd.com/show_bug.cgi?id=5913#c32> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #31<show_bug.cgi?id=5913#c31>) > It doesn’t show anything, but I ran sacct against it in case that helps. That's because the 'scontrol show job' just checks jobs in the ctld in-memory cache, and if this job has been already removed you won't get any output. sacct queries the accounting database, which in this case it shows that the batch job has failed: JobID JobIDRaw JobName Elapsed State ExitCode ------------ ------------ ---------- ---------- ---------- --------- 3095684 3095684 180.0 05:26:16 FAILED 1:0 3095684.bat+ 3095684.bat+ batch 05:26:16 FAILED 1:0 3095684.ext+ 3095684.ext+ extern 05:29:47 COMPLETED 0:0 3095684.0 3095684.0 python 05:26:16 COMPLETED 0:0 I'll continue investigating. > What is the best was to keep more detailed job information once the job is > over? We get a lot of people asking about completed job problems and it is > a little tought to get answers from them. I'd recommend setting up the jobcomp plugin: https://slurm.schedmd.com/jobcompplugins.html This will store more information than the one available in sacct, but may also duplicate some. One good approach is to enable jobcomp/elasticsearch and save all the completion data into an ElasticSearch server, while setting up a Kibana to view the data. https://slurm.schedmd.com/elasticsearch.html ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #35) > Any suggestions on moving forward? I have been babysitting th scheulder the > last week and would really like to not being doing that over the holidays. I > have already gone ahead and built 18.08.4, but not deployed it in case that > is the right move. > > Naveed Naveed, I am sorry but I've not been able to find the cause of this problem. We can try the upgrade but I cannot guarantee it will not fail again. There are a lot of bug fixes though that could help on the issue. So let's try to do this to release you over the holidays. Before upgrading, take the usual/general steps: 1. Backup the database 2. Backup the statesavelocation 3. Upgrade&start the database first 4. Then upgrade other components and start slurmctld + slurmd Be sure you have enough resources in slurmdbd machine, since the conversion of the database from 17.11 to 18.08 can be intense. Specially, and *very* important enough and plenty of space in the database filesystem (>20G). You can even try to run slurmdbd in another test machine with a dump of the 17.11 database to see how much it takes to convert. Upgrade to 18.08.4, it has important fixes that make previous versions to crash. Now everything should be fine. Here some more notes: https://slurm.schedmd.com/quickstart_admin.html#upgrade When do you plan to do this? Let me know about it.
Thanks, Where does it need the space? We have only 17 G available on the patirion with /var. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, December 19, 2018 at 11:17 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 36<https://bugs.schedmd.com/show_bug.cgi?id=5913#c36> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #35<show_bug.cgi?id=5913#c35>) > Any suggestions on moving forward? I have been babysitting th scheulder the > last week and would really like to not being doing that over the holidays. I > have already gone ahead and built 18.08.4, but not deployed it in case that > is the right move. > > Naveed Naveed, I am sorry but I've not been able to find the cause of this problem. We can try the upgrade but I cannot guarantee it will not fail again. There are a lot of bug fixes though that could help on the issue. So let's try to do this to release you over the holidays. Before upgrading, take the usual/general steps: 1. Backup the database 2. Backup the statesavelocation 3. Upgrade&start the database first 4. Then upgrade other components and start slurmctld + slurmd Be sure you have enough resources in slurmdbd machine, since the conversion of the database from 17.11 to 18.08 can be intense. Specially, and *very* important enough and plenty of space in the database filesystem (>20G). You can even try to run slurmdbd in another test machine with a dump of the 17.11 database to see how much it takes to convert. Upgrade to 18.08.4, it has important fixes that make previous versions to crash. Now everything should be fine. Here some more notes: https://slurm.schedmd.com/quickstart_admin.html#upgrade When do you plan to do this? Let me know about it. ________________________________ You are receiving this mail because: * You reported the bug.
Speaking of which. I am seeing lots of /var/lib/mysql/mysql-bin.000002 style files. From my readin it should be fine to remove them if done through mysql itself. Any thought on the and purging policies for mysql used on the slurmdbdb? From: Naveed Near-Ansari <naveed@caltech.edu> Date: Wednesday, December 19, 2018 at 2:37 PM To: "bugs@schedmd.com" <bugs@schedmd.com> Subject: Re: [Bug 5913] diagnosing kill task failed Thanks, Where does it need the space? We have only 17 G available on the patirion with /var. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, December 19, 2018 at 11:17 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 36<https://bugs.schedmd.com/show_bug.cgi?id=5913#c36> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #35<show_bug.cgi?id=5913#c35>) > Any suggestions on moving forward? I have been babysitting th scheulder the > last week and would really like to not being doing that over the holidays. I > have already gone ahead and built 18.08.4, but not deployed it in case that > is the right move. > > Naveed Naveed, I am sorry but I've not been able to find the cause of this problem. We can try the upgrade but I cannot guarantee it will not fail again. There are a lot of bug fixes though that could help on the issue. So let's try to do this to release you over the holidays. Before upgrading, take the usual/general steps: 1. Backup the database 2. Backup the statesavelocation 3. Upgrade&start the database first 4. Then upgrade other components and start slurmctld + slurmd Be sure you have enough resources in slurmdbd machine, since the conversion of the database from 17.11 to 18.08 can be intense. Specially, and *very* important enough and plenty of space in the database filesystem (>20G). You can even try to run slurmdbd in another test machine with a dump of the 17.11 database to see how much it takes to convert. Upgrade to 18.08.4, it has important fixes that make previous versions to crash. Now everything should be fine. Here some more notes: https://slurm.schedmd.com/quickstart_admin.html#upgrade When do you plan to do this? Let me know about it. ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #38) > Speaking of which. I am seeing lots of /var/lib/mysql/mysql-bin.000002 > style files. From my readin it should be fine to remove them if done > through mysql itself. Any thought on the and purging policies for mysql > used on the slurmdbdb? > Well, I recommended plenty of space in /var due to the conversion of the step_table. If your step_table is not huge, there won't be big problems. A conversion for a customer with more than 70 million of job steps took 6 hours in a raid-1 setup and more than 20GB of space. Without RAID it took about 11.5h. I am guessing you don't have such big information in the database. Can you show me the select count(*) of your step and job tables? General recommendations for purge policies: - Archiving/purging as many unneeded records as possible, especially from the job/step tables since they are the highest contributing factor to the end upgrade time. Do so by using the Purge*After slurmdbd.conf options. Note that the purge takes place at the start of each purge interval. For example, if the purge time is 2 months, the purge would happen at the beginning of each month. So if you are in a hurry to purge the records you can consider initiating the purge process at an hourly rate by using the "hours" units suffix. - We had one customer with a database of ~3 million job records that took 45 minutes. Here at SchedMD, Danny's identical database took 15 minutes. So how long it takes depends largely on the hardware. - What version of MySQL are you using? We've had a number of reports that upgrading a pre-17.11 database on MySQL older than 5.5 is very slow. We recommend a >=5.5 database. Thus the reason to test the database conversion on an external server before trying in production. - Although not related to upgrade speed, some customers reported problems of transaction size limits being hit (wsrep_max_ws_size and such) when upgrading on a Galera cluster. The same database without Galera didn't hit such limits. Let me know if you have more questions.
From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Thursday, December 20, 2018 at 12:06 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 39<https://bugs.schedmd.com/show_bug.cgi?id=5913#c39> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #38<show_bug.cgi?id=5913#c38>) > Speaking of which. I am seeing lots of /var/lib/mysql/mysql-bin.000002 > style files. From my readin it should be fine to remove them if done > through mysql itself. Any thought on the and purging policies for mysql > used on the slurmdbdb? > Well, I recommended plenty of space in /var due to the conversion of the step_table. If your step_table is not huge, there won't be big problems. A conversion for a customer with more than 70 million of job steps took 6 hours in a raid-1 setup and more than 20GB of space. Without RAID it took about 11.5h. I am guessing you don't have such big information in the database. Can you show me the select count(*) of your step and job tables? MariaDB [slurm_central]> SELECT COUNT(*) from central_job_table; +----------+ | COUNT(*) | +----------+ | 3362718 | +----------+ 1 row in set (0.68 sec) MariaDB [slurm_central]> SELECT COUNT(*) from central_step_table; +----------+ | COUNT(*) | +----------+ | 7458949 | +----------+ 1 row in set (9.10 sec) General recommendations for purge policies: - Archiving/purging as many unneeded records as possible, especially from the job/step tables since they are the highest contributing factor to the end upgrade time. Do so by using the Purge*After slurmdbd.conf options. Note that the purge takes place at the start of each purge interval. For example, if the purge time is 2 months, the purge would happen at the beginning of each month. So if you are in a hurry to purge the records you can consider initiating the purge process at an hourly rate by using the "hours" units suffix. To clear up space I was planning on purging the mysql-bin logs which I believe are transation logs and really unnecessary. This should get us well over 20G free, Will also set an expire on them going forward since that wasn’t set and it should help future upgrades. We do charge for cluster usage, so I hesitant to purge actual accounting and usage data in case we need to go back to it. - We had one customer with a database of ~3 million job records that took 45 minutes. Here at SchedMD, Danny's identical database took 15 minutes. So how long it takes depends largely on the hardware. - What version of MySQL are you using? We've had a number of reports that upgrading a pre-17.11 database on MySQL older than 5.5 is very slow. We recommend a >=5.5 database. Thus the reason to test the database conversion on an external server before trying in production. It is MariaDB 5.5.42. Can we upgrade live if it takes that long to update the db? Any precautions I should take if it takes that long? Since we have a primary and backup, should we do it in any particular order? - Although not related to upgrade speed, some customers reported problems of transaction size limits being hit (wsrep_max_ws_size and such) when upgrading on a Galera cluster. The same database without Galera didn't hit such limits. Let me know if you have more questions. Is there anything in our slurm.conf that needs to be changed going to 18.x? Thanks, Naveed *
> select count(*) of your step and job tables? > MariaDB [slurm_central]> SELECT COUNT(*) from central_job_table; > +----------+ > | COUNT(*) | > +----------+ > | 3362718 | > +----------+ > > 1 row in set (0.68 sec) > MariaDB [slurm_central]> SELECT COUNT(*) from central_step_table; > +----------+ > | COUNT(*) | > +----------+ > | 7458949 | > +----------+ > > 1 row in set (9.10 sec) This doesn't seem a huge amount of data. I am confident enough to say your upgrade will finish in little time. > To clear up space I was planning on purging the mysql-bin logs which I > believe are transation logs and really unnecessary. This should get us well > over 20G free, Will also set an expire on them going forward since that > wasn’t set and it should help future upgrades. That's an option. It must be done from the database, not from the OS: PURGE BINARY LOGS TO 'binlogname'; PURGE BINARY LOGS BEFORE 'datetimestamp'; https://dba.stackexchange.com/questions/41050/is-it-safe-to-delete-mysql-bin-files > We do charge for cluster usage, so I hesitant to purge actual accounting and > usage data in case we need to go back to it. Well, you have to consider not saving eternal data but purge it at some time. Remember you can archive it into files. > It is MariaDB 5.5.42. You should be fine at that version. > Can we upgrade live if it takes that long to update the db? Any precautions > I should take if it takes that long? No, you first must run slurmdbd and finish the conversion before running slurmctld. > Since we have a primary and backup, should we do it in any particular order? First primary, when everything related to ctld works, upgrade the backup. > Is there anything in our slurm.conf that needs to be changed going to 18.x? Maybe yes: NOTE: slurmd and slurmctld will now fatal if two incompatible mechanisms for enforcing memory limits are set. This makes incompatible the use of task/cgroup memory limit enforcing (Constrain[RAM|Swap]Space=yes) with MemLimitEnforce=yes or with JobAcctGatherParams=OverMemoryKill, which could cause problems when a task is killed by one of them while the other is at the same time managing that task. The NoOverMemoryKill setting has been deprecated in favour of OverMemoryKill, since now the default is *NOT* to have any memory enforcement mechanism. to summarize, or you have OverMemoryKill set, or you have ConstrainRamSpace=yes in cgroup.conf, but never both at the same time. slurmctld will warn you if inconsistent options detected, so that's not a big deal. I recommend read through the RELEASE_NOTES before upgrading. i.e also: If you are using OpenMpi compiled against Slurm PMI you will likely need to recompile OpenMpi and all the libraries linked to it. That's because Slurm's libpmi.so is version dependent on libslurmfull.so, and OpenMPI links against libpmi.so. If using SPANK plugins that use the Slurm APIs, they should be recompiled when upgrading Slurm to a new major release. .. Please read through them and if you have any question just ask.
note: I know you already changed the NoOverMemoryKill, but wanted to comment it just to be sure.
Naveed, Please let me know how the process is going. Thanks Felip
Hey Naveed, May you give me any update about the status of this bug?
We have not yet upgraded slurm since there were space constraints and a few other things we needed to do first. We also updated the kernel, mofed, and gpfs to see if that may have been the ultimate cause. Do far we have not been seeing the issue again, but am hesitant to says it is solved as we have had times were it doesn’t happen as well. From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, January 9, 2019 at 8:30 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 44<https://bugs.schedmd.com/show_bug.cgi?id=5913#c44> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Hey Naveed, May you give me any update about the status of this bug? ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #45) > We have not yet upgraded slurm since there were space constraints and a few > other things we needed to do first. Hello Naveed, Have you managed to move things forward? Do we have any new information about this issue? Thanks!
(In reply to Felip Moll from comment #46) > (In reply to Naveed Near-Ansari from comment #45) > > We have not yet upgraded slurm since there were space constraints and a few > > other things we needed to do first. > > Hello Naveed, > > Have you managed to move things forward? Do we have any new information > about this issue? > > Thanks! Hi Naveed, This is a ping. Regards
We have not yet updated since the kernel and gpfs upgrades have seemed to mitigate the issue. We still are hoping to upgrade for some of the new features, but it isn’t scheduled yet. What version would you recommend at this point? From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Tuesday, February 5, 2019 at 9:44 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 47<https://bugs.schedmd.com/show_bug.cgi?id=5913#c47> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Felip Moll from comment #46<show_bug.cgi?id=5913#c46>) > (In reply to Naveed Near-Ansari from comment #45<show_bug.cgi?id=5913#c45>) > > We have not yet upgraded slurm since there were space constraints and a few > > other things we needed to do first. > > Hello Naveed, > > Have you managed to move things forward? Do we have any new information > about this issue? > > Thanks! Hi Naveed, This is a ping. Regards ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #48) > We have not yet updated since the kernel and gpfs upgrades have seemed to > mitigate the issue. That's very interesting. Can you tell me on which kernel version are you now? > We still are hoping to upgrade for some of the new > features, but it isn’t scheduled yet. What version would you recommend at > this point? 18.08.5-2 :) https://download.schedmd.com/slurm/slurm-18.08.5-2.tar.bz2
We are now on 3.10.0-957.1.3.el7.x86_64 with gpfs 5.0.2 We were on 3.10.0-514.2.2.el7.x86_64 with gpfs 5.0.0 From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Tuesday, February 5, 2019 at 10:15 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 49<https://bugs.schedmd.com/show_bug.cgi?id=5913#c49> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> (In reply to Naveed Near-Ansari from comment #48<show_bug.cgi?id=5913#c48>) > We have not yet updated since the kernel and gpfs upgrades have seemed to > mitigate the issue. That's very interesting. Can you tell me on which kernel version are you now? > We still are hoping to upgrade for some of the new > features, but it isn’t scheduled yet. What version would you recommend at > this point? 18.08.5-2 :) https://download.schedmd.com/slurm/slurm-18.08.5-2.tar.bz2 ________________________________ You are receiving this mail because: * You reported the bug.
Hi Naveed, I haven't closed this bug yet because we have other customers suffering from the same issue. I am interested in knowing if you have received the error again during this time. If so, would you mind to paste here the output from a node of: $] mount|grep cgroup Also, do you remember if you modified any system configuration during the kernel and gpfs upgrade? like SELinux or similar? Thanks
I have on rare occasions seen the problem, but it is not pervasive like it was before. Maybe a single job every week or 3. We mostly changed the kernel, gpfs, and ofed which seemed to have solved the issue. Here is the cgroups on a compute node: tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/blkio,cpuacct,memory,freezer type cgroup (rw,nosuid,nodev,noexec,relatime,blkio,freezer,memory,cpuacct) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/cpu type cgroup (rw,nosuid,nodev,noexec,relatime,cpu) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Friday, March 15, 2019 at 8:53 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 51<https://bugs.schedmd.com/show_bug.cgi?id=5913#c51> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Hi Naveed, I haven't closed this bug yet because we have other customers suffering from the same issue. I am interested in knowing if you have received the error again during this time. If so, would you mind to paste here the output from a node of: $] mount|grep cgroup Also, do you remember if you modified any system configuration during the kernel and gpfs upgrade? like SELinux or similar? Thanks ________________________________ You are receiving this mail because: * You reported the bug.
> cgroup on /sys/fs/cgroup/blkio,cpuacct,memory,freezer type cgroup > (rw,nosuid,nodev,noexec,relatime,blkio,freezer,memory,cpuacct) Hi Naveed, we've finally found the cause of the race between multiple cgroup plugins. The line above causes the race to happen, if you could just split the mounts, i.e. like: cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpu,cpuacct) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,net_cls,net_prio) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,pids) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,hugetlb) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,memory) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,perf_event) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,freezer) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,cpuset) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,blkio) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,seclabel,devices) The race condition would be avoided. The other situation where the race happens is when this mount line is set and the following settings are all set: PrologFlags=Contain + ProcTrackType=proctrack/cgroup + JobAcctGatherType=jobacct_gather/cgroup If one of these settings isn't set, I don't see the race. We're working on a workaround, but in the meantime I would ask you why do you have this cgroup setting? Changing it may require to modify /etc/systemd/system.conf and regenerating your host-only initrd, or just generate a non-host-only initrd.
Naveed, I identified the problem with mixing jobacct_gather/cgroup and proctrack/cgroup. It turns out that the jobacct_gather/cgroup moves the pids of tasks in the extern step into something like: /sys/fs/cgroup/freezer/slurm_gamba1/uid_1000/job_27/step_extern/task_0/cgroup.procs , but proctrack/cgroup expects those to be in ...job_27/step_extern/cgroup.procs. This causes that when the job finishes, the processes inside step_extern are not killed since a call to xcgroup_get_pids provided by proctrack/cgroup returns no pids when it tries to read cgroup.procs. Then, since there are no pids to kill, trying to send a signal to the step is useless and therefore the processes do not die, the cgroup is not removed, and the job doesn't finish (CG state). After a timeout, the job is flushed and the node set to drain. The only piece left in the puzzle is that this is happening to me *only* when the cgroup mountpoints are shared, like: cgroup on /sys/fs/cgroup/freezer,memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory,freezer) In any case, switching from jobacct_gather/cgroup to linux , OR proctrack/cgroup to linuxproc, OR disabling the flag Contain(and X11) should workaround the problem. From these 3 options I would go for the jobacct_gather/linux one. I don't know if your previous situation had a shared mountpoint or not, but since things seems to be clear now and you don't have the problem anymore I am closing this bug. The issue will continue to be tracked in our internal bug 6201. Thank you for reporting. *** This ticket has been marked as a duplicate of ticket 6201 ***
Created attachment 10189 [details] slurmd Hi, Sorry to open this up again after so much time. We have started getting this issue again. We have been running with: JobAcctGatherType=jobacct_gather/linux What would your next suggestion be? Is this problem seen in later versions of slurm? If not, which would you suggest and what config changes would you make for the newer version. Here is an example: [root@head1 cluster_docs]# scontrol show node hpc-22-09 NodeName=hpc-22-09 Arch=x86_64 CoresPerSocket=16 CPUAlloc=29 CPUErr=0 CPUTot=32 CPULoad=30.01 AvailableFeatures=skylake ActiveFeatures=skylake Gres=(null) NodeAddr=hpc-22-09 NodeHostName=hpc-22-09 Version=17.11 OS=Linux 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 RealMemory=188000 AllocMem=186368 FreeMem=154563 Sockets=2 Boards=1 State=MIXED+DRAIN ThreadsPerCore=1 TmpDisk=0 Weight=10 Owner=N/A MCS_label=N/A Partitions=any BootTime=2019-05-03T13:22:05 SlurmdStartTime=2019-05-03T13:24:00 CfgTRES=cpu=32,mem=188000M,billing=32 AllocTRES=cpu=29,mem=182G CapWatts=n/a CurrentWatts=0 LowestJoules=0 ConsumedJoules=0 ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s Reason=Kill task failed [root@2019-05-10T08:58:23] And I have attached the slurmd log from that host. Thanks. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, March 27, 2019 at 9:24 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Felip Moll<mailto:felip.moll@schedmd.com> changed bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> What Removed Added Status OPEN RESOLVED Resolution --- DUPLICATE Comment # 54<https://bugs.schedmd.com/show_bug.cgi?id=5913#c54> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Naveed, I identified the problem with mixing jobacct_gather/cgroup and proctrack/cgroup. It turns out that the jobacct_gather/cgroup moves the pids of tasks in the extern step into something like: /sys/fs/cgroup/freezer/slurm_gamba1/uid_1000/job_27/step_extern/task_0/cgroup.procs , but proctrack/cgroup expects those to be in ...job_27/step_extern/cgroup.procs. This causes that when the job finishes, the processes inside step_extern are not killed since a call to xcgroup_get_pids provided by proctrack/cgroup returns no pids when it tries to read cgroup.procs. Then, since there are no pids to kill, trying to send a signal to the step is useless and therefore the processes do not die, the cgroup is not removed, and the job doesn't finish (CG state). After a timeout, the job is flushed and the node set to drain. The only piece left in the puzzle is that this is happening to me *only* when the cgroup mountpoints are shared, like: cgroup on /sys/fs/cgroup/freezer,memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory,freezer) In any case, switching from jobacct_gather/cgroup to linux , OR proctrack/cgroup to linuxproc, OR disabling the flag Contain(and X11) should workaround the problem. From these 3 options I would go for the jobacct_gather/linux one. I don't know if your previous situation had a shared mountpoint or not, but since things seems to be clear now and you don't have the problem anymore I am closing this bug. The issue will continue to be tracked in our internal bug 6201<show_bug.cgi?id=6201>. Thank you for reporting. *** This bug has been marked as a duplicate of bug 6201<show_bug.cgi?id=6201> *** ________________________________ You are receiving this mail because: * You reported the bug.
Created attachment 10197 [details] caltech-slurmd Another log that may be helpful From: Naveed Near-Ansari <naveed@caltech.edu> Date: Friday, May 10, 2019 at 10:38 AM To: "bugs@schedmd.com" <bugs@schedmd.com> Subject: Re: [Bug 5913] diagnosing kill task failed Hi, Sorry to open this up again after so much time. We have started getting this issue again. We have been running with: JobAcctGatherType=jobacct_gather/linux What would your next suggestion be? Is this problem seen in later versions of slurm? If not, which would you suggest and what config changes would you make for the newer version. Here is an example: [root@head1 cluster_docs]# scontrol show node hpc-22-09 NodeName=hpc-22-09 Arch=x86_64 CoresPerSocket=16 CPUAlloc=29 CPUErr=0 CPUTot=32 CPULoad=30.01 AvailableFeatures=skylake ActiveFeatures=skylake Gres=(null) NodeAddr=hpc-22-09 NodeHostName=hpc-22-09 Version=17.11 OS=Linux 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 RealMemory=188000 AllocMem=186368 FreeMem=154563 Sockets=2 Boards=1 State=MIXED+DRAIN ThreadsPerCore=1 TmpDisk=0 Weight=10 Owner=N/A MCS_label=N/A Partitions=any BootTime=2019-05-03T13:22:05 SlurmdStartTime=2019-05-03T13:24:00 CfgTRES=cpu=32,mem=188000M,billing=32 AllocTRES=cpu=29,mem=182G CapWatts=n/a CurrentWatts=0 LowestJoules=0 ConsumedJoules=0 ExtSensorsJoules=n/s ExtSensorsWatts=0 ExtSensorsTemp=n/s Reason=Kill task failed [root@2019-05-10T08:58:23] And I have attached the slurmd log from that host. Thanks. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, March 27, 2019 at 9:24 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Felip Moll<mailto:felip.moll@schedmd.com> changed bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> What Removed Added Status OPEN RESOLVED Resolution --- DUPLICATE Comment # 54<https://bugs.schedmd.com/show_bug.cgi?id=5913#c54> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Naveed, I identified the problem with mixing jobacct_gather/cgroup and proctrack/cgroup. It turns out that the jobacct_gather/cgroup moves the pids of tasks in the extern step into something like: /sys/fs/cgroup/freezer/slurm_gamba1/uid_1000/job_27/step_extern/task_0/cgroup.procs , but proctrack/cgroup expects those to be in ...job_27/step_extern/cgroup.procs. This causes that when the job finishes, the processes inside step_extern are not killed since a call to xcgroup_get_pids provided by proctrack/cgroup returns no pids when it tries to read cgroup.procs. Then, since there are no pids to kill, trying to send a signal to the step is useless and therefore the processes do not die, the cgroup is not removed, and the job doesn't finish (CG state). After a timeout, the job is flushed and the node set to drain. The only piece left in the puzzle is that this is happening to me *only* when the cgroup mountpoints are shared, like: cgroup on /sys/fs/cgroup/freezer,memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory,freezer) In any case, switching from jobacct_gather/cgroup to linux , OR proctrack/cgroup to linuxproc, OR disabling the flag Contain(and X11) should workaround the problem. From these 3 options I would go for the jobacct_gather/linux one. I don't know if your previous situation had a shared mountpoint or not, but since things seems to be clear now and you don't have the problem anymore I am closing this bug. The issue will continue to be tracked in our internal bug 6201<show_bug.cgi?id=6201>. Thank you for reporting. *** This bug has been marked as a duplicate of bug 6201<show_bug.cgi?id=6201> *** ________________________________ You are receiving this mail because: * You reported the bug.
Hi Naveed, I've been analyzing your logs. This is not the same situation than before. Before it was clearly a problem with killing the extern step. This was because the jobacct gather plugin ends the tasks which are under step_X/task_X directories in the cgroup, but does nothing with the extern step. Since the extern step is in task_X and its manager is then proctrack/cgroup, and cgroup doesn't look into that directory, it failed to kill the extern step processes. You saw this error like this in your previous logs: [2018-12-03T17:01:21.481] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T17:01:21.481] [3095684.extern] debug: Handling REQUEST_STEP_TERMINATE [2018-12-03T17:01:21.481] [3095684.extern] debug: _handle_terminate for step=3095684.4294967295 uid=0 [2018-12-03T17:01:21.481] [3095684.extern] Sent SIGKILL signal to 3095684.4294967295 [2018-12-03T17:01:31.482] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T17:01:31.482] [3095684.extern] debug: Handling REQUEST_STEP_TERMINATE [2018-12-03T17:01:31.482] [3095684.extern] debug: _handle_terminate for step=3095684.4294967295 uid=0 [2018-12-03T17:01:31.482] [3095684.extern] Sent SIGKILL signal to 3095684.4294967295 ^^^^^^ repeated many many times ^^^^^ and then: [2018-12-03T17:01:41.000] [3095684.extern] error: *** EXTERN STEP FOR 3095684 STEPD TERMINATED ON hpc-22-10 AT 2018-12-03T17:01:40 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-12-03T17:01:41.002] [3095684.extern] debug: Message thread exited [2018-12-03T17:01:41.002] [3095684.extern] done with job This time is different. The extern step cannot be killed, but neither the regular steps: [2019-05-10T08:58:24.000] [4515894.extern] error: *** EXTERN STEP FOR 4515894 STEPD TERMINATED ON hpc-22-09 AT 2019-05-10T08:58:23 DUE TO JOB NOT ENDING WITH SIGNALS *** [2019-05-10T08:58:24.000] [4515894.0] error: *** STEP 4515894.0 STEPD TERMINATED ON hpc-22-09 AT 2019-05-10T08:58:23 DUE TO JOB NOT ENDING WITH SIGNALS *** This can be a normal situation on a node which has a problem in the filesystem or some similar issue with I/O. Can you please ensure this is not the case? Is it happening frequently or has it been just this time?
I don’t believe it is now a problem with IO, though it may have been for some jobs. It occurred on. Almost all jobs on our skylake nodes for about 2 weeks, but didn’t happen on our Broadwell gpu nodes. I have been playing whack a mole to reboot and bring back up these nodes as it was happening since out queuetimes were starting to skyrocket since jobs weren’t going to the draining nodes. One feature that would help in the newer one is the ability to specify the state when rebooted after an “scontrol reboot”, since I was needing to reboot and then come back and reopen the nodes. Do you know if there is anything in newer version that could mitigate the issues we have been seeing? What is the current suggested version? Any modifications we should be making to out config when moving to 18? How long do you think the db upgrade portion would take? That is the part I am most concerned about in a update. Thanks. Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Tuesday, May 14, 2019 at 8:30 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 57<https://bugs.schedmd.com/show_bug.cgi?id=5913#c57> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Hi Naveed, I've been analyzing your logs. This is not the same situation than before. Before it was clearly a problem with killing the extern step. This was because the jobacct gather plugin ends the tasks which are under step_X/task_X directories in the cgroup, but does nothing with the extern step. Since the extern step is in task_X and its manager is then proctrack/cgroup, and cgroup doesn't look into that directory, it failed to kill the extern step processes. You saw this error like this in your previous logs: [2018-12-03T17:01:21.481] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T17:01:21.481] [3095684.extern] debug: Handling REQUEST_STEP_TERMINATE [2018-12-03T17:01:21.481] [3095684.extern] debug: _handle_terminate for step=3095684.4294967295 uid=0 [2018-12-03T17:01:21.481] [3095684.extern] Sent SIGKILL signal to 3095684.4294967295 [2018-12-03T17:01:31.482] [3095684.extern] debug: Handling REQUEST_STATE [2018-12-03T17:01:31.482] [3095684.extern] debug: Handling REQUEST_STEP_TERMINATE [2018-12-03T17:01:31.482] [3095684.extern] debug: _handle_terminate for step=3095684.4294967295 uid=0 [2018-12-03T17:01:31.482] [3095684.extern] Sent SIGKILL signal to 3095684.4294967295 ^^^^^^ repeated many many times ^^^^^ and then: [2018-12-03T17:01:41.000] [3095684.extern] error: *** EXTERN STEP FOR 3095684 STEPD TERMINATED ON hpc-22-10 AT 2018-12-03T17:01:40 DUE TO JOB NOT ENDING WITH SIGNALS *** [2018-12-03T17:01:41.002] [3095684.extern] debug: Message thread exited [2018-12-03T17:01:41.002] [3095684.extern] done with job This time is different. The extern step cannot be killed, but neither the regular steps: [2019-05-10T08:58:24.000] [4515894.extern] error: *** EXTERN STEP FOR 4515894 STEPD TERMINATED ON hpc-22-09 AT 2019-05-10T08:58:23 DUE TO JOB NOT ENDING WITH SIGNALS *** [2019-05-10T08:58:24.000] [4515894.0] error: *** STEP 4515894.0 STEPD TERMINATED ON hpc-22-09 AT 2019-05-10T08:58:23 DUE TO JOB NOT ENDING WITH SIGNALS *** This can be a normal situation on a node which has a problem in the filesystem or some similar issue with I/O. Can you please ensure this is not the case? Is it happening frequently or has it been just this time? ________________________________ You are receiving this mail because: * You reported the bug.
(In reply to Naveed Near-Ansari from comment #58) > I don’t believe it is now a problem with IO, though it may have been for > some jobs. It occurred on almost all jobs on our skylake nodes for about 2 > weeks, but didn’t happen on our Broadwell gpu nodes. I understand then that you are suffering this issue continuously now. Did you do any change 2 weeks ago?. I can see also that jag_common_poll_data is invoked for gathering statistics about pids in extern, batch and .0 steps. After certain point, [2019-05-09T13:37:09.082], we don't see any more call for this job to gather those statistics, which would could mean no more pids exist or slurmstepd is stuck. It seems the situation matches the second option - if we look for example at pid 175238 we see it later, when the job is trying to be terminated: [2019-05-09T13:37:03.833] [4515894.batch] debug: jag_common_poll_data: Task average frequency = 0 pid 175238 mem size 24448 4456380 time 4.780000(1+3) .... 2019-05-10T08:55:23.220] [4515894.0] Sent SIGKILL signal to 4515894.0 [2019-05-10T08:55:23.220] [4515894.extern] debug: Handling REQUEST_STATE [2019-05-10T08:55:24.005] [4515894.batch] task 0 (175238) exited with exit code 143. This pid ends as expected (143 usually means the application caught a SIGTERM signal), but then slurm continues trying to send sigkill to the step 0. The question here is why slurm is trying to still kill step 0, batch and extern steps. Are still stuck pids around that cannot be killed? It would be very helpful if you could look at /sys/fs/cgroup/freezer/slurm/../ subtree looking for those pids. Also I see the job is terminated, can you look at slurmctld logs and tell me if it was user-cancelled or slurmctld-cancelled due to timeout or similar? [2019-05-10T08:54:52.735] debug: _rpc_terminate_job, uid = 450 [2019-05-10T08:54:52.856] [4515894.extern] debug: Handling REQUEST_SIGNAL_CONTAINER Finally, what kind of job is 4515894? can you show me the batch script? I am going to look if there's any situation that makes proctrack continue killing jobs even if you don't have any pid. > One feature that would help in the newer one is the ability to specify the > state when rebooted after an “scontrol reboot”, since I was needing to > reboot and then come back and reopen the nodes. It's already there since 18.08, see RELEASE_NOTES: commit c093689c382f3917a4f4b6f54dba47c697b58db6 Author: Brian Christiansen <brian@schedmd.com> AuthorDate: Wed Jul 18 23:18:57 2018 -0600 Commit: Tim Wickberg <tim@schedmd.com> CommitDate: Wed Aug 1 16:39:19 2018 -0600 Add nextstate to scontrol reboot to dictate what state of node is after reboot. > Do you know if there is > anything in newer version that could mitigate the issues we have been > seeing? For the already known issue which is a race between different cgroup plugins, there's not a final fix yet. For your last issue, I cannot say it is due to Slurm fault yet. > What is the current suggested version? At this moment 18.08.7 since 19.05.0 is not released yet. > Any modifications we should be making to out config when moving to 18? How long do you think the db > upgrade portion would take? That is the part I am most concerned about in a > update. If you are concerned about the upgrade process I would suggest to open a new bug to keep track of it and be able to provide proper assistance. I wouldn't like to mix different issues in this bug. Depending on your configurations, you may need to fix your job_submit plugin and the OverMemoryKill setting in slurm.conf. It is important to read RELEASE_NOTES before any attempt to upgrade, and also https://slurm.schedmd.com/quickstart_admin.html#upgrade. Thanks
I would also find interesting to get some messages that appear at a debug3 level. debug3 is a bit hardcore, but if you are able to reproduce the issue and enable this in slurmd, it would help me to see what's going on in the cgroup infraestructure. The messages I am interested comes from _handle_signal_container() and its calls. Also, would you be able to apply a debug patch to your current Slurm installation if I provide it, or would it be too complicated? One possibility is we may be facing another issue with your mountpoints. cgroup on /sys/fs/cgroup/blkio,cpuacct,memory,freezer type cgroup (rw,nosuid,nodev,noexec,relatime,blkio,freezer,memory,cpuacct) these kind of mountpoints are set by Bright Cluster Manager, http://support.brightcomputing.com/manuals/8.0/admin-manual.pdf --> 12.8.1 Are you using bright? Thanks
Hi Naveed, Just to recap the initial issue was due to using the same mountpoint with memory and freezer cgroup subsystems. The fact that you saw this issue after installing some packages mean that the initrd image was rebuilt and the mounpoints changed. When you upgraded the kernel this issue disappeared. After a while you had a similar problem, but the logs showed that was not the same issue. At that point I was waiting for a response on comment 59 and comment 60. Can you please indicate me if you are still suffering this issue? If so, can you provide me with the feedback needed from these last comments? Otherwise I will close the bug as a dup of 6201 just like before. Thanks Felip
Thanks for reaching back out. I somehow missed your last message. We are using bright, but not for slurm at all. We have had these kill task failed issues a few times Since the beginning of may, but not since around the 19th. If we see this crop up again we may be able to increase the debug level for slurmd on the nodes. We don’t have particularly large disks, so would prefer to make that change when the problem crops up again. We are considering doing an upgrade in the next few weeks. What is the current recommendation for the version to run? Would it we 19.05.0? Can we upgrade directly to that from 17.11.7? Thanks, Naveed From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Monday, June 3, 2019 at 8:15 AM To: Naveed Near-Ansari <naveed@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed At that point I was waiting for a response on comment 59<show_bug.cgi?id=5913#c59> and comment 60<show_bug.cgi?id=5913#c60>. Can you please indicate me if you are still suffering this issue? If so, can you provide me with the feedback needed from these last comments? Otherwise I will close the bug as a dup of 6201 just like before. Thanks Felip
(In reply to Naveed Near-Ansari from comment #62) > Thanks for reaching back out. I somehow missed your last message. > > We are using bright, but not for slurm at all. If it is mounting freezer and memory cgroup subsystems on the same directory that's enough to raise the race whenever you use task/cgroup and proctrack/cgroup. > We have had these kill task failed issues a few times Since the beginning of > may, but not since around the 19th. If we see this crop up again we may be > able to increase the debug level for slurmd on the nodes. We don’t have > particularly large disks, so would prefer to make that change when the > problem crops up again. Ok, that would be useful, specially with a level of debug2 in the slurmds. > We are considering doing an upgrade in the next few weeks. What is the > current recommendation for the version to run? Would it we 19.05.0? Can we > upgrade directly to that from 17.11.7? I wouldn't recommend 19.05.0 unless you need any of the very latest features it provides. The reason as with any other software is that this is the .0 release of a major release and stability has not been intensively tested in production sites yet. Of course you are welcome to test it but if you are concerned about stability I'd go to the last 18.08, or wait until 19.05.2 or later. Slurm can be upgraded from version 17.11 or 18.08 to version 19.05 without loss of jobs or other state information.
Hi Naveed, Can you give me a status about this bug (see comment 61)? Have you finally upgraded? As you would've guessed it's already safer to upgrade to 19.05 versions. Thanks
I can tell you we have NOT upgraded yet, but now that a dot release of 19 is viable, we plan to. Naveed is out of town, but plans to start the upgrade in the coming weeks upon his return. Thanks. -Aaron From: "bugs@schedmd.com" <bugs@schedmd.com> Date: Wednesday, July 31, 2019 at 4:46 AM To: Aaron McKinnon <mckinnon@caltech.edu> Subject: [Bug 5913] diagnosing kill task failed Comment # 64<https://bugs.schedmd.com/show_bug.cgi?id=5913#c64> on bug 5913<https://bugs.schedmd.com/show_bug.cgi?id=5913> from Felip Moll<mailto:felip.moll@schedmd.com> Hi Naveed, Can you give me a status about this bug (see comment 61<show_bug.cgi?id=5913#c61>)? Have you finally upgraded? As you would've guessed it's already safer to upgrade to 19.05 versions. Thanks ________________________________ You are receiving this mail because: * You are on the CC list for the bug.
Okay, Please keep me posted about any news.
(In reply to Felip Moll from comment #66) > Okay, > > Please keep me posted about any news. Hi Naveed, Aaron. Since we have had some time without relevant information from this bug and since you are planning an upgrade I am closing this issue now. If you see this problem again, please reopen as needed and provide slurmd and slurmctld logs at debug2. Thank you for your comprehension.
[ Autoreply; I'm not here. Beep. ] I'm on vacation through September 8th. There's no internet access where I'll be staying, but I'll try to check mail every couple or three days by going to someplace where I can get connected. If your message is about something that could be handled by someone else in the systems group, you could re-send it to one of the IMSS "help" aliases. If you need to contact me before I get back, 715 258 7054 is the phone number I can be reached at. You can also try my cell phone (323 362 8760), although cell phone coverage usually isn't very good where I'll be. --------------- Mark Bartelt California Institute of Technology Pasadena, California 91125 626 395 2522 mark@caltech.edu http://w3.hpc.caltech.edu/~mark