<html><body>Here is the output of waiters on 2 hosts that were having the issue today:<BR>
<BR>
HOST 1<BR>
 [2020-11-20 09:07:53 <a href="mailto:root@nyzls149m">root@nyzls149m</a> ~]# /usr/lpp/mmfs/bin/mmdiag --waiters<BR>
<BR>
=== mmdiag: waiters ===<BR>
Waiting 0.0035 sec since 09:08:07, monitored, thread 135497 FileBlockReadFetchHandlerThread: on ThCond 0x7F615C152468 (MsgRecordCondvar), reason 'RPC wait' for NSD I/O completion on node 10.64.44.180 <c0n105><BR>
Waiting 0.0036 sec since 09:08:07, monitored, thread 139228 PrefetchWorkerThread: on ThCond 0x7F627000D5D8 (MsgRecordCondvar), reason 'RPC wait' for NSD I/O completion on node 10.64.44.181 <c0n106><BR>
<BR>
[2020-11-20 09:08:07 <a href="mailto:root@nyzls149m">root@nyzls149m</a> ~]# /usr/lpp/mmfs/bin/mmdiag --waiters<BR>
<BR>
=== mmdiag: waiters ===<BR>
<BR>
HOST 2<BR>
[2020-11-20 09:08:49 <a href="mailto:root@nyzls150m">root@nyzls150m</a> ~]# /usr/lpp/mmfs/bin/mmdiag --waiters<BR>
<BR>
=== mmdiag: waiters ===<BR>
Waiting 0.0034 sec since 09:08:50, monitored, thread 345318 SharedHashTabFetchHandlerThread: on ThCond 0x7F049C001F08 (MsgRecordCondvar), reason 'RPC wait' for NSD I/O completion on node 10.64.44.133 <c1n2><BR>
<BR>
[2020-11-20 09:08:50 <a href="mailto:root@nyzls150m">root@nyzls150m</a> ~]# /usr/lpp/mmfs/bin/mmdiag --waiters<BR>
<BR>
=== mmdiag: waiters ===<BR>
<BR>
[2020-11-20 09:08:52 <a href="mailto:root@nyzls150m">root@nyzls150m</a> ~]# /usr/lpp/mmfs/bin/mmdiag --waiters<BR>
<BR>
=== mmdiag: waiters ===<BR>
<BR>
<BR>
You can see the waiters go from 0 to 1-2 , but they are hardly blocking.<BR>
<BR>
Yes there are separate pools for metadata for all of the filesystems here.<BR>
<BR>
<BR>
I did another trace today when the problem was happening - this time I was able to get a longer trace using the following command:<BR>
/usr/lpp/mmfs/bin/mmtracectl --start --trace=io --trace-file-size=512M --tracedev-write-mode=blocking --tracedev-buffer-size=64M -N nyzls149m<BR>
<BR>
<BR>
This is what the trsum output looks like:<BR>
<BR>
Elapsed trace time:                                   62.412092000 seconds<BR>
Elapsed trace time from first VFS call to last:       62.412091999<BR>
Time idle between VFS calls:                           0.002913000 seconds<BR>
<BR>
Operations stats:             total time(s)  count    avg-usecs        wait-time(s)    avg-usecs<BR>
  readpage                   0.003487000         9      387.444<BR>
  rdwr                       0.273721000       183     1495.743<BR>
  read_inode2                0.007304000       325       22.474<BR>
  follow_link                0.013952000        58      240.552<BR>
  pagein                     0.025974000        66      393.545<BR>
  getattr                    0.002792000        26      107.385<BR>
  revalidate                 0.009406000      2172        4.331<BR>
  create                    66.194479000         3 22064826.333<BR>
  open                       1.725505000        88    19608.011<BR>
  unlink                    18.685099000         1 18685099.000<BR>
  setattr                    0.011627000        14      830.500<BR>
  lookup                  2379.215514000       502  4739473.135<BR>
  delete_inode               0.015553000       328       47.418<BR>
  rename                    98.099073000         5 19619814.600<BR>
  release                    0.050574000        89      568.247<BR>
  permission                 0.007454000        73      102.110<BR>
  getxattr                   0.002346000        32       73.312<BR>
  statfs                     0.000081000         6       13.500<BR>
  mmap                       0.049809000        18     2767.167<BR>
  removexattr                0.000827000        14       59.071<BR>
  llseek                     0.000441000        47        9.383<BR>
  readdir                    0.002667000        34       78.441<BR>
Ops      4093 Secs      62.409178999  Ops/Sec       65.583<BR>
<BR>
MaxFilesToCache is set to 12000 :<BR>
[common]<BR>
maxFilesToCache 12000<BR>
<BR>
<BR>
I only see gpfs_i_lookup in the tracefile, no gpfs_v_lookups<BR>
#  grep gpfs_i_lookup trcrpt.2020-11-20_09.20.38.283986.nyzls149m |wc -l<BR>
1097<BR>
<BR>
They mostly look like this -<BR>
<BR>
  62.346560 238895 TRACE_VNODE: gpfs_i_lookup exit: new inode 0xFFFF922178971A40 iNum 21980113 (0x14F63D1) cnP 0xFFFF922178971C88 retP 0x0 code 0 rc 0<BR>
  62.346955 238895 TRACE_VNODE: gpfs_i_lookup enter: diP 0xFFFF91A8A4991E00 dentryP 0xFFFF92C545A93500 name '20170323.txt' d_flags 0x80 d_count 1 unhashed 1<BR>
  62.367701 218442 TRACE_VNODE: gpfs_i_lookup exit: new inode 0xFFFF922071300000 iNum 29629892 (0x1C41DC4) cnP 0xFFFF922071300248 retP 0x0 code 0 rc 0<BR>
  62.367734 218444 TRACE_VNODE: gpfs_i_lookup enter: diP 0xFFFF9193CF457800 dentryP 0xFFFF9229527A89C0 name 'node.py' d_flags 0x80 d_count 1 unhashed 1<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a> <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Uwe Falke<BR>
Sent: Monday, November 16, 2020 8:46 AM<BR>
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><BR>
Subject: Re: [gpfsug-discuss] Poor client performance with high cpu usage of mmfsd process<BR>
<BR>
Hi,<BR>
while the other nodes can well block the local one, as Frederick suggests,  there should at least be something visible locally waiting for these other nodes.<BR>
Looking at all waiters might be a good thing, but this case looks strange in other ways. Mind statement there are almost no local waiters and none of them gets older than 10 ms.<BR>
<BR>
I am no developer nor do I have the code, so don't expect too much.  Can you tell what lookups you see (check in the trcrpt file, could be like gpfs_i_lookup or gpfs_v_lookup)?<BR>
Lookups are metadata ops, do you have a separate pool for your metadata?<BR>
How is that pool set up (doen to the physical block devices)?<BR>
Your trcsum down revealed 36 lookups, each one on avg taking >30ms. That is a lot (albeit the respective waiters won't show up at first glance as suspicious ...).<BR>
So, which waiters did you see  (hope you saved them, if not, do it next time).<BR>
<BR>
What are the node you see this on and the whole cluster used for? What is the MaxFilesToCache setting (for that node and for others)? what HW is that, how big are your nodes (memory,CPU)?<BR>
To check the unreasonably short trace capture time: how large are the trcrpt files you obtain?<BR>
<BR>
<BR>
Mit freundlichen Grüßen / Kind regards<BR>
<BR>
Dr. Uwe Falke<BR>
IT Specialist<BR>
Hybrid Cloud Infrastructure / Technology Consulting & Implementation Services<BR>
+49 175 575 2877 Mobile<BR>
Rathausstr. 7, 09111 Chemnitz, Germany<BR>
<a href="mailto:uwefalke@de.ibm.com">uwefalke@de.ibm.com</a><BR>
<BR>
IBM Services<BR>
<BR>
IBM Data Privacy Statement<BR>
<BR>
IBM Deutschland Business & Technology Services GmbH<BR>
Geschäftsführung: Sven Schooss, Stefan Hierl Sitz der Gesellschaft: Ehningen<BR>
Registergericht: Amtsgericht Stuttgart, HRB 17122<BR>
<BR>
<BR>
<BR>
From:   "Czauz, Kamil" <Kamil.Czauz@Squarepoint-Capital.com><BR>
To:     gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><BR>
Date:   13/11/2020 14:33<BR>
Subject:        [EXTERNAL] Re: [gpfsug-discuss] Poor client performance<BR>
with high cpu   usage   of      mmfsd process<BR>
Sent by:        <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a><BR>
<BR>
<BR>
<BR>
Hi Uwe -<BR>
<BR>
Regarding your previous message - waiters were coming / going with just<BR>
1-2 waiters when I ran the mmdiag command, with very low wait times (<0.01s).<BR>
<BR>
We are running version 4.2.3<BR>
<BR>
I did another capture today while the client is functioning normally and this was the header result:<BR>
<BR>
Overwrite trace parameters:<BR>
buffer size: 134217728<BR>
64 kernel trace streams, indices 0-63 (selected by low bits of processor<BR>
ID)<BR>
128 daemon trace streams, indices 64-191 (selected by low bits of thread<BR>
ID)<BR>
Interval for calibrating clock rate was 25.996957 seconds and 67592121252 cycles Measured cycle count update rate to be 2600001271 per second <---- using this value OS reported cycle count update rate as 2599999000 per second Trace milestones:<BR>
kernel trace enabled Fri Nov 13 08:20:01.800558000 2020 (TOD 1605273601.800558, cycles 20807897445779444) daemon trace enabled Fri Nov 13 08:20:01.910017000 2020 (TOD 1605273601.910017, cycles 20807897730372442) all streams included Fri Nov 13 08:20:26.423085049 2020 (TOD 1605273626.423085, cycles 20807961464381068) <---- useful part of trace extends from here trace quiesced Fri Nov 13 08:20:27.797515000 2020 (TOD 1605273627.000797, cycles 20807965037900696) <---- to here Approximate number of times the trace buffer was filled: 14.631<BR>
<BR>
Still a very small capture (1.3s), but the trsum.awk output was not filled with lookup commands / large lookup times. Can you help debug what those long lookup operations mean?<BR>
<BR>
Unfinished operations:<BR>
<BR>
27967 ***************** pagein ************** 1.362382116<BR>
27967 ***************** readpage ************** 1.362381516<BR>
139130 1.362448448 ********* Unfinished IO: buffer/disk 3002F670000<BR>
20:107498951168^\archive_data_16<BR>
104686 1.362022068 ********* Unfinished IO: buffer/disk 50011878000<BR>
1:47169618944^\archive_data_1<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 5003CEB8000 4:23073390592^\FFFFFFFE<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 5003CEB8000 4:23073390592^\FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000EE78000 5:47631127040^\FFFFFFFE<BR>
341710 1.362423815 ********* Unfinished IO: buffer/disk 20022218000<BR>
19:107498951680^\archive_data_15<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000EE78000 5:47631127040^\FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000006B000 18:3452986648^\FFFFFFFE<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000006B000 18:3452986648^\00000000FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000006B000 18:3452986648^\FFFFFFFF<BR>
139150 1.361122006 ********* Unfinished IO: buffer/disk 50012018000<BR>
2:47169622016^\archive_data_2<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 5003CEB8000 4:23073390592^\00000000FFFFFFFF<BR>
95782 1.361112791 ********* Unfinished IO: buffer/disk 40016300000<BR>
20:107498950656^\archive_data_16<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000EE78000 5:47631127040^\00000000FFFFFFFF<BR>
271076 1.361579585 ********* Unfinished IO: buffer/disk 20023DB8000<BR>
4:47169606656^\archive_data_4<BR>
341676 1.362018599 ********* Unfinished IO: buffer/disk 40038140000<BR>
5:47169614336^\archive_data_5<BR>
139150 1.361131599 MSG FSnd: nsdMsgReadExt msg_id 2930654492 Sduration<BR>
13292.382 + us<BR>
341676 1.362027104 MSG FSnd: nsdMsgReadExt msg_id 2930654495 Sduration<BR>
12396.877 + us<BR>
95782 1.361124739 MSG FSnd: nsdMsgReadExt msg_id 2930654491 Sduration<BR>
13299.242 + us<BR>
271076 1.361587653 MSG FSnd: nsdMsgReadExt msg_id 2930654493 Sduration<BR>
12836.328 + us<BR>
92182 0.000000000 MSG FSnd: msg_id 0 Sduration 0.000 + us<BR>
341710 1.362429643 MSG FSnd: nsdMsgReadExt msg_id 2930654497 Sduration<BR>
11994.338 + us<BR>
341662 0.000000000 MSG FSnd: msg_id 0 Sduration 0.000 + us<BR>
139130 1.362458376 MSG FSnd: nsdMsgReadExt msg_id 2930654498 Sduration<BR>
11965.605 + us<BR>
104686 1.362028772 MSG FSnd: nsdMsgReadExt msg_id 2930654496 Sduration<BR>
12395.209 + us<BR>
412373 0.775676657 MSG FRep: nsdMsgReadExt msg_id 304915249 Rduration<BR>
598747.324 us Rlen 262144 Hduration 598752.112 + us<BR>
341770 0.589739579 MSG FRep: nsdMsgReadExt msg_id 338079050 Rduration<BR>
784684.402 us Rlen 4 Hduration 784692.651 + us<BR>
143315 0.536252844 MSG FRep: nsdMsgReadExt msg_id 631945522 Rduration<BR>
838171.137 us Rlen 233472 Hduration 838174.299 + us<BR>
341878 0.134331812 MSG FRep: nsdMsgReadExt msg_id 338079023 Rduration<BR>
1240092.169 us Rlen 262144 Hduration 1240094.403 + us<BR>
175478 0.587353287 MSG FRep: nsdMsgReadExt msg_id 338079047 Rduration<BR>
787070.694 us Rlen 262144 Hduration 787073.990 + us<BR>
139558 0.633517347 MSG FRep: nsdMsgReadExt msg_id 631945538 Rduration<BR>
740906.634 us Rlen 102400 Hduration 740910.172 + us<BR>
143308 0.958832110 MSG FRep: nsdMsgReadExt msg_id 631945542 Rduration<BR>
415591.871 us Rlen 262144 Hduration 415597.056 + us<BR>
<BR>
<BR>
Elapsed trace time: 1.374423981 seconds<BR>
Elapsed trace time from first VFS call to last: 1.374423980 Time idle between VFS calls: 0.001603738 seconds<BR>
<BR>
Operations stats: total time(s) count avg-usecs wait-time(s) avg-usecs readpage 1.151660085 1874 614.546 rdwr 0.431456904 581 742.611<BR>
read_inode2 0.001180648 934 1.264<BR>
follow_link 0.000029502 7 4.215<BR>
getattr 0.000048413 9 5.379<BR>
revalidate 0.000007080 67 0.106<BR>
pagein 1.149699537 1877 612.520<BR>
create 0.007664829 9 851.648<BR>
open 0.001032657 19 54.350<BR>
unlink 0.002563726 14 183.123<BR>
delete_inode 0.000764598 826 0.926<BR>
lookup 0.312847947 953 328.277<BR>
setattr 0.020651226 824 25.062<BR>
permission 0.000015018 1 15.018<BR>
rename 0.000529023 4 132.256<BR>
release 0.001613800 22 73.355<BR>
getxattr 0.000030494 6 5.082<BR>
mmap 0.000054767 1 54.767<BR>
llseek 0.000001130 4 0.283<BR>
readdir 0.000033947 2 16.973<BR>
removexattr 0.002119736 820 2.585<BR>
<BR>
User thread stats: GPFS-time(sec) Appl-time GPFS-% Appl-% Ops<BR>
42625 0.000000138 0.000031017 0.44% 99.56% 3<BR>
42378 0.000586959 0.011596801 4.82% 95.18% 32<BR>
42627 0.000000272 0.000013421 1.99% 98.01% 2<BR>
42641 0.003284590 0.012593594 20.69% 79.31% 35<BR>
42628 0.001522335 0.000002748 99.82% 0.18% 2<BR>
25464 0.003462795 0.500281914 0.69% 99.31% 12<BR>
301420 0.000016711 0.052848218 0.03% 99.97% 38<BR>
95103 0.000000544 0.000000000 100.00% 0.00% 1<BR>
145858 0.000000659 0.000794896 0.08% 99.92% 2<BR>
42221 0.000011484 0.000039445 22.55% 77.45% 5<BR>
371718 0.000000707 0.001805425 0.04% 99.96% 2<BR>
95109 0.000000880 0.008998763 0.01% 99.99% 2<BR>
95337 0.000010330 0.503057866 0.00% 100.00% 8<BR>
42700 0.002442175 0.012504429 16.34% 83.66% 35<BR>
189680 0.003466450 0.500128627 0.69% 99.31% 9<BR>
42681 0.006685396 0.000391575 94.47% 5.53% 16<BR>
42702 0.000048203 0.000000500 98.97% 1.03% 2<BR>
42703 0.000033280 0.140102087 0.02% 99.98% 9<BR>
224423 0.000000195 0.000000000 100.00% 0.00% 1<BR>
42706 0.000541098 0.000014713 97.35% 2.65% 3<BR>
106275 0.000000456 0.000000000 100.00% 0.00% 1<BR>
42721 0.000372857 0.000000000 100.00% 0.00% 1<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a><BR>
<gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Uwe Falke<BR>
Sent: Friday, November 13, 2020 4:37 AM<BR>
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><BR>
Subject: Re: [gpfsug-discuss] Poor client performance with high cpu usage of mmfsd process<BR>
<BR>
Hi Kamil,<BR>
in my mail just a few minutes ago I'd overlooked that the buffer size in your trace was indeed 128M (I suppose the trace file is adapting that size if not set in particular). That is very strange, even under high load, the trace should then capture some longer time than 10 secs, and , most of all, it should contain much more activities than just these few you had.<BR>
That is very mysterious.<BR>
I am out of ideas for the moment, and a bit short of time to dig here.<BR>
<BR>
To check your tracing, you could run a trace like before but when everything is normal and check that out - you should see many records, the trcsum.awk should list just a small portion of unfinished ops at the end, ... If that is fine, then the tracing itself is affected by your crritical condition (never experienced that before - rather GPFS grinds to a halt than the trace is abandoned), and that might well be worth a support ticket.<BR>
<BR>
Mit freundlichen Grüßen / Kind regards<BR>
<BR>
Dr. Uwe Falke<BR>
IT Specialist<BR>
Hybrid Cloud Infrastructure / Technology Consulting & Implementation Services<BR>
+49 175 575 2877 Mobile<BR>
Rathausstr. 7, 09111 Chemnitz, Germany<BR>
<a href="mailto:uwefalke@de.ibm.com">uwefalke@de.ibm.com</a><BR>
<BR>
IBM Services<BR>
<BR>
IBM Data Privacy Statement<BR>
<BR>
IBM Deutschland Business & Technology Services GmbH<BR>
Geschäftsführung: Sven Schooss, Stefan Hierl Sitz der Gesellschaft:<BR>
Ehningen<BR>
Registergericht: Amtsgericht Stuttgart, HRB 17122<BR>
<BR>
<BR>
<BR>
From: Uwe Falke/Germany/IBM<BR>
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><BR>
Date: 13/11/2020 10:21<BR>
Subject: Re: [EXTERNAL] Re: [gpfsug-discuss] Poor client performance with high cpu usage of mmfsd process<BR>
<BR>
<BR>
Hi, Kamil,<BR>
looks your tracefile setting has been too low:<BR>
all streams included Thu Nov 12 20:58:19.950515266 2020 (TOD 1605232699.950515, cycles 20701552715873212) <---- useful part of trace extends from here trace quiesced Thu Nov 12 20:58:20.133134000 2020 (TOD 1605232700.000133, cycles 20701553190681534) <---- to here means you effectively captured a period of about 5ms only ... you can't see much from that.<BR>
<BR>
I'd assumed the default trace file size would be sufficient here but it doesn't seem to.<BR>
try running with something like<BR>
mmtracectl --start --trace-file-size=512M --trace=io --tracedev-write-mode=overwrite -N <your_critical_node>.<BR>
<BR>
However, if you say "no major waiter" - how many waiters did you see at any time? what kind of waiters were the oldest, how long they'd waited?<BR>
it could indeed well be that some job is just creating a killer workload.<BR>
<BR>
The very short cyle time of the trace points, OTOH, to high activity, OTOH the trace file setting appears quite low (trace=io doesnt' collect many trace infos, just basic IO stuff).<BR>
If I might ask: what version of GPFS are you running?<BR>
<BR>
Mit freundlichen Grüßen / Kind regards<BR>
<BR>
Dr. Uwe Falke<BR>
IT Specialist<BR>
Hybrid Cloud Infrastructure / Technology Consulting & Implementation Services<BR>
+49 175 575 2877 Mobile<BR>
Rathausstr. 7, 09111 Chemnitz, Germany<BR>
<a href="mailto:uwefalke@de.ibm.com">uwefalke@de.ibm.com</a><BR>
<BR>
IBM Services<BR>
<BR>
IBM Data Privacy Statement<BR>
<BR>
IBM Deutschland Business & Technology Services GmbH<BR>
Geschäftsführung: Sven Schooss, Stefan Hierl Sitz der Gesellschaft:<BR>
Ehningen<BR>
Registergericht: Amtsgericht Stuttgart, HRB 17122<BR>
<BR>
<BR>
<BR>
<BR>
From: "Czauz, Kamil" <Kamil.Czauz@Squarepoint-Capital.com><BR>
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><BR>
Date: 13/11/2020 03:33<BR>
Subject: [EXTERNAL] Re: [gpfsug-discuss] Poor client performance with high cpu usage of mmfsd process Sent by: <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a><BR>
<BR>
<BR>
<BR>
Hi Uwe -<BR>
<BR>
I hit the issue again today, no major waiters, and nothing useful from the iohist report. Nothing interesting in the logs either.<BR>
<BR>
I was able to get a trace today while the issue was happening. I took 2 traces a few min apart.<BR>
<BR>
The beginning of the traces look something like this:<BR>
Overwrite trace parameters:<BR>
buffer size: 134217728<BR>
64 kernel trace streams, indices 0-63 (selected by low bits of processor<BR>
ID)<BR>
128 daemon trace streams, indices 64-191 (selected by low bits of thread<BR>
ID)<BR>
Interval for calibrating clock rate was 100.019054 seconds and<BR>
260049296314 cycles<BR>
Measured cycle count update rate to be 2599997559 per second <---- using this value OS reported cycle count update rate as 2599999000 per second Trace milestones:<BR>
kernel trace enabled Thu Nov 12 20:56:40.114080000 2020 (TOD 1605232600.114080, cycles 20701293141385220) daemon trace enabled Thu Nov<BR>
12 20:56:40.247430000 2020 (TOD 1605232600.247430, cycles<BR>
20701293488095152) all streams included Thu Nov 12 20:58:19.950515266 2020 (TOD 1605232699.950515, cycles 20701552715873212) <---- useful part of trace extends from here trace quiesced Thu Nov 12 20:58:20.133134000 2020 (TOD 1605232700.000133, cycles 20701553190681534) <---- to here Approximate number of times the trace buffer was filled: 553.529<BR>
<BR>
<BR>
Here is the output of<BR>
trsum.awk details=0<BR>
I'm not quite sure what to make of it, can you help me decipher it? The 'lookup' operations are taking a hell of a long time, what does that mean?<BR>
<BR>
Capture 1<BR>
<BR>
Unfinished operations:<BR>
<BR>
21234 ***************** lookup ************** 0.165851604<BR>
290020 ***************** lookup ************** 0.151032241<BR>
302757 ***************** lookup ************** 0.168723402<BR>
301677 ***************** lookup ************** 0.070016530<BR>
230983 ***************** lookup ************** 0.127699082<BR>
21233 ***************** lookup ************** 0.060357257<BR>
309046 ***************** lookup ************** 0.157124551<BR>
301643 ***************** lookup ************** 0.165543982<BR>
304042 ***************** lookup ************** 0.172513838<BR>
167794 ***************** lookup ************** 0.056056815<BR>
189680 ***************** lookup ************** 0.062022237<BR>
362216 ***************** lookup ************** 0.072063619<BR>
406314 ***************** lookup ************** 0.114121838<BR>
167776 ***************** lookup ************** 0.114899642<BR>
303016 ***************** lookup ************** 0.144491120<BR>
290021 ***************** lookup ************** 0.142311603<BR>
167762 ***************** lookup ************** 0.144240366<BR>
248530 ***************** lookup ************** 0.168728131<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 30018014000 14:48493092752^\00000000FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 30018014000 14:48493092752^\FFFFFFFE<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000006B000 2:6058336^\00000000FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 30018014000 14:48493092752^\FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000006B000 2:6058336^\FFFFFFFE<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 2000006B000 2:6058336^\FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 3000002E000 2:1917676744^\FFFFFFFE<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 3000002E000 2:1917676744^\00000000FFFFFFFF<BR>
0 0.000000000 ********* Unfinished IO: buffer/disk 3000002E000 2:1917676744^\FFFFFFFF<BR>
<BR>
Elapsed trace time: 0.182617894 seconds<BR>
Elapsed trace time from first VFS call to last: 0.182617893 Time idle between VFS calls: 0.000006317 seconds<BR>
<BR>
Operations stats: total time(s) count avg-usecs wait-time(s) avg-usecs rdwr 0.012021696 35 343.477<BR>
read_inode2 0.000100787 43 2.344<BR>
follow_link 0.000050609 8 6.326<BR>
pagein 0.000097806 10 9.781<BR>
revalidate 0.000010884 156 0.070<BR>
open 0.001001824 18 55.657<BR>
lookup 1.152449696 36 32012.492<BR>
delete_inode 0.000036816 38 0.969<BR>
permission 0.000080574 14 5.755<BR>
release 0.000470096 18 26.116<BR>
mmap 0.000340095 9 37.788<BR>
llseek 0.000001903 9 0.211<BR>
<BR>
<BR>
User thread stats: GPFS-time(sec) Appl-time GPFS-% Appl-% Ops<BR>
221919 0.000000244 0.050064080 0.00% 100.00% 4<BR>
167794 0.000011891 0.000069707 14.57% 85.43% 4<BR>
309046 0.147664569 0.000074663 99.95% 0.05% 9<BR>
349767 0.000000070 0.000000000 100.00% 0.00% 1<BR>
301677 0.017638372 0.048741086 26.57% 73.43% 12<BR>
84407 0.000010448 0.000016977 38.10% 61.90% 3<BR>
406314 0.000002279 0.000122367 1.83% 98.17% 7<BR>
25464 0.043270937 0.000006200 99.99% 0.01% 2<BR>
362216 0.000005617 0.000017498 24.30% 75.70% 2<BR>
379982 0.000000626 0.000000000 100.00% 0.00% 1<BR>
230983 0.123947465 0.000056796 99.95% 0.05% 6<BR>
21233 0.047877661 0.004887113 90.74% 9.26% 17<BR>
302757 0.154486003 0.010695642 93.52% 6.48% 24<BR>
248530 0.000006763 0.000035442 16.02% 83.98% 3<BR>
303016 0.014678039 0.000013098 99.91% 0.09% 2<BR>
301643 0.088025575 0.054036566 61.96% 38.04% 33<BR>
3339 0.000034997 0.178199426 0.02% 99.98% 35<BR>
21234 0.164240073 0.000262711 99.84% 0.16% 39<BR>
167762 0.000011886 0.000041865 22.11% 77.89% 3<BR>
336006 0.000001246 0.100519562 0.00% 100.00% 16<BR>
304042 0.121322325 0.019218406 86.33% 13.67% 33<BR>
301644 0.054325242 0.087715613 38.25% 61.75% 37<BR>
301680 0.000015005 0.020838281 0.07% 99.93% 9<BR>
290020 0.147713357 0.000121422 99.92% 0.08% 19<BR>
290021 0.000476072 0.000085833 84.72% 15.28% 10<BR>
44777 0.040819757 0.000010957 99.97% 0.03% 3<BR>
189680 0.000000044 0.000002376 1.82% 98.18% 1<BR>
241759 0.000000698 0.000000000 100.00% 0.00% 1<BR>
184839 0.000001621 0.150341986 0.00% 100.00% 28<BR>
362220 0.000010818 0.000020949 34.05% 65.95% 2<BR>
104687 0.000000495 0.000000000 100.00% 0.00% 1<BR>
<BR>
# total App-read/write = 45 Average duration = 0.000269322 sec # time(sec) count % %ile read write avgBytesR avgBytesW<BR>
0.000500 34 0.755556 0.755556 34 0 32889 0<BR>
0.001000 10 0.222222 0.977778 10 0 108136 0<BR>
0.004000 1 0.022222 1.000000 1 0 8 0<BR>
<BR>
# max concurrant App-read/write = 2<BR>
# conc count % %ile<BR>
1 38 0.844444 0.844444<BR>
2 7 0.155556 1.000000<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
Capture 2<BR>
<BR>
Unfinished operations:<BR>
<BR>
335096 ***************** lookup ************** 0.289127895<BR>
334691 ***************** lookup ************** 0.225380797<BR>
362246 ***************** lookup ************** 0.052106493<BR>
334694 ***************** lookup ************** 0.048567769<BR>
362220 ***************** lookup ************** 0.054825580<BR>
333972 ***************** lookup ************** 0.275355791<BR>
406314 ***************** lookup ************** 0.283219905<BR>
334686 ***************** lookup ************** 0.285973208<BR>
289606 ***************** lookup ************** 0.064608288<BR>
21233 ***************** lookup ************** 0.074923689<BR>
189680 ***************** lookup ************** 0.089702578<BR>
335100 ***************** lookup ************** 0.151553955<BR>
334685 ***************** lookup ************** 0.117808430<BR>
167700 ***************** lookup ************** 0.119441314<BR>
336813 ***************** lookup ************** 0.120572137<BR>
334684 ***************** lookup ************** 0.124718126<BR>
21234 ***************** lookup ************** 0.131124745<BR>
84407 ***************** lookup ************** 0.132442945<BR>
334696 ***************** lookup ************** 0.140938740<BR>
335094 ***************** lookup ************** 0.201637910<BR>
167735 ***************** lookup ************** 0.164059859<BR>
334687 ***************** lookup ************** 0.252930745<BR>
334695 ***************** lookup ************** 0.278037098<BR>
341818 0.291815990 ********* Unfinished IO: buffer/disk 50000015000<BR>
3:439888512^\scratch_metadata_5<BR>
341818 0.291822084 MSG FSnd: nsdMsgReadExt msg_id 2894690129 Sduration<BR>
199.688 + us<BR>
100041 0.025061905 MSG FRep: nsdMsgReadExt msg_id 1012644746 Rduration<BR>
266959.867 us Rlen 0 Hduration 266963.954 + us<BR>
<BR>
Elapsed trace time: 0.292021772 seconds<BR>
Elapsed trace time from first VFS call to last: 0.292021771 Time idle between VFS calls: 0.001436519 seconds<BR>
<BR>
Operations stats: total time(s) count avg-usecs wait-time(s) avg-usecs rdwr 0.000831801 4 207.950<BR>
read_inode2 0.000082347 31 2.656<BR>
pagein 0.000033905 3 11.302<BR>
revalidate 0.000013109 156 0.084<BR>
open 0.000237969 22 10.817<BR>
lookup 1.233407280 10 123340.728<BR>
delete_inode 0.000013877 33 0.421<BR>
permission 0.000046486 8 5.811<BR>
release 0.000172456 21 8.212<BR>
mmap 0.000064411 2 32.206<BR>
llseek 0.000000391 2 0.196<BR>
readdir 0.000213657 36 5.935<BR>
<BR>
<BR>
User thread stats: GPFS-time(sec) Appl-time GPFS-% Appl-% Ops<BR>
335094 0.053506265 0.000170270 99.68% 0.32% 16<BR>
167700 0.000008522 0.000027547 23.63% 76.37% 2<BR>
167776 0.000008293 0.000019462 29.88% 70.12% 2<BR>
334684 0.000023562 0.000160872 12.78% 87.22% 8<BR>
349767 0.000000467 0.250029787 0.00% 100.00% 5<BR>
84407 0.000000230 0.000017947 1.27% 98.73% 2<BR>
334685 0.000028543 0.000094147 23.26% 76.74% 8<BR>
406314 0.221755229 0.000009720 100.00% 0.00% 2<BR>
334694 0.000024913 0.000125229 16.59% 83.41% 10<BR>
335096 0.254359005 0.000240785 99.91% 0.09% 18<BR>
334695 0.000028966 0.000127823 18.47% 81.53% 10<BR>
334686 0.223770082 0.000267271 99.88% 0.12% 24<BR>
334687 0.000031265 0.000132905 19.04% 80.96% 9<BR>
334696 0.000033808 0.000131131 20.50% 79.50% 9<BR>
129075 0.000000102 0.000000000 100.00% 0.00% 1<BR>
341842 0.000000318 0.000000000 100.00% 0.00% 1<BR>
335100 0.059518133 0.000287934 99.52% 0.48% 19<BR>
224423 0.000000471 0.000000000 100.00% 0.00% 1<BR>
336812 0.000042720 0.000193294 18.10% 81.90% 10<BR>
21233 0.000556984 0.000083399 86.98% 13.02% 11<BR>
289606 0.000000088 0.000018043 0.49% 99.51% 2<BR>
362246 0.014440188 0.000046516 99.68% 0.32% 4<BR>
21234 0.000524848 0.000162353 76.37% 23.63% 13<BR>
336813 0.000046426 0.000175666 20.90% 79.10% 9<BR>
3339 0.000011816 0.272396876 0.00% 100.00% 29<BR>
341818 0.000000778 0.000000000 100.00% 0.00% 1<BR>
167735 0.000007866 0.000049468 13.72% 86.28% 3<BR>
175480 0.000000278 0.000000000 100.00% 0.00% 1<BR>
336006 0.000001170 0.250020470 0.00% 100.00% 16<BR>
44777 0.000000367 0.250149757 0.00% 100.00% 6<BR>
189680 0.000002717 0.000006518 29.42% 70.58% 1<BR>
184839 0.000003001 0.250144214 0.00% 100.00% 35<BR>
145858 0.000000687 0.000000000 100.00% 0.00% 1<BR>
333972 0.218656404 0.000043897 99.98% 0.02% 4<BR>
334691 0.187695040 0.000295117 99.84% 0.16% 25<BR>
<BR>
# total App-read/write = 7 Average duration = 0.000123672 sec # time(sec) count % %ile read write avgBytesR avgBytesW<BR>
0.000500 7 1.000000 1.000000 7 0 1172 0<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a><BR>
<gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Uwe Falke<BR>
Sent: Wednesday, November 11, 2020 8:57 PM<BR>
To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><BR>
Subject: Re: [gpfsug-discuss] Poor client performance with high cpu usage of mmfsd process<BR>
<BR>
Hi, Kamil,<BR>
I suppose you'd rather not see such an issue than pursue the ugly work-around to kill off processes.<BR>
In such situations, the first looks should be for the GPFS log (on the client, on the cluster manager, and maybe on the file system manager) and for the current waiters (that is the list of currently waiting threads) on the hanging client.<BR>
<BR>
-> /var/adm/ras/mmfs.log.latest<BR>
mmdiag --waiters<BR>
<BR>
That might give you a first idea what is taking long and which components are involved.<BR>
<BR>
Also,<BR>
mmdiag --iohist<BR>
shows you the last IOs and some stats (service time, size) for them.<BR>
<BR>
Either that clue is already sufficient, or you go on (if you see DIO somewhere, direct IO is used which might slow down things, for example).<BR>
GPFS has a nice tracing which you can configure or just run the default trace.<BR>
<BR>
Running a dedicated (low-level) io trace can be achieved by mmtracectl --start --trace=io --tracedev-write-mode=overwrite -N <your_critical_node> then, when the issue is seen, stop the trace by mmtracectl --stop -N <your_critical_node><BR>
<BR>
Do not wait to stop the trace once you've seen the issue, the trace file cyclically overwrites its output. If the issue lasts some time you could also start the trace while you see it, run the trace for say 20 secs and stop again. On stopping the trace, the output gets converted into an ASCII trace file named trcrpt.*(usually in /tmp/mmfs, check the command output).<BR>
<BR>
<BR>
There you should see lines with FIO which carry the inode of the related file after the "tag" keyword.<BR>
example:<BR>
0.000745100 25123 TRACE_IO: FIO: read data tag 248415 43466 ioVecSize 8 1st buf 0x299E89BC000 disk 8D0 da 154:2083875440 nSectors 128 err 0 finishTime 1563473283.135212150<BR>
<BR>
-> inode is 248415<BR>
<BR>
there is a utility , tsfindinode, to translate that into the file path.<BR>
you need to build this first if not yet done:<BR>
cd /usr/lpp/mmfs/samples/util ; make<BR>
, then run<BR>
./tsfindinode -i <inode_num> <fs_mount_point><BR>
<BR>
For the IO trace analysis there is an older tool :<BR>
/usr/lpp/mmfs/samples/debugtools/trsum.awk.<BR>
<BR>
Then there is some new stuff I've not yet used in /usr/lpp/mmfs/samples/traceanz/ (always check the README)<BR>
<BR>
Hope that halps a bit.<BR>
<BR>
Mit freundlichen Grüßen / Kind regards<BR>
<BR>
Dr. Uwe Falke<BR>
IT Specialist<BR>
Hybrid Cloud Infrastructure / Technology Consulting & Implementation Services<BR>
+49 175 575 2877 Mobile<BR>
Rathausstr. 7, 09111 Chemnitz, Germany<BR>
<a href="mailto:uwefalke@de.ibm.com">uwefalke@de.ibm.com</a><BR>
<BR>
IBM Services<BR>
<BR>
IBM Data Privacy Statement<BR>
<BR>
IBM Deutschland Business & Technology Services GmbH<BR>
Geschäftsführung: Sven Schooss, Stefan Hierl Sitz der Gesellschaft:<BR>
Ehningen<BR>
Registergericht: Amtsgericht Stuttgart, HRB 17122<BR>
<BR>
<BR>
<BR>
From: "Czauz, Kamil" <Kamil.Czauz@Squarepoint-Capital.com><BR>
To: "gpfsug-discuss@spectrumscale.org"<BR>
<gpfsug-discuss@spectrumscale.org><BR>
Date: 11/11/2020 23:36<BR>
Subject: [EXTERNAL] [gpfsug-discuss] Poor client performance with high cpu usage of mmfsd process Sent by: <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a><BR>
<BR>
<BR>
<BR>
We regularly run into performance issues on our clients where the client seems to hang when accessing any gpfs mount, even something simple like a ls could take a few minutes to complete. This affects every gpfs mount on the client, but other clients are working just fine. Also the mmfsd process at this point is spinning at something like 300-500% cpu.<BR>
<BR>
The only way I have found to solve this is by killing processes that may be doing heavy i/o to the gpfs mounts - but this is more of an art than a science. I often end up killing many processes before finding the offending one.<BR>
<BR>
My question is really about finding the offending process easier. Is there something similar to iotop or a trace that I can enable that can tell me what files/processes and being heavily used by the mmfsd process on the client?<BR>
<BR>
-Kamil<BR>
Confidentiality Note: This e-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. We will use any personal information you give to us in accordance with our Privacy Policy which can be found in the Data Protection section on our corporate website <a href="http://www.squarepoint-capital.com" target="_blank">http://www.squarepoint-capital.com</a>. Please note that e-mails may be monitored for regulatory and compliance purposes. Thank you for your cooperation.<BR>
_______________________________________________<BR>
gpfsug-discuss mailing list<BR>
gpfsug-discuss at spectrumscale.org<BR>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
gpfsug-discuss mailing list<BR>
gpfsug-discuss at spectrumscale.org<BR>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><BR>
<BR>
<BR>
Confidentiality Note: This e-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. We will use any personal information you give to us in accordance with our Privacy Policy which can be found in the Data Protection section on our corporate website <a href="http://www.squarepoint-capital.com" target="_blank">http://www.squarepoint-capital.com</a>. Please note that e-mails may be monitored for regulatory and compliance purposes. Thank you for your cooperation.<BR>
_______________________________________________<BR>
gpfsug-discuss mailing list<BR>
gpfsug-discuss at spectrumscale.org<BR>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
gpfsug-discuss mailing list<BR>
gpfsug-discuss at spectrumscale.org<BR>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><BR>
<BR>
<BR>
Confidentiality Note: This e-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. We will use any personal information you give to us in accordance with our Privacy Policy which can be found in the Data Protection section on our corporate website <a href="http://www.squarepoint-capital.com" target="_blank">http://www.squarepoint-capital.com</a>. Please note that e-mails may be monitored for regulatory and compliance purposes. Thank you for your cooperation.<BR>
_______________________________________________<BR>
gpfsug-discuss mailing list<BR>
gpfsug-discuss at spectrumscale.org<BR>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><BR>
<BR>
<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
gpfsug-discuss mailing list<BR>
gpfsug-discuss at spectrumscale.org<BR>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><BR>
<BR>
<BR>
Confidentiality Note: This e-mail and any attachments are confidential and may be protected by legal privilege. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. We will use any personal information you give to us in accordance with our Privacy Policy which can be found in the Data Protection section on our corporate website <a href="http://www.squarepoint-capital.com" target="_blank">www.squarepoint-capital.com</a>. Please note that e-mails may be monitored for regulatory and compliance purposes. Thank you for your cooperation.<BR>


<br>
</body></html>