Over the years there have been several discussions about performance problems with mmap() on GPFS/Spectrum Scale. We are currently having problems with mmap() performance on our systems with new alphafold <https://github.com/deepmind/alphafold> protein folding software. Things look similar to previous times we have had mmap() problems. The software component "hhblits" appears to mmap a large file with genomic data and then does random reads throughout the file. GPFS appears to be doing 4K reads for each block limiting the performance. The first run takes 20+ hours to run. Subsequent identical runs complete in just 1-2 hours. After clearing the linux system cache (echo 3 > /proc/sys/vm/drop_caches) the slow performance returns for the next run. GPFS Server is 4.2.3-5 running on DDN hardware. CentOS 7.3 Default GPFS Client is 4.2.3-22. CentOS 7.9 We have tried a number of things including Spectrum Scale client version 5.0.5-9 which should have Sven's recent mmap performance improvements. Are the recent mmap performance improvements in the client code or the server code? Only now do I notice a suggestion: mmchconfig prefetchAggressivenessRead=0 -i I did not use this. Would a performance change be expected? Would the pagepool size be involved in this? Stuart Barkley -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone
Not that it answers Stuart's questions in any way, but we gave up on the same problem on a similar setup, rescued an old fileserver off the scrapheap (RAID6 of 12 x 7.2k rpm SAS on a PERC H710P) and just served the reference data by nfs - good enough to keep the compute busy rather than in cxiWaitEventWait. If there's significant demand for Alphafold then somebody's arm will be twisted for a new server with some NVMe. If I remember right, the reference data is ~2.3TB, ruling out our usual approach of just reading the problematic files into a ramdisk first. We are also interested in hearing how it might be usably served from GPFS. Thanks, Jon -- Dr. Jonathan Diprose <jon@well.ox.ac.uk> Tel: 01865 287873 Research Computing Manager Henry Wellcome Building for Genomic Medicine Roosevelt Drive, Headington, Oxford OX3 7BN ________________________________________ From: gpfsug-discuss-bounces@spectrumscale.org [gpfsug-discuss-bounces@spectrumscale.org] on behalf of Stuart Barkley [stuartb@4gh.net] Sent: 19 October 2021 18:16 To: gpfsug-discuss@spectrumscale.org Subject: [gpfsug-discuss] alphafold and mmap performance Over the years there have been several discussions about performance problems with mmap() on GPFS/Spectrum Scale. We are currently having problems with mmap() performance on our systems with new alphafold <https://github.com/deepmind/alphafold> protein folding software. Things look similar to previous times we have had mmap() problems. The software component "hhblits" appears to mmap a large file with genomic data and then does random reads throughout the file. GPFS appears to be doing 4K reads for each block limiting the performance. The first run takes 20+ hours to run. Subsequent identical runs complete in just 1-2 hours. After clearing the linux system cache (echo 3 > /proc/sys/vm/drop_caches) the slow performance returns for the next run. GPFS Server is 4.2.3-5 running on DDN hardware. CentOS 7.3 Default GPFS Client is 4.2.3-22. CentOS 7.9 We have tried a number of things including Spectrum Scale client version 5.0.5-9 which should have Sven's recent mmap performance improvements. Are the recent mmap performance improvements in the client code or the server code? Only now do I notice a suggestion: mmchconfig prefetchAggressivenessRead=0 -i I did not use this. Would a performance change be expected? Would the pagepool size be involved in this? Stuart Barkley -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Thanks Olaf, Jon and Fred. Some more details below. We may just need to wait on things to evolve (us getting Spectrum Scale 5 installed, alphafold getting HPC specific improvements). It will also be driven by whether our users have a real need for alphafold or are just enthusiastic due to the press releases. On Tue, 19 Oct 2021 at 16:27 -0000, Olaf Weiser wrote:
[...] We have tried a number of things including Spectrum Scale client version 5.0.5-9[...]
in the client code or the server code?
Our main client code is 4.2.3-22 but I'm trying 5.0.5-9 on a test client. The server code is (very old) 4.2.3-5.
there are going multiple improvements in the code.. continuously... Since your version 4.2.3 / 5.0.5 a lot of them are in the area of NSD server/GNR (which is server based) and also a lot of enhancements went into the client part. Some are on both .. such as RoCE, or using multiple TCP/IP sockets per communication pair, etc.... All this influences your performance..
Thanks for the information. Some of this sounds good. We had upgrade issues with DDN but we now have a license for Spectrum Scale 5. Its now mostly getting enough cycles to do the update.
But Id like to try to give you some answers to your specific Q -
Only now do I notice a suggestion: mmchconfig prefetchAggressivenessRead=0 -i I did not use this. Would a performance change be expected?
YES;-) .. this parameter should really help..
I'm trying this now with the 5.0 client. Initial indications are that there may be about 50% performance improvement but that is still significantly lower than we would hope. Using "mmdiag --iohist" we were seeing 750-900 8 sector reads per second. With prefetchAggressivenessRead=0 it looks the 8 sector reads seem about as frequent but there are often (5-10/second) reads of 100-2000 sectors in the mix. A rough estimate is the large reads are for about the same amount of data as the 8 sector reads. The number of large sector reads seem to be decreasing over time. I don't know the specifics of the algorithm but I image there is a lot of jumping around in the data. The early large reads may have brought in the more common regions and now it is filling the less dense regions. Just a thought.
from the UG expert talk 2020 we shared some numbers/charts on it https://www.spectrumscaleug.org/event/ssugdigital-spectrum-scale-expert-talk... formance-enhancements-in-spectrum-scale/ starting ~ 8:30 minutes / just 2 slides ... let us know, if you need more information
Yes, I had looked at the slides but not listened to the talk which was a mistake. There were some other interesting tidbits. In particular if we can get this to work we may try a scheduler prolog/epilog to change the parameter. We can look at that after our move from Grid Engine to Slurm which requires other cycles. On Tue, 19 Oct 2021 at 14:12 -0000, Jon Diprose wrote:
If I remember right, the reference data is ~2.3TB, ruling out our usual approach of just reading the problematic files into a ramdisk first.
We found the critical file is about 1.5TB and we are able to load that into ramdisk on a 2TB system (but it doesn't have any GPUs). We also have some old "spare" hardware that might be built as an NFS appliance for this purpose. I would prefer to see the ~10 year old hardware die. The alphafold application is one large monolith. The first phase does some large I/O and CPU intensive operations. The second phase does some GPU operations. We would prefer to separate the non-GPU code from the GPU code so we could have the GPU systems doing GPU stuff. We do this quite effectively with some of our other GPU code with CPU based pre/post processing. Stuart -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone
participants (4)
-
Frederick Stock -
Jon Diprose -
Olaf Weiser -
Stuart Barkley
