mounts taking longer in 4.2 vs 4.1?
I noticed something curious after migrating some nodes from 4.1 to 4.2 which is that mounts now can take foorrreeevverrr. It seems to boil down to the point in the mount process where getEFOptions is called. To highlight the difference-- 4.1: # /usr/bin/time /usr/lpp/mmfs/bin/mmcommon getEFOptions dnb02 skipMountPointCheck >/dev/null 0.16user 0.04system 0:00.43elapsed 45%CPU (0avgtext+0avgdata 9108maxresident)k 0inputs+2768outputs (0major+15404minor)pagefaults 0swaps 4.2: /usr/bin/time /usr/lpp/mmfs/bin/mmcommon getEFOptions dnb02 skipMountPointCheck >/dev/null 9.75user 3.79system 0:23.35elapsed 58%CPU (0avgtext+0avgdata 10832maxresident)k 0inputs+38104outputs (0major+3135097minor)pagefaults 0swaps that's uh...a 543x increase. Which, if you have 25+ filesystems and 3500 nodes that time really starts to add up. It looks like under 4.2 this getEFOptions function triggers a bunch of mmsdrfs parsing happens and node lists get generated whereas on 4.1 that doesn't happen. Digging in a little deeper it looks to me like the big difference is in gpfsClusterInit after the node fetches the "shadow" mmsdrs file. Here's a 4.1 node: gpfsClusterInit:mmsdrfsdef.sh[2827]> loginPrefix='' gpfsClusterInit:mmsdrfsdef.sh[2828]> [[ -n '' ]] gpfsClusterInit:mmsdrfsdef.sh[2829]> /usr/bin/scp supersecrethost:/var/mmfs/gen/mmsdrfs /var/mmfs/gen/mmsdrfs.25326 gpfsClusterInit:mmsdrfsdef.sh[2830]> rc=0 gpfsClusterInit:mmsdrfsdef.sh[2831]> [[ 0 -ne 0 ]] gpfsClusterInit:mmsdrfsdef.sh[2863]> [[ -f /var/mmfs/gen/mmsdrfs.25326 ]] gpfsClusterInit:mmsdrfsdef.sh[2867]> /usr/bin/diff /var/mmfs/gen/mmsdrfs.25326 /var/mmfs/gen/mmsdrfs gpfsClusterInit:mmsdrfsdef.sh[2867]> 1> /dev/null 2> /dev/null gpfsClusterInit:mmsdrfsdef.sh[2868]> rc=0 gpfsClusterInit:mmsdrfsdef.sh[2869]> [[ 0 -ne 0 ]] gpfsClusterInit:mmsdrfsdef.sh[2874]> sdrfsFile=/var/mmfs/gen/mmsdrfs gpfsClusterInit:mmsdrfsdef.sh[2875]> /bin/rm -f /var/mmfs/gen/mmsdrfs.25326 Here's a 4.2 node: gpfsClusterInit:mmsdrfsdef.sh[2938]> loginPrefix='' gpfsClusterInit:mmsdrfsdef.sh[2939]> [[ -n '' ]] gpfsClusterInit:mmsdrfsdef.sh[2940]> /usr/bin/scp supersecrethost:/var/mmfs/gen/mmsdrfs /var/mmfs/gen/mmsdrfs.8534 gpfsClusterInit:mmsdrfsdef.sh[2941]> rc=0 gpfsClusterInit:mmsdrfsdef.sh[2942]> [[ 0 -ne 0 ]] gpfsClusterInit:mmsdrfsdef.sh[2974]> /bin/rm -f /var/mmfs/tmp/cmdTmpDir.mmcommon.8534/tmpsdrfs.gpfsClusterInit gpfsClusterInit:mmsdrfsdef.sh[2975]> [[ -f /var/mmfs/gen/mmsdrfs.8534 ]] gpfsClusterInit:mmsdrfsdef.sh[2979]> /usr/bin/diff /var/mmfs/gen/mmsdrfs.8534 /var/mmfs/gen/mmsdrfs gpfsClusterInit:mmsdrfsdef.sh[2979]> 1> /dev/null 2> /dev/null gpfsClusterInit:mmsdrfsdef.sh[2980]> rc=0 gpfsClusterInit:mmsdrfsdef.sh[2981]> [[ 0 -ne 0 ]] gpfsClusterInit:mmsdrfsdef.sh[2986]> sdrfsFile=/var/mmfs/gen/mmsdrfs it looks like the 4.1 code deletes the shadow mmsdrfs file is it's not different from what's locally on the node where as 4.2 does *not* do that. This seems to cause a problem when checkMmfsEnvironment is called because it will return 1 if the shadow file exists which according to the function comments indicates "something is not right", triggering the environment update where the slowdown is incurred. On 4.1 checkMmfsEnvironment returned 0 because the shadow mmsdrfs file had been removed, whereas on 4.2 it returned 1 because the shadow mmsdrfs file still existed despite it being identical to the mmsdrfs on the node. I've looked at 4.2.3.6 (efix12) and it doesn't look like 4.2.3.7 has dropped yet so it may be this has been fixed there. Maybe it's time for a PMR... -Aaron -- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
On 07/02/2018 22:28, Aaron Knister wrote:
I noticed something curious after migrating some nodes from 4.1 to 4.2 which is that mounts now can take foorrreeevverrr. It seems to boil down to the point in the mount process where getEFOptions is called.
To highlight the difference--
[...]
Hello, I have had this (or a very similar) issue after migrating from 4.1.1.8 to 4.2.3. There are 37 filesystems in our main cluster, which made the problem really noticeable. A PMR has been opened. I have tested the fixes included in 4.2.3.7, (which, I'm told, should be released today) actually resolve my problems (APAR IJ03192 & IJ03235). Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
Hi Loic, Thank you for that information! I have two follow up questions-- 1. Are you using ccr? 2. Do you happen to have mmsdrserv disabled in your environment? (e.g. what's the output of "mmlsconfig mmsdrservPort" on your cluster?). -Aaron On Thu, 8 Feb 2018, Loic Tortay wrote:
On 07/02/2018 22:28, Aaron Knister wrote:
I noticed something curious after migrating some nodes from 4.1 to 4.2 which is that mounts now can take foorrreeevverrr. It seems to boil down to the point in the mount process where getEFOptions is called.
To highlight the difference--
[...]
Hello, I have had this (or a very similar) issue after migrating from 4.1.1.8 to 4.2.3. There are 37 filesystems in our main cluster, which made the problem really noticeable.
A PMR has been opened. I have tested the fixes included in 4.2.3.7, (which, I'm told, should be released today) actually resolve my problems (APAR IJ03192 & IJ03235).
Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
It may be related to this issue of using root squashed file system option, here are some edited comments from my colleague who stumbled upon this while chatting with a friend at a CUG: " Something I learned last week: apparently the libmount code from util-linux (used by /bin/mount) will call utimensat() on new mountpoints if access() fails (for example, on root-squashed filesystems). This is done "just to be sure" that the filesystem is really read-only. This operation can be quite expensive and (anecdotally) may cause huge slowdowns when mounting root-squashed parallel filesystems on thousands of clients. Here is the relevant code: https://github.com/karelzak/util-linux/blame/1ea4e7bd8d9d0f0ef317558c627e6fa... This code has been in util-linux for years. It's not clear exactly what the impact is in our environment, but this certainly can't be helping, especially since we've grown the size of the cluster considerably. Mounting GPFS has recently really become a slow and disruptive operation – if you try to mount many clients at once, the FS will hang for a considerable period of time. The timing varies, but here is one example from an isolated mounting operation: 12:09:11.222513 mount("<gpfs_fs>", "<mount_point>", "gpfs", MS_MGC_VAL, "dev=<gpfs_cluster>"...) = 0 <1.590217> 12:09:12.812777 access("<mount_point>", W_OK) = -1 EACCES (Permission denied) <0.000022> 12:09:12.812841 utimensat(AT_FDCWD, "<mount_point>", \{UTIME_NOW, \{93824994378048, 1073741822}}, 0) = -1 EPERM (Operation not permitted) <2.993689> Here, the utimensat() took ~3 seconds, almost twice as long as the mount operation! I also suspect it will slow down other clients trying to mount the filesystem since the sgmgr has to process this write attempt to the mountpoint. (Hilariously, it still returns the "wrong" answer, because this filesystem is not read-only, just squashed.) As of today, the person who originally brought the issue to my attention at CUG has raised it for discussion on the util-linux mailing list. https://marc.info/?l=util-linux-ng&m=151075932824688&w=2 " We ended up putting facls on our mountpoints like such, which hacked around this stupidity: for fs in gpfs_mnt_point ; do chmod 1755 $fs setfacl -m u:99:rwx $fs # 99 is the "nobody" uid to which root is mapped--see "mmauth" output done Hope that helps, -Bryan -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Aaron Knister Sent: Thursday, February 08, 2018 2:23 PM To: Loic Tortay <tortay@cc.in2p3.fr> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] mounts taking longer in 4.2 vs 4.1? Note: External Email ------------------------------------------------- Hi Loic, Thank you for that information! I have two follow up questions-- 1. Are you using ccr? 2. Do you happen to have mmsdrserv disabled in your environment? (e.g. what's the output of "mmlsconfig mmsdrservPort" on your cluster?). -Aaron On Thu, 8 Feb 2018, Loic Tortay wrote:
On 07/02/2018 22:28, Aaron Knister wrote:
I noticed something curious after migrating some nodes from 4.1 to 4.2
which is that mounts now can take foorrreeevverrr. It seems to boil down
to the point in the mount process where getEFOptions is called.
To highlight the difference--
[...]
Hello,
I have had this (or a very similar) issue after migrating from 4.1.1.8 to
4.2.3. There are 37 filesystems in our main cluster, which made the problem
really noticeable.
A PMR has been opened. I have tested the fixes included in 4.2.3.7, (which,
I'm told, should be released today) actually resolve my problems (APAR
IJ03192 & IJ03235).
Loïc.
--
| Loïc Tortay <tortay@cc.in2p3.fr<mailto:tortay@cc.in2p3.fr>> - IN2P3 Computing Centre |
________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
All, For at least one of the instances reported by this group, a PMR has been opened, and a fix is being developed. For folks that are getting affected by the problem: Please contact the service team to confirm your problem is the same as the one previously reported, and for an outlook for the availability of the fix. Thanks, Felipe ---- Felipe Knop knop@us.ibm.com GPFS Development and Security IBM Systems IBM Building 008 2455 South Rd, Poughkeepsie, NY 12601 (845) 433-9314 T/L 293-9314 From: Bryan Banister <bbanister@jumptrading.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>, "Loic Tortay" <tortay@cc.in2p3.fr> Date: 02/08/2018 04:11 PM Subject: Re: [gpfsug-discuss] mounts taking longer in 4.2 vs 4.1? Sent by: gpfsug-discuss-bounces@spectrumscale.org It may be related to this issue of using root squashed file system option, here are some edited comments from my colleague who stumbled upon this while chatting with a friend at a CUG: " Something I learned last week: apparently the libmount code from util-linux (used by /bin/mount) will call utimensat() on new mountpoints if access() fails (for example, on root-squashed filesystems). This is done "just to be sure" that the filesystem is really read-only. This operation can be quite expensive and (anecdotally) may cause huge slowdowns when mounting root-squashed parallel filesystems on thousands of clients. Here is the relevant code: https://github.com/karelzak/util-linux/blame/1ea4e7bd8d9d0f0ef317558c627e6fa... This code has been in util-linux for years. It's not clear exactly what the impact is in our environment, but this certainly can't be helping, especially since we've grown the size of the cluster considerably. Mounting GPFS has recently really become a slow and disruptive operation – if you try to mount many clients at once, the FS will hang for a considerable period of time. The timing varies, but here is one example from an isolated mounting operation: 12:09:11.222513 mount("<gpfs_fs>", "<mount_point>", "gpfs", MS_MGC_VAL, "dev=<gpfs_cluster>"...) = 0 <1.590217> 12:09:12.812777 access("<mount_point>", W_OK) = -1 EACCES (Permission denied) <0.000022> 12:09:12.812841 utimensat(AT_FDCWD, "<mount_point>", \{UTIME_NOW, \{93824994378048, 1073741822}}, 0) = -1 EPERM (Operation not permitted) <2.993689> Here, the utimensat() took ~3 seconds, almost twice as long as the mount operation! I also suspect it will slow down other clients trying to mount the filesystem since the sgmgr has to process this write attempt to the mountpoint. (Hilariously, it still returns the "wrong" answer, because this filesystem is not read-only, just squashed.) As of today, the person who originally brought the issue to my attention at CUG has raised it for discussion on the util-linux mailing list. https://marc.info/?l=util-linux-ng&m=151075932824688&w=2 " We ended up putting facls on our mountpoints like such, which hacked around this stupidity: for fs in gpfs_mnt_point ; do chmod 1755 $fs setfacl -m u:99:rwx $fs # 99 is the "nobody" uid to which root is mapped--see "mmauth" output done Hope that helps, -Bryan -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [ mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Aaron Knister Sent: Thursday, February 08, 2018 2:23 PM To: Loic Tortay <tortay@cc.in2p3.fr> Cc: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] mounts taking longer in 4.2 vs 4.1? Note: External Email ------------------------------------------------- Hi Loic, Thank you for that information! I have two follow up questions-- 1. Are you using ccr? 2. Do you happen to have mmsdrserv disabled in your environment? (e.g. what's the output of "mmlsconfig mmsdrservPort" on your cluster?). -Aaron On Thu, 8 Feb 2018, Loic Tortay wrote:
On 07/02/2018 22:28, Aaron Knister wrote:
I noticed something curious after migrating some nodes from 4.1 to 4.2 which is that mounts now can take foorrreeevverrr. It seems to boil down to the point in the mount process where getEFOptions is called.
To highlight the difference--
[...]
Hello, I have had this (or a very similar) issue after migrating from 4.1.1.8 to 4.2.3. There are 37 filesystems in our main cluster, which made the problem really noticeable.
A PMR has been opened. I have tested the fixes included in 4.2.3.7, (which, I'm told, should be released today) actually resolve my problems (APAR IJ03192 & IJ03235).
Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
On 02/08/2018 09:22 PM, Aaron Knister wrote:
Hi Loic,
Thank you for that information!
I have two follow up questions-- 1. Are you using ccr? 2. Do you happen to have mmsdrserv disabled in your environment? (e.g. what's the output of "mmlsconfig mmsdrservPort" on your cluster?).
Hello, We do not use CCR on this cluster (yet). We use the default port for mmsdrserv: # mmlsconfig mmsdrservPort mmsdrservPort 1191 Loïc. -- | Loïc Tortay <tortay@cc.in2p3.fr> - IN2P3 Computing Centre |
participants (4)
-
Aaron Knister -
Bryan Banister -
Felipe Knop -
Loic Tortay
