Hi everyone, we are using GPFS 4.1.0.8 with 4 servers and 850 clients. Our GPFS setup is fairly new, we are still in the testing phase. A few days ago, we had some problems in the cluster which seemed to have started with deadlocks on a small number of nodes. To be better prepared for this scenario, I would like to install a callback for Event deadlockDetected. But this is a local event and the callback is executed on the client nodes, from which I cannot even send an email. Is it possible using mm-commands to instead delegate the callback to the servers (Nodeclass nsdNodes)? I guess it would be possible to use a callback of the form "ssh nsd0 /root/bin/deadlock-callback.sh", but then it is contingent upon server nsd0 being available. The mm-command style "-N nsdNodes" would more reliable in my opinion, because it would be run on all servers. On the servers, I can then check to actually only execute the script on the cluster manager. Thanks Roland -- Dr. Roland Pabel Regionales Rechenzentrum der Universität zu Köln (RRZK) Weyertal 121, Raum 3.07 D-50931 Köln Tel.: +49 (221) 470-89589 E-Mail: pabel@uni-koeln.de
Some general thoughts on “deadlocks” and automated deadlock detection. I personally don’t like the term “deadlock” as it implies a condition that won’t ever resolve itself. In GPFS terms, a deadlock is really a “long RPC waiter” over a certain threshold. RPCs that wait on certain events can and do occur and they can take some time to complete. This is not necessarily a condition that is a problem, but you should be looking into them. GPFS does have automated deadlock detection and collection, but in the early releases it was … well.. it’s not very “robust”. With later releases (4.2) it’s MUCH better. I personally don’t rely on it because in larger clusters it can be too aggressive and depending on what’s really going on it can make things worse. This statement is my opinion and it doesn’t mean it’s not a good thing to have. :-) On the point of what commands to execute and what to collect – be careful about long running callback scripts and executing commands on other nodes. Depending on what the issues is, you could end up causing a deadlock or making it worse. Some basic data collection, local to the node with the long RPC waiter is a good thing. Test them well before deploying them. And make sure that you don’t conflict with the automated collections. (which you might consider turning off) For my larger clusters, I dump the cluster waiters on a regular basis (once a minute: mmlsnode –N waiters –L), count the types and dump them into a database for graphing via Grafana. This doesn’t help me with true deadlock alerting, but it does give me insight into overall cluster behavior. If I see large numbers of long waiters I will (usually) go and investigate them on a cases by case basis. If you have large numbers of long RPC waiters on an ongoing basis, it's an indication of a larger problem that should be investigated. A few here and there is not a cause for real alarm in my experience. Last – if you have a chance to upgrade to 4.1.1 or 4.2, I would encourage you to do so as the deadlock detection has improved quite a bit. Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid robert.oesterlin@nuance.com From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Roland Pabel <dr.roland.pabel@gmail.com<mailto:dr.roland.pabel@gmail.com>> Organization: RRZK Uni Köln Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Tuesday, April 12, 2016 at 3:03 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: [gpfsug-discuss] Executing Callbacks on other Nodes Hi everyone, we are using GPFS 4.1.0.8 with 4 servers and 850 clients. Our GPFS setup is fairly new, we are still in the testing phase. A few days ago, we had some problems in the cluster which seemed to have started with deadlocks on a small number of nodes. To be better prepared for this scenario, I would like to install a callback for Event deadlockDetected. But this is a local event and the callback is executed on the client nodes, from which I cannot even send an email. Is it possible using mm-commands to instead delegate the callback to the servers (Nodeclass nsdNodes)? I guess it would be possible to use a callback of the form "ssh nsd0 /root/bin/deadlock-callback.sh", but then it is contingent upon server nsd0 being available. The mm-command style "-N nsdNodes" would more reliable in my opinion, because it would be run on all servers. On the servers, I can then check to actually only execute the script on the cluster manager. Thanks Roland -- Dr. Roland Pabel Regionales Rechenzentrum der Universität zu Köln (RRZK) Weyertal 121, Raum 3.07 D-50931 Köln Tel.: +49 (221) 470-89589 E-Mail: pabel@uni-koeln.de<mailto:pabel@uni-koeln.de> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Hi Bob, thanks for your remarks. I already understood that deadlocks are more timeouts than "tangled up balls of code". I was not (yet) planning on changing the whole routine, I'd just like to get a notice when something unexpected happens in the cluster. So, first, I just want to write these notices into a file and email it once it reaches a certain size.
From what you are saying, it sounds like it is worth upgrading to 4.1.1.x . We are planning a maintenance next month, I'll try to get this into the todo- list. Upgrading beyond this is going require a longer preparation, unless the prerequisite of "RHEL 6.4 or later" as stated on the IBM FAQ is irrelevant. Our clients still run RHEL 6.3.
Best regards, Roland
Some general thoughts on “deadlocks” and automated deadlock detection.
I personally don’t like the term “deadlock” as it implies a condition that won’t ever resolve itself. In GPFS terms, a deadlock is really a “long RPC waiter” over a certain threshold. RPCs that wait on certain events can and do occur and they can take some time to complete. This is not necessarily a condition that is a problem, but you should be looking into them.
GPFS does have automated deadlock detection and collection, but in the early releases it was … well.. it’s not very “robust”. With later releases (4.2) it’s MUCH better. I personally don’t rely on it because in larger clusters it can be too aggressive and depending on what’s really going on it can make things worse. This statement is my opinion and it doesn’t mean it’s not a good thing to have. :-)
On the point of what commands to execute and what to collect – be careful about long running callback scripts and executing commands on other nodes. Depending on what the issues is, you could end up causing a deadlock or making it worse. Some basic data collection, local to the node with the long RPC waiter is a good thing. Test them well before deploying them. And make sure that you don’t conflict with the automated collections. (which you might consider turning off)
For my larger clusters, I dump the cluster waiters on a regular basis (once a minute: mmlsnode –N waiters –L), count the types and dump them into a database for graphing via Grafana. This doesn’t help me with true deadlock alerting, but it does give me insight into overall cluster behavior. If I see large numbers of long waiters I will (usually) go and investigate them on a cases by case basis. If you have large numbers of long RPC waiters on an ongoing basis, it's an indication of a larger problem that should be investigated. A few here and there is not a cause for real alarm in my experience.
Last – if you have a chance to upgrade to 4.1.1 or 4.2, I would encourage you to do so as the deadlock detection has improved quite a bit.
Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid robert.oesterlin@nuance.com
From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spe ctrumscale.org>> on behalf of Roland Pabel <dr.roland.pabel@gmail.com<mailto:dr.roland.pabel@gmail.com>> Organization: RRZK Uni Köln Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>>
Date: Tuesday, April 12, 2016 at 3:03 AM
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>>
Subject: [gpfsug-discuss] Executing Callbacks on other Nodes
Hi everyone,
we are using GPFS 4.1.0.8 with 4 servers and 850 clients. Our GPFS setup is fairly new, we are still in the testing phase. A few days ago, we had some problems in the cluster which seemed to have started with deadlocks on a small number of nodes. To be better prepared for this scenario, I would like to install a callback for Event deadlockDetected. But this is a local event and the callback is executed on the client nodes, from which I cannot even send an email.
Is it possible using mm-commands to instead delegate the callback to the servers (Nodeclass nsdNodes)?
I guess it would be possible to use a callback of the form "ssh nsd0 /root/bin/deadlock-callback.sh", but then it is contingent upon server nsd0 being available. The mm-command style "-N nsdNodes" would more reliable in my opinion, because it would be run on all servers. On the servers, I can then check to actually only execute the script on the cluster manager. Thanks
Roland -- Dr. Roland Pabel Regionales Rechenzentrum der Universität zu Köln (RRZK) Weyertal 121, Raum 3.07 D-50931 Köln
Tel.: +49 (221) 470-89589 E-Mail: pabel@uni-koeln.de<mailto:pabel@uni-koeln.de> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi nfo_gpfsug-2Ddiscuss&d=CwIFAw&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0rrLsOzY& r=LPDewt1Z4o9eKc86MXmhqX-45Cz1yz1ylYELF9olLKU&m=c7jzNm-H6SdZMztP1xkwgySivoe4 FlOcI2pS2SCJ8K8&s=AfohxS7tz0ky5C8ImoufbQmQpdwpo4wEO7cSCzHPCD0&e=
-- Dr. Roland Pabel Regionales Rechenzentrum der Universität zu Köln (RRZK) Weyertal 121, Raum 3.07 D-50931 Köln Tel.: +49 (221) 470-89589 E-Mail: pabel@uni-koeln.de
Hi Roland I ran into that issue as well – if you are running 6.3 you need to update to get to the later levels. RH 6.3 is getting a bit dated, so an upgrade might be a good idea – but I all too well how hard it is to push through those updates! Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Roland Pabel <dr.roland.pabel@gmail.com<mailto:dr.roland.pabel@gmail.com>> Organization: RRZK Uni Köln Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Tuesday, April 12, 2016 at 8:25 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] Executing Callbacks on other Nodes Hi Bob, thanks for your remarks. I already understood that deadlocks are more timeouts than "tangled up balls of code". I was not (yet) planning on changing the whole routine, I'd just like to get a notice when something unexpected happens in the cluster. So, first, I just want to write these notices into a file and email it once it reaches a certain size. From what you are saying, it sounds like it is worth upgrading to 4.1.1.x . We are planning a maintenance next month, I'll try to get this into the todo- list. Upgrading beyond this is going require a longer preparation, unless the prerequisite of "RHEL 6.4 or later" as stated on the IBM FAQ is irrelevant. Our clients still run RHEL 6.3. Best regards, Roland
My understanding is (someone will correct me if I'm wrong) ... GPFS does not have true deadlock detection. As you say it has time outs. The argument is: As a practical matter, it makes not much difference to a sysadmin or user -- if things are gummed up "too long" they start to smell like a deadlock, so we may as well intervene as though there were a true technical deadlock. A genuine true deadlock is a situation where things are gummed up, there is no progress, and one can prove that there will be no progress, no matter how long one waits. E.g. Classically, you have locked resource A and I have locked resource B and now I decide I need resource A and I am waiting indefinitely long for that. And you have decided you need resouce B and you are waiting indefinitely for that. We are then deadlocked. Deadlock can occur on a single node or over multiple nodes. Technically it may be possible to execute a deadlock detection protocol that would identify cyclic, deadlocking dependencies, but it was decided that, for GPFS, it would be more practical to detect "very long waiters"... From: "Oesterlin, Robert" <Robert.Oesterlin@nuance.com> Some general thoughts on “deadlocks” and automated deadlock detection. I personally don’t like the term “deadlock” as it implies a condition that won’t ever resolve itself. In GPFS terms, a deadlock is really a “long RPC waiter” over a certain threshold. RPCs that wait on certain events can and do occur and they can take some time to complete. This is not necessarily a condition that is a problem, but you should be looking into them. GPFS does have automated deadlock detection and collection, but in the early releases it was … well.. it’s not very “robust”. With later releases (4.2) it’s MUCH better. I personally don’t rely on it because in larger clusters it can be too aggressive and depending on what’s really going on it can make things worse. This statement is my opinion and it doesn’t mean it’s not a good thing to have. :-) ...
++ On 04/12/2016 04:54 AM, Oesterlin, Robert wrote:
For my larger clusters, I dump the cluster waiters on a regular basis (once a minute: mmlsnode –N waiters –L), count the types and dump them into a database for graphing via Grafana.
-- Alex Chekholko chekh@stanford.edu 347-401-4860
Hi, In our cluster, mmlsnode –N waiters –L takes about 25 seconds to run. So running it every 30 seconds is a bit close. I'll try running it once a minute and then incorporating this into our graphing. Maybe the command is so slow for me because a few nodes are down? Is there a parameter to mmlsnode to configure the timeout? Thanks, Roland
++
On 04/12/2016 04:54 AM, Oesterlin, Robert wrote:
For my larger clusters, I dump the cluster waiters on a regular basis (once a minute: mmlsnode –N waiters –L), count the types and dump them into a database for graphing via Grafana.
-- Dr. Roland Pabel Regionales Rechenzentrum der Universität zu Köln (RRZK) Weyertal 121, Raum 3.07 D-50931 Köln Tel.: +49 (221) 470-89589 E-Mail: pabel@uni-koeln.de
This command is just using ssh to all the nodes and dumping the waiter information and collecting it. That means if the node is down, slow to respond, or there are a large number of nodes, it could take a while to return. In my 400-500 node clusters this command usually take less than 10 seconds. I do prefix the command with a timeout value in case a node is hung up and ssh never returns (which it sometimes does, and that’s not the fault of GPFS) Something like this: timeout 45s /usr/lpp/mmfs/bin/mmlsnode -N waiters –L This means I get incomplete information, but if you don’t you end up piling up a lot of hung up commands. I would check over your cluster carefully to see if there are other issues that might cause ssh to hang up – which could impact other GPFS commands that distribute via ssh. Another approach would be to dump the waiters locally on each node, send node specific information to the database, and then sum it up using the graphing software. Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Roland Pabel <dr.roland.pabel@gmail.com<mailto:dr.roland.pabel@gmail.com>> Organization: RRZK Uni Köln Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Friday, April 15, 2016 at 10:50 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] Executing Callbacks on other Nodes Hi, In our cluster, mmlsnode –N waiters –L takes about 25 seconds to run. So running it every 30 seconds is a bit close. I'll try running it once a minute and then incorporating this into our graphing. Maybe the command is so slow for me because a few nodes are down? Is there a parameter to mmlsnode to configure the timeout?
If you can wait a few more month we will have stats for this in Zimon. Sven On Apr 15, 2016 12:02 PM, "Oesterlin, Robert" <Robert.Oesterlin@nuance.com> wrote:
This command is just using ssh to all the nodes and dumping the waiter information and collecting it. That means if the node is down, slow to respond, or there are a large number of nodes, it could take a while to return. In my 400-500 node clusters this command usually take less than 10 seconds. I do prefix the command with a timeout value in case a node is hung up and ssh never returns (which it sometimes does, and that’s not the fault of GPFS) Something like this:
timeout 45s /usr/lpp/mmfs/bin/mmlsnode -N waiters –L
This means I get incomplete information, but if you don’t you end up piling up a lot of hung up commands. I would check over your cluster carefully to see if there are other issues that might cause ssh to hang up – which could impact other GPFS commands that distribute via ssh.
Another approach would be to dump the waiters locally on each node, send node specific information to the database, and then sum it up using the graphing software.
Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid
From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Roland Pabel <dr.roland.pabel@gmail.com> Organization: RRZK Uni Köln Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Friday, April 15, 2016 at 10:50 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Executing Callbacks on other Nodes
Hi,
In our cluster, mmlsnode –N waiters –L takes about 25 seconds to run. So running it every 30 seconds is a bit close. I'll try running it once a minute and then incorporating this into our graphing.
Maybe the command is so slow for me because a few nodes are down? Is there a parameter to mmlsnode to configure the timeout?
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Excellent! I have Zimon fully deployed and this will make my life much easier. :-) Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Sven Oehme <oehmes@gmail.com<mailto:oehmes@gmail.com>> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Friday, April 15, 2016 at 11:12 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] Executing Callbacks on other Nodes If you can wait a few more month we will have stats for this in Zimon. Sven
Hi Bob, I'll try the second approach, i.e, collecting "mmfsadm dump waiters" locally and then summing the values up, since it can be done without the overhead of ssh. You mentioned mmlsnode starts all these ssh commands and that made me look into the file itself. I then noticed most of the mm commands are actually scripts. This helps a lot with regards to my original question. mmdsh seems to do what I need. Thanks, Roland
This command is just using ssh to all the nodes and dumping the waiter information and collecting it. That means if the node is down, slow to respond, or there are a large number of nodes, it could take a while to return. In my 400-500 node clusters this command usually take less than 10 seconds. I do prefix the command with a timeout value in case a node is hung up and ssh never returns (which it sometimes does, and that’s not the fault of GPFS) Something like this:
timeout 45s /usr/lpp/mmfs/bin/mmlsnode -N waiters –L
This means I get incomplete information, but if you don’t you end up piling up a lot of hung up commands. I would check over your cluster carefully to see if there are other issues that might cause ssh to hang up – which could impact other GPFS commands that distribute via ssh.
Another approach would be to dump the waiters locally on each node, send node specific information to the database, and then sum it up using the graphing software.
Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid
From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spe ctrumscale.org>> on behalf of Roland Pabel <dr.roland.pabel@gmail.com<mailto:dr.roland.pabel@gmail.com>> Organization: RRZK Uni Köln Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>>
Date: Friday, April 15, 2016 at 10:50 AM
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>>
Subject: Re: [gpfsug-discuss] Executing Callbacks on other Nodes
Hi,
In our cluster, mmlsnode –N waiters –L takes about 25 seconds to run. So running it every 30 seconds is a bit close. I'll try running it once a minute
and then incorporating this into our graphing.
Maybe the command is so slow for me because a few nodes are down? Is there a parameter to mmlsnode to configure the timeout?
-- Dr. Roland Pabel Regionales Rechenzentrum der Universität zu Köln (RRZK) Weyertal 121, Raum 3.07 D-50931 Köln Tel.: +49 (221) 470-89589 E-Mail: pabel@uni-koeln.de
Roland Here's a tool written by NCAR that provides waiter information on a per node bases using a light weight daemon on the monitored node. I have been using it for a while and it has helped me find and figure out long waiter nodes. It might do what you are looking for. https://sourceforge.net/projects/gpfsmonitorsuite/ jeff -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Roland Pabel Sent: Monday, April 18, 2016 9:10 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Executing Callbacks on other Nodes Hi Bob, I'll try the second approach, i.e, collecting "mmfsadm dump waiters" locally and then summing the values up, since it can be done without the overhead of ssh. You mentioned mmlsnode starts all these ssh commands and that made me look into the file itself. I then noticed most of the mm commands are actually scripts. This helps a lot with regards to my original question. mmdsh seems to do what I need. Thanks, Roland
This command is just using ssh to all the nodes and dumping the waiter information and collecting it. That means if the node is down, slow to respond, or there are a large number of nodes, it could take a while to return. In my 400-500 node clusters this command usually take less than 10 seconds. I do prefix the command with a timeout value in case a node is hung up and ssh never returns (which it sometimes does, and that’s not the fault of GPFS) Something like this:
timeout 45s /usr/lpp/mmfs/bin/mmlsnode -N waiters –L
This means I get incomplete information, but if you don’t you end up piling up a lot of hung up commands. I would check over your cluster carefully to see if there are other issues that might cause ssh to hang up – which could impact other GPFS commands that distribute via ssh.
Another approach would be to dump the waiters locally on each node, send node specific information to the database, and then sum it up using the graphing software.
Bob Oesterlin Sr Storage Engineer, Nuance HPC Grid
From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounce s@spe ctrumscale.org>> on behalf of Roland Pabel <dr.roland.pabel@gmail.com<mailto:dr.roland.pabel@gmail.com>> Organization: RRZK Uni Köln Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale. org>>
Date: Friday, April 15, 2016 at 10:50 AM
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale. org>>
Subject: Re: [gpfsug-discuss] Executing Callbacks on other Nodes
Hi,
In our cluster, mmlsnode –N waiters –L takes about 25 seconds to run. So running it every 30 seconds is a bit close. I'll try running it once a minute
and then incorporating this into our graphing.
Maybe the command is so slow for me because a few nodes are down? Is there a parameter to mmlsnode to configure the timeout?
-- Dr. Roland Pabel Regionales Rechenzentrum der Universität zu Köln (RRZK) Weyertal 121, Raum 3.07 D-50931 Köln Tel.: +49 (221) 470-89589 E-Mail: pabel@uni-koeln.de _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (6)
-
Alex Chekholko -
Jeffrey R. Lang -
Marc A Kaplan -
Oesterlin, Robert -
Roland Pabel -
Sven Oehme
