I hate admitting this but I’ve found something that’s got me stumped. We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don’t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don’t understand is why these write requests aren’t getting batched up into larger write requests to the underlying disks. If I do something like “df if=/dev/zero of=foo bs=8k” on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD. As best I can tell the application isn’t doing any fsync’s and isn’t doing direct io to these files. Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another? Thanks! -Stumped
?Hi Stumped, Is this MPI job on one machine? Multiple nodes? Are the tiny 8K writes to the same file or different ones? Chris ________________________________ From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] <aaron.s.knister@nasa.gov> Sent: Tuesday, April 10, 2018 9:00 AM To: gpfsug main discussion list Subject: [gpfsug-discuss] Confusing I/O Behavior I hate admitting this but I've found something that's got me stumped. We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don't appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don't understand is why these write requests aren't getting batched up into larger write requests to the underlying disks. If I do something like "df if=/dev/zero of=foo bs=8k" on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD. As best I can tell the application isn't doing any fsync's and isn't doing direct io to these files. Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another? Thanks! -Stumped
Chris, The job runs across multiple nodes and the tinky 8K writes *should* be to different files that are unique per-rank. -Aaron On 4/10/18 12:18 PM, Chris Hoffman wrote:
Hi Stumped,
Is this MPI job on one machine? Multiple nodes? Are the tiny 8K writes to the same file or different ones?
Chris
------------------------------------------------------------------------ *From:* gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] <aaron.s.knister@nasa.gov> *Sent:* Tuesday, April 10, 2018 9:00 AM *To:* gpfsug main discussion list *Subject:* [gpfsug-discuss] Confusing I/O Behavior I hate admitting this but I’ve found something that’s got me stumped.
We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don’t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don’t understand is why these write requests aren’t getting batched up into larger write requests to the underlying disks.
If I do something like “df if=/dev/zero of=foo bs=8k” on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD.
As best I can tell the application isn’t doing any fsync’s and isn’t doing direct io to these files.
Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another?
Thanks!
-Stumped
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
I wonder if this is an artifact of pagepool exhaustion which makes me ask the question-- how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand). -Aaron On 4/10/18 12:00 PM, Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] wrote:
I hate admitting this but I’ve found something that’s got me stumped.
We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don’t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don’t understand is why these write requests aren’t getting batched up into larger write requests to the underlying disks.
If I do something like “df if=/dev/zero of=foo bs=8k” on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD.
As best I can tell the application isn’t doing any fsync’s and isn’t doing direct io to these files.
Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another?
Thanks!
-Stumped
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776
"how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand)" +1. Pointers appreciated! :-) On 10 April 2018 at 17:22, Aaron Knister <aaron.s.knister@nasa.gov> wrote:
I wonder if this is an artifact of pagepool exhaustion which makes me ask the question-- how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand).
-Aaron
On 4/10/18 12:00 PM, Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] wrote:
I hate admitting this but I’ve found something that’s got me stumped.
We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don’t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don’t understand is why these write requests aren’t getting batched up into larger write requests to the underlying disks.
If I do something like “df if=/dev/zero of=foo bs=8k” on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD.
As best I can tell the application isn’t doing any fsync’s and isn’t doing direct io to these files.
Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another?
Thanks!
-Stumped
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- [image: Framestore] Peter Smith · Senior Systems Engineer London · New York · Los Angeles · Chicago · Montréal T +44 (0)20 7208 2600 · M +44 (0)7816 123009 <+44%20%280%297816%20123009> 28 Chancery Lane, London WC2A 1LB <https://www.google.co.uk/maps/place/19-23+Wells+Street,+London+W1T+3PQ> Twitter <https://twitter.com/framestore> · Facebook <https://www.facebook.com/framestore> · framestore.com <http://www.framestore.com>
mmfsadm dump pgalloc might get you one step further ... Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: Peter Smith <peter.smith@framestore.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 02/05/2018 12:10 Subject: Re: [gpfsug-discuss] Confusing I/O Behavior Sent by: gpfsug-discuss-bounces@spectrumscale.org "how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand)" +1. Pointers appreciated! :-) On 10 April 2018 at 17:22, Aaron Knister <aaron.s.knister@nasa.gov> wrote: I wonder if this is an artifact of pagepool exhaustion which makes me ask the question-- how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand). -Aaron On 4/10/18 12:00 PM, Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] wrote: I hate admitting this but I?ve found something that?s got me stumped. We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don?t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don?t understand is why these write requests aren?t getting batched up into larger write requests to the underlying disks. If I do something like ?df if=/dev/zero of=foo bs=8k? on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD. As best I can tell the application isn?t doing any fsync?s and isn?t doing direct io to these files. Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another? Thanks! -Stumped _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss -- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss -- Peter Smith · Senior Systems Engineer London · New York · Los Angeles · Chicago · Montréal T +44 (0)20 7208 2600 · M +44 (0)7816 123009 28 Chancery Lane, London WC2A 1LB Twitter · Facebook · framestore.com _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
a few more weeks and we have a better answer than dump pgalloc ;-) On Wed, May 2, 2018 at 6:07 AM Peter Smith <peter.smith@framestore.com> wrote:
"how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand)"
+1. Pointers appreciated! :-)
On 10 April 2018 at 17:22, Aaron Knister <aaron.s.knister@nasa.gov> wrote:
I wonder if this is an artifact of pagepool exhaustion which makes me ask the question-- how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand).
-Aaron
On 4/10/18 12:00 PM, Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] wrote:
I hate admitting this but I’ve found something that’s got me stumped.
We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don’t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don’t understand is why these write requests aren’t getting batched up into larger write requests to the underlying disks.
If I do something like “df if=/dev/zero of=foo bs=8k” on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD.
As best I can tell the application isn’t doing any fsync’s and isn’t doing direct io to these files.
Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another?
Thanks!
-Stumped
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- [image: Framestore] Peter Smith · Senior Systems Engineer London · New York · Los Angeles · Chicago · Montréal T +44 (0)20 7208 2600 · M +44 (0)7816 123009 <+44%20%280%297816%20123009> 28 Chancery Lane, London WC2A 1LB <https://www.google.co.uk/maps/place/19-23+Wells+Street,+London+W1T+3PQ> Twitter <https://twitter.com/framestore> · Facebook <https://www.facebook.com/framestore> · framestore.com <http://www.framestore.com>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Aaron, Peter, I'm monitoring the pagepool usage as: buffers=`/usr/lpp/mmfs/bin/mmfsadm dump buffers | grep bufLen | awk '{ SUM += $7} END { print SUM }'` result in bytes If your pagepool is huge - the execution could take some time ( ~5 sec on 100Gb pagepool ) --Alex On Wed, May 2, 2018 at 6:06 AM, Peter Smith <peter.smith@framestore.com> wrote:
"how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand)"
+1. Pointers appreciated! :-)
On 10 April 2018 at 17:22, Aaron Knister <aaron.s.knister@nasa.gov> wrote:
I wonder if this is an artifact of pagepool exhaustion which makes me ask the question-- how do I see how much of the pagepool is in use and by what? I've looked at mmfsadm dump and mmdiag --memory and neither has provided me the information I'm looking for (or at least not in a format I understand).
-Aaron
On 4/10/18 12:00 PM, Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] wrote:
I hate admitting this but I’ve found something that’s got me stumped.
We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don’t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don’t understand is why these write requests aren’t getting batched up into larger write requests to the underlying disks.
If I do something like “df if=/dev/zero of=foo bs=8k” on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD.
As best I can tell the application isn’t doing any fsync’s and isn’t doing direct io to these files.
Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another?
Thanks!
-Stumped
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Aaron Knister NASA Center for Climate Simulation (Code 606.2) Goddard Space Flight Center (301) 286-2776 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- [image: Framestore] Peter Smith · Senior Systems Engineer London · New York · Los Angeles · Chicago · Montréal T +44 (0)20 7208 2600 · M +44 (0)7816 123009 <+44%20%280%297816%20123009> 28 Chancery Lane, London WC2A 1LB <https://www.google.co.uk/maps/place/19-23+Wells+Street,+London+W1T+3PQ> Twitter <https://twitter.com/framestore> · Facebook <https://www.facebook.com/framestore> · framestore.com <http://www.framestore.com>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Debug messages are typically unbuffered or "line buffered". If that is truly causing a performance problem AND you still want to collect the messages -- you'll need to find a better way to channel and collect those messages.
Let’s keep in mind that line buffering is a concept within the standard C library; if every log line triggers one write(2) system call, and it’s not direct io, then multiple write still get coalesced into few larger disk writes (as with the dd example). A logging application might choose to close(2) a log file after each write(2) — that produces a different scenario, where the file system might guarantee that the data has been written to disk when close(2) return a success. (Local Linux file systems do not do this with default mounts, but networked filesystems usually do.) Aaron, can you trace your application to see what is going on in terms of system calls? — Peter
On 2018 Apr 10 Tue, at 18:28, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Debug messages are typically unbuffered or "line buffered". If that is truly causing a performance problem AND you still want to collect the messages -- you'll need to find a better way to channel and collect those messages.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Just another thought here. If the debug output files fit in an inode, then these would be handled as metadata updates to the inode, which is typically much smaller than the file system blocksize. Looking at my storage that handles GPFS metadata shows avg KiB/IO at a horrendous 5-12 KiB! HTH, -B -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Peter Serocka Sent: Wednesday, April 11, 2018 6:07 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Confusing I/O Behavior Note: External Email ------------------------------------------------- Let’s keep in mind that line buffering is a concept within the standard C library; if every log line triggers one write(2) system call, and it’s not direct io, then multiple write still get coalesced into few larger disk writes (as with the dd example). A logging application might choose to close(2) a log file after each write(2) — that produces a different scenario, where the file system might guarantee that the data has been written to disk when close(2) return a success. (Local Linux file systems do not do this with default mounts, but networked filesystems usually do.) Aaron, can you trace your application to see what is going on in terms of system calls? — Peter
On 2018 Apr 10 Tue, at 18:28, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Debug messages are typically unbuffered or "line buffered". If that is truly causing a performance problem AND you still want to collect the messages -- you'll need to find a better way to channel and collect those messages.
_______________________________________________ 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 ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
Good point about "tiny" files going into the inode and system pool. Which reminds one: Generally a bad idea to store metadata in wide striping disk base RAID (Type 5 with spinning media) Do use SSD or similar for metadata. Consider smaller block size for metadata / system pool than regular file data. From: Bryan Banister <bbanister@jumptrading.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 04/11/2018 12:51 PM Subject: Re: [gpfsug-discuss] Confusing I/O Behavior Sent by: gpfsug-discuss-bounces@spectrumscale.org Just another thought here. If the debug output files fit in an inode, then these would be handled as metadata updates to the inode, which is typically much smaller than the file system blocksize. Looking at my storage that handles GPFS metadata shows avg KiB/IO at a horrendous 5-12 KiB! HTH, -B -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [ mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Peter Serocka Sent: Wednesday, April 11, 2018 6:07 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] Confusing I/O Behavior Note: External Email ------------------------------------------------- Let’s keep in mind that line buffering is a concept within the standard C library; if every log line triggers one write(2) system call, and it’s not direct io, then multiple write still get coalesced into few larger disk writes (as with the dd example). A logging application might choose to close(2) a log file after each write(2) — that produces a different scenario, where the file system might guarantee that the data has been written to disk when close(2) return a success. (Local Linux file systems do not do this with default mounts, but networked filesystems usually do.) Aaron, can you trace your application to see what is going on in terms of system calls? — Peter
On 2018 Apr 10 Tue, at 18:28, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Debug messages are typically unbuffered or "line buffered". If that is truly causing a performance problem AND you still want to collect the messages -- you'll need to find a better way to channel and collect those messages.
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi... ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
GPFS doesn't do flush on close by default unless explicit asked by the application itself, but you can configure that . mmchconfig flushOnClose=yes if you use O_SYNC or O_DIRECT then each write ends up on the media before we return. sven On Wed, Apr 11, 2018 at 7:06 AM Peter Serocka <peserocka@gmail.com> wrote:
Let’s keep in mind that line buffering is a concept within the standard C library; if every log line triggers one write(2) system call, and it’s not direct io, then multiple write still get coalesced into few larger disk writes (as with the dd example).
A logging application might choose to close(2) a log file after each write(2) — that produces a different scenario, where the file system might guarantee that the data has been written to disk when close(2) return a success.
(Local Linux file systems do not do this with default mounts, but networked filesystems usually do.)
Aaron, can you trace your application to see what is going on in terms of system calls?
— Peter
On 2018 Apr 10 Tue, at 18:28, Marc A Kaplan <makaplan@us.ibm.com> wrote:
Debug messages are typically unbuffered or "line buffered". If that is truly causing a performance problem AND you still want to collect the messages -- you'll need to find a better way to channel and collect those messages.
_______________________________________________ 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 Aaron, to how many different files do these tiny I/O requests go? Mind that the write aggregates the I/O over a limited time (5 secs or so) and ***per file***. It is for that matter a large difference to write small chunks all to one file or to a large number of individual files . to fill a 1 MiB buffer you need about 13100 chunks of 80Bytes ***per file*** within those 5 secs. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP]" <aaron.s.knister@nasa.gov> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 10/04/2018 18:09 Subject: [gpfsug-discuss] Confusing I/O Behavior Sent by: gpfsug-discuss-bounces@spectrumscale.org I hate admitting this but I?ve found something that?s got me stumped. We have a user running an MPI job on the system. Each rank opens up several output files to which it writes ASCII debug information. The net result across several hundred ranks is an absolute smattering of teeny tiny I/o requests to te underlying disks which they don?t appreciate. Performance plummets. The I/o requests are 30 to 80 bytes in size. What I don?t understand is why these write requests aren?t getting batched up into larger write requests to the underlying disks. If I do something like ?df if=/dev/zero of=foo bs=8k? on a node I see that the nasty unaligned 8k io requests are batched up into nice 1M I/o requests before they hit the NSD. As best I can tell the application isn?t doing any fsync?s and isn?t doing direct io to these files. Can anyone explain why seemingly very similar io workloads appear to result in well formed NSD I/O in one case and awful I/o in another? Thanks! -Stumped _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Tue, 2018-04-10 at 23:43 +0200, Uwe Falke wrote:
Hi Aaron, to how many different files do these tiny I/O requests go?
Mind that the write aggregates the I/O over a limited time (5 secs or so) and ***per file***. It is for that matter a large difference to write small chunks all to one file or to a large number of individual files . to fill a 1 MiB buffer you need about 13100 chunks of 80Bytes ***per file*** within those 5 secs.
Something else to bear in mind is that you might be using a library that converts everything into putchar's. I have seen this in the past with Office on a Mac platform and made performance saving a file over SMB/NFS appalling. I mean really really bad, a "save as" which didn't do that would take a second or two, a save would take like 15 minutes. To the local disk it was just fine. The GPFS angle is this was all on a self rolled clustered Samba GPFS setup back in the day. Took a long time to track down, and performance turned out to be just as appalling with a real Windows file server. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
It would be interesting in which chunks data arrive at the NSDs -- if those chunks are bigger than the individual I/Os (i.e. multiples of the record sizes), there is some data coalescing going on and it just needs to have its path well paved ... If not, there might be indeed something odd in the configuration. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 gpfsug-discuss-bounces@spectrumscale.org wrote on 11/04/2018 12:14:21:
From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 11/04/2018 12:14 Subject: Re: [gpfsug-discuss] Confusing I/O Behavior Sent by: gpfsug-discuss-bounces@spectrumscale.org
On Tue, 2018-04-10 at 23:43 +0200, Uwe Falke wrote:
Hi Aaron, to how many different files do these tiny I/O requests go?
Mind that the write aggregates the I/O over a limited time (5 secs or so) and ***per file***. It is for that matter a large difference to write small chunks all to one file or to a large number of individual files . to fill a 1 MiB buffer you need about 13100 chunks of 80Bytes ***per file*** within those 5 secs.
Something else to bear in mind is that you might be using a library that converts everything into putchar's. I have seen this in the past with Office on a Mac platform and made performance saving a file over SMB/NFS appalling. I mean really really bad, a "save as" which didn't do that would take a second or two, a save would take like 15 minutes. To the local disk it was just fine.
The GPFS angle is this was all on a self rolled clustered Samba GPFS setup back in the day. Took a long time to track down, and performance turned out to be just as appalling with a real Windows file server.
JAB.
-- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (11)
-
Aaron Knister -
Alex Levin -
Bryan Banister -
Chris Hoffman -
Jonathan Buzzard -
Knister, Aaron S. (GSFC-606.2)[COMPUTER SCIENCE CORP] -
Marc A Kaplan -
Peter Serocka -
Peter Smith -
Sven Oehme -
Uwe Falke
