Clarification of mmdiag --iohist output
Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
Hi Kevin, It's funny you bring this up because I was looking at this yesterday. My belief is that it's the time the from when the I/O request was queued internally by the client to when the I/O response was received from the NSD server which means it absolutely includes the network RTT. It would be great to get formal confirmation of this from someone who knows the code. Here's some trace data showing a single 4K read from an NSD client. I've stripped out a bunch of uninteresting stuff. It's my belief that the TRACE_IO indicates the point at which the "i/o timer" reported on by mmdiag --iohist begins ticking. The testing data seems to support this. If I'm correct, the testing data shows that the RDMA I/O to the NSD server occurs within the TRACE_IO timing window. The other thing that makes me believe this, is in my testing the mmdiag --iohist on the client shows an average latency of ~230us for a 4K read whereas mmdiag --iohist on the NSD server appears to show an average latency of ~170us when servicing those 4K reads from the back-end disk (a DDN SFA14KX). 0.000218276 37005 TRACE_DISK: doReplicatedRead: da 34:490710888 0.000218424 37005 TRACE_IO: QIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdName S01_DMD_NSD_034 da 34:490710888 nSectors 8 align 0 by iocMBHandler (DioHandlerThread) 0.000218566 37005 TRACE_DLEASE: checkLeaseForIO: rc 0 0.000218628 37005 TRACE_IO: SIO: ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 doioP 0x1806994D300 isDaemonAddr 0 0.000218672 37005 TRACE_FS: verify4KIO exit: code 4 err 0 0.000219106 37005 TRACE_NSD: nsdDoIO enter: read ioVecSize 1 1st bufAddr 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nBytes 4096 isDaemonAddr 0 0.000219408 37005 TRACE_GCRYPTO: EncBufPool::getTmpBuf(): bsize=4096 code=205 err=0 bufP=0x180656C1058 outBufP=0x180656C1058 index=0 0.000220105 37005 TRACE_TS: sendMessage msg_id 22993695: dest <c0n2> 10.3.17.3 sto03 0.000220436 37005 TRACE_RDMA: verbs::verbsSend_i: enter: index 11 cookie 12 node <c0n2> msg_id 22993695 len 92 0.000221111 37005 TRACE_RDMA: verbsConn::postSend: currRpcHeadP 0x7F6D7FA106E8 sendType SEND_BUFFER_RPC index 11 cookie 12 threadId 37005 bufferId.index 11 0.000221662 37005 TRACE_MUTEX: Waiting on fast condvar for signal 0x7F6D7FA106F8 RdmaSend_NSD_SVC 0.000426716 16691 TRACE_RDMA: handleRecvComp: success 1 of 1 nWrSuccess 1 index 11 cookie 12 wr_id 0xB0E6E00000000 bufferP 0x7F6D7EEE1700 byte_len 4144 0.000432140 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: read complete, len 0 status 6 err 0 bufP 0x180656C1058 dioIsOverRdma 1 ioDataP 0x200000BC000 ckSumType NsdCksum_None 0.000432163 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: exit err 0 0.000433707 37005 TRACE_GCRYPTO: EncBufPool::releaseTmpBuf(): exit bsize=8192 err=0 inBufP=0x180656C1058 bufP=0x180656C1058 index=0 0.000433777 37005 TRACE_NSD: nsdDoIO exit: err 0 0 0.000433844 37005 TRACE_IO: FIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 err 0 0.000434236 37005 TRACE_DISK: postIO: qosid A00D91E read data disk FFFFFFFF ioVecSize 1 1st buf 0x122F000 err 0 duration 0.000215000 by iocMBHandler (DioHandlerThread) I'd suggest looking at "mmdiag --iohist" on the NSD server itself and see if/how that differs from the client. The other thing you could do is see if your NSD server queues are backing up (e.g. "mmfsadm saferdump nsd" and look for "requests pending" on queues where the "active" field is > 0). That doesn't necessarily mean you need to tune your queues but I'd suggest that if the disk I/O on your NSD server looks healthy (e.g. low latency, not overly-taxed) that you could benefit from queue tuning. -Aaron On Sat, Feb 16, 2019 at 9:47 AM Buterbaugh, Kevin L < Kevin.Buterbaugh@vanderbilt.edu> wrote:
Hi All,
Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-)
I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O:
08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted>
So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that:
1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else?
I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance…
Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
If you run it on the client, it includes local queuing, network as well as NSD Server processing and the actual device I/O time. if issued on the NSD Server it contains processing and I/O time, the processing shouldn’t really add any overhead but in some cases I have seen it contributing. If you corelate the client and server iohist outputs you can find the server entry based on the tags in the iohist output, this allows you to see exactly how much time was spend on network vs on the server to rule out network as the problem. Sven From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Aaron Knister <aaron.knister@gmail.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Sunday, February 17, 2019 at 6:26 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output Hi Kevin, It's funny you bring this up because I was looking at this yesterday. My belief is that it's the time the from when the I/O request was queued internally by the client to when the I/O response was received from the NSD server which means it absolutely includes the network RTT. It would be great to get formal confirmation of this from someone who knows the code. Here's some trace data showing a single 4K read from an NSD client. I've stripped out a bunch of uninteresting stuff. It's my belief that the TRACE_IO indicates the point at which the "i/o timer" reported on by mmdiag --iohist begins ticking. The testing data seems to support this. If I'm correct, the testing data shows that the RDMA I/O to the NSD server occurs within the TRACE_IO timing window. The other thing that makes me believe this, is in my testing the mmdiag --iohist on the client shows an average latency of ~230us for a 4K read whereas mmdiag --iohist on the NSD server appears to show an average latency of ~170us when servicing those 4K reads from the back-end disk (a DDN SFA14KX). 0.000218276 37005 TRACE_DISK: doReplicatedRead: da 34:490710888 0.000218424 37005 TRACE_IO: QIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdName S01_DMD_NSD_034 da 34:490710888 nSectors 8 align 0 by iocMBHandler (DioHandlerThread) 0.000218566 37005 TRACE_DLEASE: checkLeaseForIO: rc 0 0.000218628 37005 TRACE_IO: SIO: ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 doioP 0x1806994D300 isDaemonAddr 0 0.000218672 37005 TRACE_FS: verify4KIO exit: code 4 err 0 0.000219106 37005 TRACE_NSD: nsdDoIO enter: read ioVecSize 1 1st bufAddr 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nBytes 4096 isDaemonAddr 0 0.000219408 37005 TRACE_GCRYPTO: EncBufPool::getTmpBuf(): bsize=4096 code=205 err=0 bufP=0x180656C1058 outBufP=0x180656C1058 index=0 0.000220105 37005 TRACE_TS: sendMessage msg_id 22993695: dest <c0n2> 10.3.17.3 sto03 0.000220436 37005 TRACE_RDMA: verbs::verbsSend_i: enter: index 11 cookie 12 node <c0n2> msg_id 22993695 len 92 0.000221111 37005 TRACE_RDMA: verbsConn::postSend: currRpcHeadP 0x7F6D7FA106E8 sendType SEND_BUFFER_RPC index 11 cookie 12 threadId 37005 bufferId.index 11 0.000221662 37005 TRACE_MUTEX: Waiting on fast condvar for signal 0x7F6D7FA106F8 RdmaSend_NSD_SVC 0.000426716 16691 TRACE_RDMA: handleRecvComp: success 1 of 1 nWrSuccess 1 index 11 cookie 12 wr_id 0xB0E6E00000000 bufferP 0x7F6D7EEE1700 byte_len 4144 0.000432140 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: read complete, len 0 status 6 err 0 bufP 0x180656C1058 dioIsOverRdma 1 ioDataP 0x200000BC000 ckSumType NsdCksum_None 0.000432163 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: exit err 0 0.000433707 37005 TRACE_GCRYPTO: EncBufPool::releaseTmpBuf(): exit bsize=8192 err=0 inBufP=0x180656C1058 bufP=0x180656C1058 index=0 0.000433777 37005 TRACE_NSD: nsdDoIO exit: err 0 0 0.000433844 37005 TRACE_IO: FIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 err 0 0.000434236 37005 TRACE_DISK: postIO: qosid A00D91E read data disk FFFFFFFF ioVecSize 1 1st buf 0x122F000 err 0 duration 0.000215000 by iocMBHandler (DioHandlerThread) I'd suggest looking at "mmdiag --iohist" on the NSD server itself and see if/how that differs from the client. The other thing you could do is see if your NSD server queues are backing up (e.g. "mmfsadm saferdump nsd" and look for "requests pending" on queues where the "active" field is > 0). That doesn't necessarily mean you need to tune your queues but I'd suggest that if the disk I/O on your NSD server looks healthy (e.g. low latency, not overly-taxed) that you could benefit from queue tuning. -Aaron On Sat, Feb 16, 2019 at 9:47 AM Buterbaugh, Kevin L <Kevin.Buterbaugh@vanderbilt.edu> wrote: Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Context is key here. Where you run mmdiag—iohist matters, clientside or nsd server side.
From what I have seen and possibly understand, from the client, the time field indicates when an I/O was fully serviced (arrived into VFS layer, to be sent to the application), including RTT from the servers/disk. If you run the same command server side, my understanding is that the time field indicates how long it took for the server to write/read data to or from disk.
For example, a few years ago I had to fix a system which was described as unacceptably slow after an upgrade from gpfs 3.3 to 3.4 or 3.5 (don’t fully remember). Iohist client side was showing many IOs waiting for 10 all the way up and to 50 SECONDS, not ms. Server side, I/O was being serviced via iohist within less than 5 ms. Also verified with iostat, basically doing a paltry 25MB/s per NSD server. What happened is that the small vs large queueing system changed in that version of GPFS, so there were hundreds of large IOS queued (found via Mmfsadm dump nsd server side) due to the limited number of large queues and threads server side. A quick mmchconfig fixed the problem, but if I only looked at the servers, it would’ve appeared things were fine, because the IO backend was sitting around twirling its thumbs. I don’t have access to the code, but all of behavior I have seen leads me to believe client side iohist includes network RTT. -Steve ________________________________ From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Aaron Knister <aaron.knister@gmail.com> Sent: Sunday, February 17, 2019 8:26:23 AM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output Hi Kevin, It's funny you bring this up because I was looking at this yesterday. My belief is that it's the time the from when the I/O request was queued internally by the client to when the I/O response was received from the NSD server which means it absolutely includes the network RTT. It would be great to get formal confirmation of this from someone who knows the code. Here's some trace data showing a single 4K read from an NSD client. I've stripped out a bunch of uninteresting stuff. It's my belief that the TRACE_IO indicates the point at which the "i/o timer" reported on by mmdiag --iohist begins ticking. The testing data seems to support this. If I'm correct, the testing data shows that the RDMA I/O to the NSD server occurs within the TRACE_IO timing window. The other thing that makes me believe this, is in my testing the mmdiag --iohist on the client shows an average latency of ~230us for a 4K read whereas mmdiag --iohist on the NSD server appears to show an average latency of ~170us when servicing those 4K reads from the back-end disk (a DDN SFA14KX). 0.000218276 37005 TRACE_DISK: doReplicatedRead: da 34:490710888 0.000218424 37005 TRACE_IO: QIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdName S01_DMD_NSD_034 da 34:490710888 nSectors 8 align 0 by iocMBHandler (DioHandlerThread) 0.000218566 37005 TRACE_DLEASE: checkLeaseForIO: rc 0 0.000218628 37005 TRACE_IO: SIO: ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 doioP 0x1806994D300 isDaemonAddr 0 0.000218672 37005 TRACE_FS: verify4KIO exit: code 4 err 0 0.000219106 37005 TRACE_NSD: nsdDoIO enter: read ioVecSize 1 1st bufAddr 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nBytes 4096 isDaemonAddr 0 0.000219408 37005 TRACE_GCRYPTO: EncBufPool::getTmpBuf(): bsize=4096 code=205 err=0 bufP=0x180656C1058 outBufP=0x180656C1058 index=0 0.000220105 37005 TRACE_TS: sendMessage msg_id 22993695: dest <c0n2> 10.3.17.3 sto03 0.000220436 37005 TRACE_RDMA: verbs::verbsSend_i: enter: index 11 cookie 12 node <c0n2> msg_id 22993695 len 92 0.000221111 37005 TRACE_RDMA: verbsConn::postSend: currRpcHeadP 0x7F6D7FA106E8 sendType SEND_BUFFER_RPC index 11 cookie 12 threadId 37005 bufferId.index 11 0.000221662 37005 TRACE_MUTEX: Waiting on fast condvar for signal 0x7F6D7FA106F8 RdmaSend_NSD_SVC 0.000426716 16691 TRACE_RDMA: handleRecvComp: success 1 of 1 nWrSuccess 1 index 11 cookie 12 wr_id 0xB0E6E00000000 bufferP 0x7F6D7EEE1700 byte_len 4144 0.000432140 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: read complete, len 0 status 6 err 0 bufP 0x180656C1058 dioIsOverRdma 1 ioDataP 0x200000BC000 ckSumType NsdCksum_None 0.000432163 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: exit err 0 0.000433707 37005 TRACE_GCRYPTO: EncBufPool::releaseTmpBuf(): exit bsize=8192 err=0 inBufP=0x180656C1058 bufP=0x180656C1058 index=0 0.000433777 37005 TRACE_NSD: nsdDoIO exit: err 0 0 0.000433844 37005 TRACE_IO: FIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 err 0 0.000434236 37005 TRACE_DISK: postIO: qosid A00D91E read data disk FFFFFFFF ioVecSize 1 1st buf 0x122F000 err 0 duration 0.000215000 by iocMBHandler (DioHandlerThread) I'd suggest looking at "mmdiag --iohist" on the NSD server itself and see if/how that differs from the client. The other thing you could do is see if your NSD server queues are backing up (e.g. "mmfsadm saferdump nsd" and look for "requests pending" on queues where the "active" field is > 0). That doesn't necessarily mean you need to tune your queues but I'd suggest that if the disk I/O on your NSD server looks healthy (e.g. low latency, not overly-taxed) that you could benefit from queue tuning. -Aaron On Sat, Feb 16, 2019 at 9:47 AM Buterbaugh, Kevin L <Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>> wrote: Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Just to add a bit more details to that, If you want to track down an individual i/o or all i/o to a particular file you can do this with mmfsadm dump iohist (mmdiag doesn’t give you all you need) : so run /usr/lpp/mmfs/bin/mmfsadm dump iohist >iohist on server as well as client : I/O history: I/O start time RW Buf type disk:sectorNum nSec time ms tag1 tag2 Disk UID typ NSD node context thread comment --------------- -- ----------- ----------------- ----- ------- --------- ------------ ------------------ --- --------------- --------- -------------------------------- ------- 12:22:41.880663 W data 1:5602050048 32768 927.272 258249737 900 0A2405A0:5C6BD9B0 cli 172.16.254.160 Prefetch WritebehindWorkerThread 12:22:42.038653 W data 4:5815107584 32768 803.106 258249737 903 0A2405A0:5C6BD9B6 cli 172.16.254.163 Prefetch WritebehindWorkerThread 12:22:42.504966 W data 3:695664640 32768 375.272 258249737 918 0A2405A0:5C6BD9B2 cli 172.16.254.162 Prefetch WritebehindWorkerThread 12:22:42.592712 W data 1:1121779712 32768 311.026 258249737 920 0A2405A0:5C6BD9B0 cli 172.16.254.160 Prefetch WritebehindWorkerThread 12:22:42.641689 W data 2:1334837248 32768 350.373 258249737 921 0A2405A0:5C6BD9B4 cli 172.16.254.161 Prefetch WritebehindWorkerThread 12:22:42.301120 W data 1:6667337728 32768 758.629 258249737 912 0A2405A0:5C6BD9B0 cli 172.16.254.160 Prefetch WritebehindWorkerThread 12:22:42.176365 W data 1:6241222656 32768 895.423 258249737 908 0A2405A0:5C6BD9B0 cli 172.16.254.160 Prefetch WritebehindWorkerThread 12:22:42.283152 W data 4:6454280192 32768 840.528 258249737 911 0A2405A0:5C6BD9B6 cli 172.16.254.163 Prefetch WritebehindWorkerThread 12:22:42.149964 W data 4:6028165120 32768 981.661 258249737 907 0A2405A0:5C6BD9B6 cli 172.16.254.163 Prefetch WritebehindWorkerThread 12:22:42.130402 W data 3:6028165120 32768 1021.175 258249737 906 0A2405A0:5C6BD9B2 cli 172.16.254.162 Prefetch WritebehindWorkerThread 12:22:42.838850 W data 2:1867481088 32768 343.912 258249737 925 0A2405A0:5C6BD9B4 cli 172.16.254.161 Prefetch WritebehindWorkerThread 12:22:42.841800 W data 3:1867481088 32768 397.089 258249737 926 0A2405A0:5C6BD9B2 cli 172.16.254.162 Prefetch WritebehindWorkerThread 12:22:42.652912 W data 3:1334837248 32768 637.628 258249737 922 0A2405A0:5C6BD9B2 cli 172.16.254.162 Prefetch WritebehindWorkerThread 12:22:42.883946 W data 1:1974009856 32768 442.953 258249737 928 0A2405A0:5C6BD9B0 cli 172.16.254.160 Prefetch WritebehindWorkerThread 12:22:42.903782 W data 3:1974009856 32768 424.285 258249737 930 0A2405A0:5C6BD9B2 cli 172.16.254.162 Prefetch WritebehindWorkerThread 12:22:42.329905 W data 4:269549568 32768 1061.313 258249737 915 0A2405A0:5C6BD9B6 cli 172.16.254.163 Prefetch WritebehindWorkerThread 12:22:42.392467 W data 1:376078336 32768 998.770 258249737 916 0A2405A0:5C6BD9B0 cli 172.16.254.160 Prefetch WritebehindWorkerThread in this example I only care about one file with inode number 258249737 (which is stored in tag1) : Now simply on the server run : grep '258249737' iohist 19:22:42.533259 W data 1:5602050048 32768 283.016 258249737 900 0A2405A0:5C6BD9B0 srv 172.16.245.117 NSDWorker NSDThread 19:22:42.604062 W data 1:1121779712 32768 308.015 258249737 920 0A2405A0:5C6BD9B0 srv 172.16.245.117 NSDWorker NSDThread 19:22:42.751549 W data 1:6667337728 32768 316.536 258249737 912 0A2405A0:5C6BD9B0 srv 172.16.245.117 NSDWorker NSDThread 19:22:42.722716 W data 1:6241222656 32768 357.409 258249737 908 0A2405A0:5C6BD9B0 srv 172.16.245.117 NSDWorker NSDThread 19:22:43.030353 W data 1:1974009856 32768 304.887 258249737 928 0A2405A0:5C6BD9B0 srv 172.16.245.117 NSDWorker NSDThread 19:22:43.103745 W data 1:376078336 32768 295.835 258249737 916 0A2405A0:5C6BD9B0 srv 172.16.245.117 NSDWorker NSDThread So you can now see all the blocks of that file (tag 2) that went to this particular nsd server and how much time they took to issue against the media . so for each tag1:tag2 pair on the client you find the corresponding on the server. If you subtract time of server from time of client for each line you get network/client delays . Sven From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Steve Crusan <scrusan@ddn.com> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Tuesday, February 19, 2019 at 12:29 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output Context is key here. Where you run mmdiag—iohist matters, clientside or nsd server side.
From what I have seen and possibly understand, from the client, the time field indicates when an I/O was fully serviced (arrived into VFS layer, to be sent to the application), including RTT from the servers/disk. If you run the same command server side, my understanding is that the time field indicates how long it took for the server to write/read data to or from disk.
For example, a few years ago I had to fix a system which was described as unacceptably slow after an upgrade from gpfs 3.3 to 3.4 or 3.5 (don’t fully remember). Iohist client side was showing many IOs waiting for 10 all the way up and to 50 SECONDS, not ms. Server side, I/O was being serviced via iohist within less than 5 ms. Also verified with iostat, basically doing a paltry 25MB/s per NSD server. What happened is that the small vs large queueing system changed in that version of GPFS, so there were hundreds of large IOS queued (found via Mmfsadm dump nsd server side) due to the limited number of large queues and threads server side. A quick mmchconfig fixed the problem, but if I only looked at the servers, it would’ve appeared things were fine, because the IO backend was sitting around twirling its thumbs. I don’t have access to the code, but all of behavior I have seen leads me to believe client side iohist includes network RTT. -Steve From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Aaron Knister <aaron.knister@gmail.com> Sent: Sunday, February 17, 2019 8:26:23 AM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output Hi Kevin, It's funny you bring this up because I was looking at this yesterday. My belief is that it's the time the from when the I/O request was queued internally by the client to when the I/O response was received from the NSD server which means it absolutely includes the network RTT. It would be great to get formal confirmation of this from someone who knows the code. Here's some trace data showing a single 4K read from an NSD client. I've stripped out a bunch of uninteresting stuff. It's my belief that the TRACE_IO indicates the point at which the "i/o timer" reported on by mmdiag --iohist begins ticking. The testing data seems to support this. If I'm correct, the testing data shows that the RDMA I/O to the NSD server occurs within the TRACE_IO timing window. The other thing that makes me believe this, is in my testing the mmdiag --iohist on the client shows an average latency of ~230us for a 4K read whereas mmdiag --iohist on the NSD server appears to show an average latency of ~170us when servicing those 4K reads from the back-end disk (a DDN SFA14KX). 0.000218276 37005 TRACE_DISK: doReplicatedRead: da 34:490710888 0.000218424 37005 TRACE_IO: QIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdName S01_DMD_NSD_034 da 34:490710888 nSectors 8 align 0 by iocMBHandler (DioHandlerThread) 0.000218566 37005 TRACE_DLEASE: checkLeaseForIO: rc 0 0.000218628 37005 TRACE_IO: SIO: ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 doioP 0x1806994D300 isDaemonAddr 0 0.000218672 37005 TRACE_FS: verify4KIO exit: code 4 err 0 0.000219106 37005 TRACE_NSD: nsdDoIO enter: read ioVecSize 1 1st bufAddr 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nBytes 4096 isDaemonAddr 0 0.000219408 37005 TRACE_GCRYPTO: EncBufPool::getTmpBuf(): bsize=4096 code=205 err=0 bufP=0x180656C1058 outBufP=0x180656C1058 index=0 0.000220105 37005 TRACE_TS: sendMessage msg_id 22993695: dest <c0n2> 10.3.17.3 sto03 0.000220436 37005 TRACE_RDMA: verbs::verbsSend_i: enter: index 11 cookie 12 node <c0n2> msg_id 22993695 len 92 0.000221111 37005 TRACE_RDMA: verbsConn::postSend: currRpcHeadP 0x7F6D7FA106E8 sendType SEND_BUFFER_RPC index 11 cookie 12 threadId 37005 bufferId.index 11 0.000221662 37005 TRACE_MUTEX: Waiting on fast condvar for signal 0x7F6D7FA106F8 RdmaSend_NSD_SVC 0.000426716 16691 TRACE_RDMA: handleRecvComp: success 1 of 1 nWrSuccess 1 index 11 cookie 12 wr_id 0xB0E6E00000000 bufferP 0x7F6D7EEE1700 byte_len 4144 0.000432140 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: read complete, len 0 status 6 err 0 bufP 0x180656C1058 dioIsOverRdma 1 ioDataP 0x200000BC000 ckSumType NsdCksum_None 0.000432163 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: exit err 0 0.000433707 37005 TRACE_GCRYPTO: EncBufPool::releaseTmpBuf(): exit bsize=8192 err=0 inBufP=0x180656C1058 bufP=0x180656C1058 index=0 0.000433777 37005 TRACE_NSD: nsdDoIO exit: err 0 0 0.000433844 37005 TRACE_IO: FIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 err 0 0.000434236 37005 TRACE_DISK: postIO: qosid A00D91E read data disk FFFFFFFF ioVecSize 1 1st buf 0x122F000 err 0 duration 0.000215000 by iocMBHandler (DioHandlerThread) I'd suggest looking at "mmdiag --iohist" on the NSD server itself and see if/how that differs from the client. The other thing you could do is see if your NSD server queues are backing up (e.g. "mmfsadm saferdump nsd" and look for "requests pending" on queues where the "active" field is > 0). That doesn't necessarily mean you need to tune your queues but I'd suggest that if the disk I/O on your NSD server looks healthy (e.g. low latency, not overly-taxed) that you could benefit from queue tuning. -Aaron On Sat, Feb 16, 2019 at 9:47 AM Buterbaugh, Kevin L <Kevin.Buterbaugh@vanderbilt.edu> wrote: Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Steve, Would the small vs large queuing setting be visible in mmlsconfig output somewhere? Which settings would control that? -jimk
On Feb 17, 2019, at 6:48 PM, Steve Crusan <scrusan@ddn.com> wrote:
Context is key here. Where you run mmdiag—iohist matters, clientside or nsd server side.
From what I have seen and possibly understand, from the client, the time field indicates when an I/O was fully serviced (arrived into VFS layer, to be sent to the application), including RTT from the servers/disk. If you run the same command server side, my understanding is that the time field indicates how long it took for the server to write/read data to or from disk.
For example, a few years ago I had to fix a system which was described as unacceptably slow after an upgrade from gpfs 3.3 to 3.4 or 3.5 (don’t fully remember).
Iohist client side was showing many IOs waiting for 10 all the way up and to 50 SECONDS, not ms. Server side, I/O was being serviced via iohist within less than 5 ms. Also verified with iostat, basically doing a paltry 25MB/s per NSD server.
What happened is that the small vs large queueing system changed in that version of GPFS, so there were hundreds of large IOS queued (found via Mmfsadm dump nsd server side) due to the limited number of large queues and threads server side. A quick mmchconfig fixed the problem, but if I only looked at the servers, it would’ve appeared things were fine, because the IO backend was sitting around twirling its thumbs.
I don’t have access to the code, but all of behavior I have seen leads me to believe client side iohist includes network RTT.
-Steve From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Aaron Knister <aaron.knister@gmail.com> Sent: Sunday, February 17, 2019 8:26:23 AM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output
Hi Kevin,
It's funny you bring this up because I was looking at this yesterday. My belief is that it's the time the from when the I/O request was queued internally by the client to when the I/O response was received from the NSD server which means it absolutely includes the network RTT. It would be great to get formal confirmation of this from someone who knows the code.
Here's some trace data showing a single 4K read from an NSD client. I've stripped out a bunch of uninteresting stuff. It's my belief that the TRACE_IO indicates the point at which the "i/o timer" reported on by mmdiag --iohist begins ticking. The testing data seems to support this. If I'm correct, the testing data shows that the RDMA I/O to the NSD server occurs within the TRACE_IO timing window. The other thing that makes me believe this, is in my testing the mmdiag --iohist on the client shows an average latency of ~230us for a 4K read whereas mmdiag --iohist on the NSD server appears to show an average latency of ~170us when servicing those 4K reads from the back-end disk (a DDN SFA14KX).
0.000218276 37005 TRACE_DISK: doReplicatedRead: da 34:490710888 0.000218424 37005 TRACE_IO: QIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdName S01_DMD_NSD_034 da 34:490710888 nSectors 8 align 0 by iocMBHandler (DioHandlerThread) 0.000218566 37005 TRACE_DLEASE: checkLeaseForIO: rc 0
0.000218628 37005 TRACE_IO: SIO: ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 doioP 0x1806994D300 isDaemonAddr 0 0.000218672 37005 TRACE_FS: verify4KIO exit: code 4 err 0 0.000219106 37005 TRACE_NSD: nsdDoIO enter: read ioVecSize 1 1st bufAddr 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nBytes 4096 isDaemonAddr 0 0.000219408 37005 TRACE_GCRYPTO: EncBufPool::getTmpBuf(): bsize=4096 code=205 err=0 bufP=0x180656C1058 outBufP=0x180656C1058 index=0 0.000220105 37005 TRACE_TS: sendMessage msg_id 22993695: dest <c0n2> 10.3.17.3 sto03 0.000220436 37005 TRACE_RDMA: verbs::verbsSend_i: enter: index 11 cookie 12 node <c0n2> msg_id 22993695 len 92 0.000221111 37005 TRACE_RDMA: verbsConn::postSend: currRpcHeadP 0x7F6D7FA106E8 sendType SEND_BUFFER_RPC index 11 cookie 12 threadId 37005 bufferId.index 11 0.000221662 37005 TRACE_MUTEX: Waiting on fast condvar for signal 0x7F6D7FA106F8 RdmaSend_NSD_SVC
0.000426716 16691 TRACE_RDMA: handleRecvComp: success 1 of 1 nWrSuccess 1 index 11 cookie 12 wr_id 0xB0E6E00000000 bufferP 0x7F6D7EEE1700 byte_len 4144
0.000432140 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: read complete, len 0 status 6 err 0 bufP 0x180656C1058 dioIsOverRdma 1 ioDataP 0x200000BC000 ckSumType NsdCksum_None 0.000432163 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: exit err 0 0.000433707 37005 TRACE_GCRYPTO: EncBufPool::releaseTmpBuf(): exit bsize=8192 err=0 inBufP=0x180656C1058 bufP=0x180656C1058 index=0 0.000433777 37005 TRACE_NSD: nsdDoIO exit: err 0 0
0.000433844 37005 TRACE_IO: FIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 err 0 0.000434236 37005 TRACE_DISK: postIO: qosid A00D91E read data disk FFFFFFFF ioVecSize 1 1st buf 0x122F000 err 0 duration 0.000215000 by iocMBHandler (DioHandlerThread)
I'd suggest looking at "mmdiag --iohist" on the NSD server itself and see if/how that differs from the client. The other thing you could do is see if your NSD server queues are backing up (e.g. "mmfsadm saferdump nsd" and look for "requests pending" on queues where the "active" field is > 0). That doesn't necessarily mean you need to tune your queues but I'd suggest that if the disk I/O on your NSD server looks healthy (e.g. low latency, not overly-taxed) that you could benefit from queue tuning.
-Aaron
On Sat, Feb 16, 2019 at 9:47 AM Buterbaugh, Kevin L <Kevin.Buterbaugh@vanderbilt.edu <mailto:Kevin.Buterbaugh@vanderbilt.edu>> wrote: Hi All,
Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-)
I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O:
08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted>
So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that:
1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else?
I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance…
Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu <mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org <http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss <http://gpfsug.org/mailman/listinfo/gpfsug-discuss> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi Jim, Please see: https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Gener... Yes, those tuning parameters will show up in the mmlsconfig / mmdiag —config output. HTH… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633 On Feb 19, 2019, at 3:02 PM, Jim Kavitsky <jkavitsky@23andme.com<mailto:jkavitsky@23andme.com>> wrote: Steve, Would the small vs large queuing setting be visible in mmlsconfig output somewhere? Which settings would control that? -jimk On Feb 17, 2019, at 6:48 PM, Steve Crusan <scrusan@ddn.com<mailto:scrusan@ddn.com>> wrote: Context is key here. Where you run mmdiag—iohist matters, clientside or nsd server side. From what I have seen and possibly understand, from the client, the time field indicates when an I/O was fully serviced (arrived into VFS layer, to be sent to the application), including RTT from the servers/disk. If you run the same command server side, my understanding is that the time field indicates how long it took for the server to write/read data to or from disk. For example, a few years ago I had to fix a system which was described as unacceptably slow after an upgrade from gpfs 3.3 to 3.4 or 3.5 (don’t fully remember). Iohist client side was showing many IOs waiting for 10 all the way up and to 50 SECONDS, not ms. Server side, I/O was being serviced via iohist within less than 5 ms. Also verified with iostat, basically doing a paltry 25MB/s per NSD server. What happened is that the small vs large queueing system changed in that version of GPFS, so there were hundreds of large IOS queued (found via Mmfsadm dump nsd server side) due to the limited number of large queues and threads server side. A quick mmchconfig fixed the problem, but if I only looked at the servers, it would’ve appeared things were fine, because the IO backend was sitting around twirling its thumbs. I don’t have access to the code, but all of behavior I have seen leads me to believe client side iohist includes network RTT. -Steve ________________________________ From: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of Aaron Knister <aaron.knister@gmail.com<mailto:aaron.knister@gmail.com>> Sent: Sunday, February 17, 2019 8:26:23 AM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output Hi Kevin, It's funny you bring this up because I was looking at this yesterday. My belief is that it's the time the from when the I/O request was queued internally by the client to when the I/O response was received from the NSD server which means it absolutely includes the network RTT. It would be great to get formal confirmation of this from someone who knows the code. Here's some trace data showing a single 4K read from an NSD client. I've stripped out a bunch of uninteresting stuff. It's my belief that the TRACE_IO indicates the point at which the "i/o timer" reported on by mmdiag --iohist begins ticking. The testing data seems to support this. If I'm correct, the testing data shows that the RDMA I/O to the NSD server occurs within the TRACE_IO timing window. The other thing that makes me believe this, is in my testing the mmdiag --iohist on the client shows an average latency of ~230us for a 4K read whereas mmdiag --iohist on the NSD server appears to show an average latency of ~170us when servicing those 4K reads from the back-end disk (a DDN SFA14KX). 0.000218276 37005 TRACE_DISK: doReplicatedRead: da 34:490710888 0.000218424 37005 TRACE_IO: QIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdName S01_DMD_NSD_034 da 34:490710888 nSectors 8 align 0 by iocMBHandler (DioHandlerThread) 0.000218566 37005 TRACE_DLEASE: checkLeaseForIO: rc 0 0.000218628 37005 TRACE_IO: SIO: ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 doioP 0x1806994D300 isDaemonAddr 0 0.000218672 37005 TRACE_FS: verify4KIO exit: code 4 err 0 0.000219106 37005 TRACE_NSD: nsdDoIO enter: read ioVecSize 1 1st bufAddr 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nBytes 4096 isDaemonAddr 0 0.000219408 37005 TRACE_GCRYPTO: EncBufPool::getTmpBuf(): bsize=4096 code=205 err=0 bufP=0x180656C1058 outBufP=0x180656C1058 index=0 0.000220105 37005 TRACE_TS: sendMessage msg_id 22993695: dest <c0n2> 10.3.17.3 sto03 0.000220436 37005 TRACE_RDMA: verbs::verbsSend_i: enter: index 11 cookie 12 node <c0n2> msg_id 22993695 len 92 0.000221111 37005 TRACE_RDMA: verbsConn::postSend: currRpcHeadP 0x7F6D7FA106E8 sendType SEND_BUFFER_RPC index 11 cookie 12 threadId 37005 bufferId.index 11 0.000221662 37005 TRACE_MUTEX: Waiting on fast condvar for signal 0x7F6D7FA106F8 RdmaSend_NSD_SVC 0.000426716 16691 TRACE_RDMA: handleRecvComp: success 1 of 1 nWrSuccess 1 index 11 cookie 12 wr_id 0xB0E6E00000000 bufferP 0x7F6D7EEE1700 byte_len 4144 0.000432140 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: read complete, len 0 status 6 err 0 bufP 0x180656C1058 dioIsOverRdma 1 ioDataP 0x200000BC000 ckSumType NsdCksum_None 0.000432163 37005 TRACE_NSD: nsdDoIO_ReadAndCheck: exit err 0 0.000433707 37005 TRACE_GCRYPTO: EncBufPool::releaseTmpBuf(): exit bsize=8192 err=0 inBufP=0x180656C1058 bufP=0x180656C1058 index=0 0.000433777 37005 TRACE_NSD: nsdDoIO exit: err 0 0 0.000433844 37005 TRACE_IO: FIO: read data tag 743942 108137 ioVecSize 1 1st buf 0x122F000 nsdId 0A011103:5C59DBAC da 34:490710888 nSectors 8 err 0 0.000434236 37005 TRACE_DISK: postIO: qosid A00D91E read data disk FFFFFFFF ioVecSize 1 1st buf 0x122F000 err 0 duration 0.000215000 by iocMBHandler (DioHandlerThread) I'd suggest looking at "mmdiag --iohist" on the NSD server itself and see if/how that differs from the client. The other thing you could do is see if your NSD server queues are backing up (e.g. "mmfsadm saferdump nsd" and look for "requests pending" on queues where the "active" field is > 0). That doesn't necessarily mean you need to tune your queues but I'd suggest that if the disk I/O on your NSD server looks healthy (e.g. low latency, not overly-taxed) that you could benefit from queue tuning. -Aaron On Sat, Feb 16, 2019 at 9:47 AM Buterbaugh, Kevin L <Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>> wrote: Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspectrumsca...> http://gpfsug.org/mailman/listinfo/gpfsug-discuss<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7Cd18386b226474395328208d696ada1a9%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636862069849506035&sdata=EjqZg1KP9NLMV1ki8KMzIhJQeTnacyxQHm6ueCzekP8%3D&reserved=0> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspectrumsca...> http://gpfsug.org/mailman/listinfo/gpfsug-discuss<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7Cd18386b226474395328208d696ada1a9%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636862069849516053&sdata=vqg3be8uYOiLnX%2FLIy4OnLa9lS0ikkPC6j9wZUJ4RxY%3D&reserved=0> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7Cd18386b226474395328208d696ada1a9%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636862069849536067&sdata=O5p52oLmSxQMWo2wwkVx8Z%2FapYpsAU9lAJ2cKvB095c%3D&reserved=0
Hi Kevin, The I/O hist shown by the command mmdiag --iohist actually depends on the node on which you are running this command from. If you are running this on a NSD server node then it will show the time taken to complete/serve the read or write I/O operation sent from the client node. And if you are running this on a client (or non NSD server) node then it will show the complete time taken by the read or write I/O operation requested by the client node to complete. So in a nut shell for the NSD server case it is just the latency of the I/O done on disk by the server whereas for the NSD client case it also the latency of send and receive of I/O request to the NSD server along with the latency of I/O done on disk by the NSD server. I hope this answers your query. Regards, The Spectrum Scale (GPFS) team ------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0... . If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries. The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team. From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 02/16/2019 08:18 PM Subject: [gpfsug-discuss] Clarification of mmdiag --iohist output Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Hi All, My thanks to Aaron, Sven, Steve, and whoever responded for the GPFS team. You confirmed what I suspected … my example 10 second I/O was _from an NSD server_ … and since we’re in a 8 Gb FC SAN environment, it therefore means - correct me if I’m wrong about this someone - that I’ve got a problem somewhere in one (or more) of the following 3 components: 1) the NSD servers 2) the SAN fabric 3) the storage arrays I’ve been looking at all of the above and none of them are showing any obvious problems. I’ve actually got a techie from the storage array vendor stopping by on Thursday, so I’ll see if he can spot anything there. Our FC switches are QLogic’s, so I’m kinda screwed there in terms of getting any help. But I don’t see any errors in the switch logs and “show perf” on the switches is showing I/O rates of 50-100 MB/sec on the in use ports, so I don’t _think_ that’s the issue. And this is the GPFS mailing list, after all … so let’s talk about the NSD servers. Neither memory (64 GB) nor CPU (2 x quad-core Intel Xeon E5620’s) appear to be an issue. But I have been looking at the output of “mmfsadm saferdump nsd” based on what Aaron and then Steve said. Here’s some fairly typical output from one of the SMALL queues (I’ve checked several of my 8 NSD servers and they’re all showing similar output): Queue NSD type NsdQueueTraditional [244]: SMALL, threads started 12, active 3, highest 12, deferred 0, chgSize 0, draining 0, is_chg 0 requests pending 0, highest pending 73, total processed 4859732 mutex 0x7F3E449B8F10, reqCond 0x7F3E449B8F58, thCond 0x7F3E449B8F98, queue 0x7F3E449B8EF0, nFreeNsdRequests 29 And for a LARGE queue: Queue NSD type NsdQueueTraditional [8]: LARGE, threads started 12, active 1, highest 12, deferred 0, chgSize 0, draining 0, is_chg 0 requests pending 0, highest pending 71, total processed 2332966 mutex 0x7F3E441F3890, reqCond 0x7F3E441F38D8, thCond 0x7F3E441F3918, queue 0x7F3E441F3870, nFreeNsdRequests 31 So my large queues seem to be slightly less utilized than my small queues overall … i.e. I see more inactive large queues and they generally have a smaller “highest pending” value. Question: are those non-zero “highest pending” values something to be concerned about? I have the following thread-related parameters set: [common] maxReceiverThreads 12 nsdMaxWorkerThreads 640 nsdThreadsPerQueue 4 nsdSmallThreadRatio 3 workerThreads 128 [serverLicense] nsdMaxWorkerThreads 1024 nsdThreadsPerQueue 12 nsdSmallThreadRatio 1 pitWorkerThreadsPerNode 3 workerThreads 1024 Also, at the top of the “mmfsadm saferdump nsd” output I see: Total server worker threads: running 1008, desired 147, forNSD 147, forGNR 0, nsdBigBufferSize 16777216 nsdMultiQueue: 256, nsdMultiQueueType: 1, nsdMinWorkerThreads: 16, nsdMaxWorkerThreads: 1024 Question: is the fact that 1008 is pretty close to 1024 a concern? Anything jump out at anybody? I don’t mind sharing full output, but it is rather lengthy. Is this worthy of a PMR? Thanks! -- Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633 On Feb 17, 2019, at 1:01 PM, IBM Spectrum Scale <scale@us.ibm.com<mailto:scale@us.ibm.com>> wrote: Hi Kevin, The I/O hist shown by the command mmdiag --iohist actually depends on the node on which you are running this command from. If you are running this on a NSD server node then it will show the time taken to complete/serve the read or write I/O operation sent from the client node. And if you are running this on a client (or non NSD server) node then it will show the complete time taken by the read or write I/O operation requested by the client node to complete. So in a nut shell for the NSD server case it is just the latency of the I/O done on disk by the server whereas for the NSD client case it also the latency of send and receive of I/O request to the NSD server along with the latency of I/O done on disk by the NSD server. I hope this answers your query. Regards, The Spectrum Scale (GPFS) team ------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fcommunity%2Fforums%2Fhtml%2Fforum%3Fid%3D11111111-0000-0000-0000-000000000479&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C2bfb2e8e30e64fa06c0f08d6959b2d38%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636860891056267091&sdata=%2FWFsVfr73xZcfH25vIFYC4ts7LlWDFUIoh9fLheAEwE%3D&reserved=0>. If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries. The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team. From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@Vanderbilt.Edu>> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 02/16/2019 08:18 PM Subject: [gpfsug-discuss] Clarification of mmdiag --iohist output Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>- (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C2bfb2e8e30e64fa06c0f08d6959b2d38%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636860891056277100&sdata=PP%2Bs3UFJOHEIFNk7aOXJgo46GVeQr6P%2FLwgDUIGzAXQ%3D&reserved=0> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C2bfb2e8e30e64fa06c0f08d6959b2d38%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636860891056297114&sdata=5pL67mhVyScJovkRHRqZog9bM5BZG8F2q972czIYAbA%3D&reserved=0
Are all of the slow IOs from the same NSD volumes? You could run an mmtrace and take an internaldump and open a ticket to the Spectrum Scale queue. You may want to limit the run to just your nsd servers and not all nodes like I use in my example. Or one of the tools we use to review a trace is available in /usr/lpp/mmfs/samples/debugtools/trsum.awk and you can run it passing in the uncompressed trace file and redirect standard out to a file. If you search for ' total ' in the trace you will find the different sections, or you can just grep ' total IO ' trsum.out | grep duration to get a quick look per LUN. mmtracectl --set --trace=def --tracedev-write-mode=overwrite --tracedev-overwrite-buffer-size=500M -N all mmtracectl --start -N all ; sleep 30 ; mmtracectl --stop -N all ; mmtracectl --off -N all mmdsh -N all "/usr/lpp/mmfs/bin/mmfsadm dump all >/tmp/mmfs/service.dumpall.\$(hostname)" Jim On Thursday, February 21, 2019, 7:23:46 AM EST, Frederick Stock <stockf@us.ibm.com> wrote: Kevin I'm assuming you have seen the article on IBM developerWorks about the GPFS NSD queues. It provides useful background for analyzing the dump nsd information. Here I'll list some thoughts for items that you can investigate/consider. If your NSD servers are doing both large (greater than 64K) and small (64K or less) IOs then you want to have the nsdSmallThreadRatio set to 1 as it seems you do for the NSD servers. This provides an equal number of SMALL and LARGE NSD queues. You can also increase the total number of queues (currently 256) but I cannot determine if that is necessary from the data you provided. Only on rare occasions have I seen a need to increase the number of queues. The fact that you have 71 highest pending on your LARGE queues and 73 highest pending on your SMALL queues would imply your IOs are queueing for a good while either waiting for resources in GPFS or waiting for IOs to complete. Your maximum buffer size is 16M which is defined to be the largest IO that can be requested by GPFS. This is the buffer size that GPFS will use for LARGE IOs. You indicated you had sufficient memory on the NSD servers but what is the value for the pagepool on those servers, and what is the value of the nsdBufSpace parameter? If the NSD server is just that then usually nsdBufSpace is set to 70. The IO buffers used by the NSD server come from the pagepool so you need sufficient space there for the maximum number of LARGE IO buffers that would be used concurrently by GPFS or threads will need to wait for those buffers to become available. Essentially you want to ensure you have sufficient memory for the maximum number of IOs all doing a large IO and that value being less than 70% of the pagepool size. You could look at the settings for the FC cards to ensure they are configured to do the largest IOs possible. I forget the actual values (have not done this for awhile) but there are settings for the adapters that control the maximum IO size that will be sent. I think you want this to be as large as the adapter can handle to reduce the number of messages needed to complete the large IOs done by GPFS. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com ----- Original message ----- From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> Sent by: gpfsug-discuss-bounces@spectrumscale.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Cc: Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output Date: Thu, Feb 21, 2019 6:39 AM Hi All, My thanks to Aaron, Sven, Steve, and whoever responded for the GPFS team. You confirmed what I suspected … my example 10 second I/O was _from an NSD server_ … and since we’re in a 8 Gb FC SAN environment, it therefore means - correct me if I’m wrong about this someone - that I’ve got a problem somewhere in one (or more) of the following 3 components: 1) the NSD servers2) the SAN fabric3) the storage arrays I’ve been looking at all of the above and none of them are showing any obvious problems. I’ve actually got a techie from the storage array vendor stopping by on Thursday, so I’ll see if he can spot anything there. Our FC switches are QLogic’s, so I’m kinda screwed there in terms of getting any help. But I don’t see any errors in the switch logs and “show perf” on the switches is showing I/O rates of 50-100 MB/sec on the in use ports, so I don’t _think_ that’s the issue. And this is the GPFS mailing list, after all … so let’s talk about the NSD servers. Neither memory (64 GB) nor CPU (2 x quad-core Intel Xeon E5620’s) appear to be an issue. But I have been looking at the output of “mmfsadm saferdump nsd” based on what Aaron and then Steve said. Here’s some fairly typical output from one of the SMALL queues (I’ve checked several of my 8 NSD servers and they’re all showing similar output): Queue NSD type NsdQueueTraditional [244]: SMALL, threads started 12, active 3, highest 12, deferred 0, chgSize 0, draining 0, is_chg 0 requests pending 0, highest pending 73, total processed 4859732 mutex 0x7F3E449B8F10, reqCond 0x7F3E449B8F58, thCond 0x7F3E449B8F98, queue 0x7F3E449B8EF0, nFreeNsdRequests 29 And for a LARGE queue: Queue NSD type NsdQueueTraditional [8]: LARGE, threads started 12, active 1, highest 12, deferred 0, chgSize 0, draining 0, is_chg 0 requests pending 0, highest pending 71, total processed 2332966 mutex 0x7F3E441F3890, reqCond 0x7F3E441F38D8, thCond 0x7F3E441F3918, queue 0x7F3E441F3870, nFreeNsdRequests 31 So my large queues seem to be slightly less utilized than my small queues overall … i.e. I see more inactive large queues and they generally have a smaller “highest pending” value. Question: are those non-zero “highest pending” values something to be concerned about? I have the following thread-related parameters set: [common]maxReceiverThreads 12nsdMaxWorkerThreads 640nsdThreadsPerQueue 4nsdSmallThreadRatio 3workerThreads 128 [serverLicense]nsdMaxWorkerThreads 1024nsdThreadsPerQueue 12nsdSmallThreadRatio 1pitWorkerThreadsPerNode 3workerThreads 1024 Also, at the top of the “mmfsadm saferdump nsd” output I see: Total server worker threads: running 1008, desired 147, forNSD 147, forGNR 0, nsdBigBufferSize 16777216nsdMultiQueue: 256, nsdMultiQueueType: 1, nsdMinWorkerThreads: 16, nsdMaxWorkerThreads: 1024 Question: is the fact that 1008 is pretty close to 1024 a concern? Anything jump out at anybody? I don’t mind sharing full output, but it is rather lengthy. Is this worthy of a PMR? Thanks! --Kevin Buterbaugh - Senior System AdministratorVanderbilt University - Advanced Computing Center for Research and EducationKevin.Buterbaugh@vanderbilt.edu - (615)875-9633 On Feb 17, 2019, at 1:01 PM, IBM Spectrum Scale <scale@us.ibm.com> wrote: Hi Kevin, The I/O hist shown by the command mmdiag --iohist actually depends on the node on which you are running this command from. If you are running this on a NSD server node then it will show the time taken to complete/serve the read or write I/O operation sent from the client node. And if you are running this on a client (or non NSD server) node then it will show the complete time taken by the read or write I/O operation requested by the client node to complete. So in a nut shell for the NSD server case it is just the latency of the I/O done on disk by the server whereas for the NSD client case it also the latency of send and receive of I/O request to the NSD server along with the latency of I/O done on disk by the NSD server. I hope this answers your query. Regards, The Spectrum Scale (GPFS) team ------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0.... If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 in the United States or your local IBM Service Center in other countries. The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team. From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 02/16/2019 08:18 PM Subject: [gpfsug-discuss] Clarification of mmdiag --iohist output Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-) I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O: 08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted> So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that: 1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else? I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu- (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C2bfb2e8e30e64fa06c0f08d6959b2d38%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636860891056297114&sdata=5pL67mhVyScJovkRHRqZog9bM5BZG8F2q972czIYAbA%3D&reserved=0 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi, using nsdSmallThreadRatio 1 is not necessarily correct, as it 'significant depends' (most used word combination of performance engineers) on your workload. to give some more background - on reads you need much more threads for small i/os than for large i/os to get maximum performance, the reason is a small i/o usually only reads one strip of data (sitting on one physical device) while a large i/o reads an entire stripe (which typically spans multiple devices). as a more concrete example, in a 8+2p raid setup a single full stripe read will trigger internal reads in parallel to 8 different targets at the same time, so for small i/os you would need 8 times as many small read requests (and therefore threads) to keep the drives busy at the same level. on writes its even more complex, a large full stripe write usually just writes to all target disks, while a tiny small write in the middle might force a read / modify / write which can have a huge write amplification and cause more work than a large full track i/o. raid controller caches also play a significant role here and make this especially hard to optimize as you need to know exactly what and where to measure when you tune to get improvements for real world workload and not just improve your synthetic test but actually hurt your real application performance. i should write a book about this some day ;-) hope that helps. Sven On Thu, Feb 21, 2019 at 4:23 AM Frederick Stock <stockf@us.ibm.com> wrote:
Kevin I'm assuming you have seen the article on IBM developerWorks about the GPFS NSD queues. It provides useful background for analyzing the dump nsd information. Here I'll list some thoughts for items that you can investigate/consider.
If your NSD servers are doing both large (greater than 64K) and small (64K or less) IOs then you want to have the nsdSmallThreadRatio set to 1 as it seems you do for the NSD servers. This provides an equal number of SMALL and LARGE NSD queues. You can also increase the total number of queues (currently 256) but I cannot determine if that is necessary from the data you provided. Only on rare occasions have I seen a need to increase the number of queues.
The fact that you have 71 highest pending on your LARGE queues and 73 highest pending on your SMALL queues would imply your IOs are queueing for a good while either waiting for resources in GPFS or waiting for IOs to complete. Your maximum buffer size is 16M which is defined to be the largest IO that can be requested by GPFS. This is the buffer size that GPFS will use for LARGE IOs. You indicated you had sufficient memory on the NSD servers but what is the value for the pagepool on those servers, and what is the value of the nsdBufSpace parameter? If the NSD server is just that then usually nsdBufSpace is set to 70. The IO buffers used by the NSD server come from the pagepool so you need sufficient space there for the maximum number of LARGE IO buffers that would be used concurrently by GPFS or threads will need to wait for those buffers to become available. Essentially you want to ensure you have sufficient memory for the maximum number of IOs all doing a large IO and that value being less than 70% of the pagepool size.
You could look at the settings for the FC cards to ensure they are configured to do the largest IOs possible. I forget the actual values (have not done this for awhile) but there are settings for the adapters that control the maximum IO size that will be sent. I think you want this to be as large as the adapter can handle to reduce the number of messages needed to complete the large IOs done by GPFS.
Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 <(720)%20430-8821> stockf@us.ibm.com
----- Original message ----- From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> Sent by: gpfsug-discuss-bounces@spectrumscale.org To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>
Cc: Subject: Re: [gpfsug-discuss] Clarification of mmdiag --iohist output Date: Thu, Feb 21, 2019 6:39 AM
Hi All,
My thanks to Aaron, Sven, Steve, and whoever responded for the GPFS team. You confirmed what I suspected … my example 10 second I/O was _from an NSD server_ … and since we’re in a 8 Gb FC SAN environment, it therefore means - correct me if I’m wrong about this someone - that I’ve got a problem somewhere in one (or more) of the following 3 components:
1) the NSD servers 2) the SAN fabric 3) the storage arrays
I’ve been looking at all of the above and none of them are showing any obvious problems. I’ve actually got a techie from the storage array vendor stopping by on Thursday, so I’ll see if he can spot anything there. Our FC switches are QLogic’s, so I’m kinda screwed there in terms of getting any help. But I don’t see any errors in the switch logs and “show perf” on the switches is showing I/O rates of 50-100 MB/sec on the in use ports, so I don’t _think_ that’s the issue.
And this is the GPFS mailing list, after all … so let’s talk about the NSD servers. Neither memory (64 GB) nor CPU (2 x quad-core Intel Xeon E5620’s) appear to be an issue. But I have been looking at the output of “mmfsadm saferdump nsd” based on what Aaron and then Steve said. Here’s some fairly typical output from one of the SMALL queues (I’ve checked several of my 8 NSD servers and they’re all showing similar output):
Queue NSD type NsdQueueTraditional [244]: SMALL, threads started 12, active 3, highest 12, deferred 0, chgSize 0, draining 0, is_chg 0 requests pending 0, highest pending 73, total processed 4859732 mutex 0x7F3E449B8F10, reqCond 0x7F3E449B8F58, thCond 0x7F3E449B8F98, queue 0x7F3E449B8EF0, nFreeNsdRequests 29
And for a LARGE queue:
Queue NSD type NsdQueueTraditional [8]: LARGE, threads started 12, active 1, highest 12, deferred 0, chgSize 0, draining 0, is_chg 0 requests pending 0, highest pending 71, total processed 2332966 mutex 0x7F3E441F3890, reqCond 0x7F3E441F38D8, thCond 0x7F3E441F3918, queue 0x7F3E441F3870, nFreeNsdRequests 31
So my large queues seem to be slightly less utilized than my small queues overall … i.e. I see more inactive large queues and they generally have a smaller “highest pending” value.
Question: are those non-zero “highest pending” values something to be concerned about?
I have the following thread-related parameters set:
[common] maxReceiverThreads 12 nsdMaxWorkerThreads 640 nsdThreadsPerQueue 4 nsdSmallThreadRatio 3 workerThreads 128
[serverLicense] nsdMaxWorkerThreads 1024 nsdThreadsPerQueue 12 nsdSmallThreadRatio 1 pitWorkerThreadsPerNode 3 workerThreads 1024
Also, at the top of the “mmfsadm saferdump nsd” output I see:
Total server worker threads: running 1008, desired 147, forNSD 147, forGNR 0, nsdBigBufferSize 16777216 nsdMultiQueue: 256, nsdMultiQueueType: 1, nsdMinWorkerThreads: 16, nsdMaxWorkerThreads: 1024
Question: is the fact that 1008 is pretty close to 1024 a concern?
Anything jump out at anybody? I don’t mind sharing full output, but it is rather lengthy. Is this worthy of a PMR?
Thanks!
-- Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 <(615)%20875-9633>
On Feb 17, 2019, at 1:01 PM, IBM Spectrum Scale <scale@us.ibm.com> wrote:
Hi Kevin,
The I/O hist shown by the command mmdiag --iohist actually depends on the node on which you are running this command from. If you are running this on a NSD server node then it will show the time taken to complete/serve the read or write I/O operation sent from the client node. And if you are running this on a client (or non NSD server) node then it will show the complete time taken by the read or write I/O operation requested by the client node to complete. So in a nut shell for the NSD server case it is just the latency of the I/O done on disk by the server whereas for the NSD client case it also the latency of send and receive of I/O request to the NSD server along with the latency of I/O done on disk by the NSD server. I hope this answers your query.
Regards, The Spectrum Scale (GPFS) team
------------------------------------------------------------------------------------------------------------------ If you feel that your question can benefit other users of Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0... <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ibm.co...> .
If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact 1-800-237-5511 <(800)%20237-5511> in the United States or your local IBM Service Center in other countries.
The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team.
From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 02/16/2019 08:18 PM Subject: [gpfsug-discuss] Clarification of mmdiag --iohist output Sent by: gpfsug-discuss-bounces@spectrumscale.org ------------------------------
Hi All,
Been reading man pages, docs, and Googling, and haven’t found a definitive answer to this question, so I knew exactly where to turn… ;-)
I’m dealing with some slow I/O’s to certain storage arrays in our environments … like really, really slow I/O’s … here’s just one example from one of my NSD servers of a 10 second I/O:
08:49:34.943186 W data 30:41615622144 2048 10115.192 srv dm-92 <client IP redacted>
So here’s my question … when mmdiag —iohist tells me that that I/O took slightly over 10 seconds, is that:
1. The time from when the NSD server received the I/O request from the client until it shipped the data back onto the wire towards the client? 2. The time from when the client issued the I/O request until it received the data back from the NSD server? 3. Something else?
I’m thinking it’s #1, but want to confirm. Which one it is has very obvious implications for our troubleshooting steps. Thanks in advance…
Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education *Kevin.Buterbaugh@vanderbilt.edu* <Kevin.Buterbaugh@vanderbilt.edu>- (615)875-9633 <(615)%20875-9633> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C2bfb2e8e30e64fa06c0f08d6959b2d38%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636860891056297114&sdata=5pL67mhVyScJovkRHRqZog9bM5BZG8F2q972czIYAbA%3D&reserved=0 <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%...>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (9)
-
Aaron Knister -
Buterbaugh, Kevin L -
Frederick Stock -
IBM Spectrum Scale -
Jim Doherty -
Jim Kavitsky -
Olaf Weiser -
Steve Crusan -
Sven Oehme
