Has anyone done mmap() I/O with GPFS? We are seeing quite variable performance issues with one of our applications (our first to use mmap I/O). We are using files larger than physical memory (32G-128G files on 24G x3650 M2 nodes). With a simple test case doing a sum of all of the bytes in a file we are not always seeing expected performance. When the problems occur the test program is spending all of its time in system wait (1 core of otherwise idle 8 core system). Increasing pagepool to 512M (from default) and/or increasing seqDiscardThreshhold to 1500G seemed to help with forward sequential reading. I'm not sure which change (or some other) is changing performance and think there is something else going on. Now our application programmer is testing by summing the bytes starting from the middle of the file and working out (alternating up and down) which may break the sequential read detection logic in GPFS. This seems to have returned to a very slow reading process. So far we are only testing with file reads but mmap() based file writes will be of interest soon. We are using GPFS 3.5.0-7 on this cluster with CentOS 6.4. The GPFS Block size is 262144. Per the FAQ/Release Notes we have set transparent_hugepage=never on our kernel boot options. I don't think this mmap problem is network related, but I'm looking at another problem which might be. The network is a mixed 10G/1G network using BNT switches. MTU is still 1500. Earlier we compared against a NetApp server and saw much better performance with the sequential read case. Thanks, Stuart Barkley -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone
Hi Stuart, On 16/05/2013, at 2:16 AM, Stuart Barkley <stuartb@4gh.net> wrote:
Has anyone done mmap() I/O with GPFS?
We've used it with GPFS under Windows, and I believe it's generally a Bad Idea™. <Not A Programmer> From what I understand of mmap() I/O, you're basically opening up a file handle _on disk_ that maps to a location in memory. The problem is that those file handles are 4K in size. </Not A Programmer> No striped filesystem likes 4K files. The application we were supporting was dealing with 5000 or so 110MB files. Initially GPFS performance was worse than a system with a single disk. After we convinced them to ditch mmap() I/O, our system became "the fastest we've ever run this on." So fast in fact, that we found all the other limitations on scaling that they'd built into their system. So for us mmap() IO became something of a curse word. Your mileage may vary. Matt. -- Matthew Wallis, Senior HPC Systems Administrator Victorian Partnership for Advanced Computing. Ph: +61 3 9925 4452 Fax: +61 3 9925 4647
participants (2)
-
Matthew Wallis -
Stuart Barkley
