Tuning: single client, single thread, small files - native Scale vs NFS
Dear Spectrum Scale mailing list, I'm part of IBM Lab Services - currently i'm having multiple customers asking me for optimization of a similar workloads. The task is to tune a Spectrum Scale system (comprising ESS and CES protocol nodes) for the following workload: A single Linux NFS client mounts an NFS export, extracts a flat tar archive with lots of ~5KB files. I'm measuring the speed at which those 5KB files are written (`time tar xf archive.tar`). I do understand that Spectrum Scale is not designed for such workload (single client, single thread, small files, single directory), and that such benchmark in not appropriate to benmark the system. Yet I find myself explaining the performance for such scenario (git clone..) quite frequently, as customers insist that optimization of that scenario would impact individual users as it shows task duration. I want to make sure that I have optimized the system as much as possible for the given workload, and that I have not overlooked something obvious. When writing to GPFS directly I'm able to write ~1800 files / second in a test setup. This is roughly the same on the protocol nodes (NSD client), as well as on the ESS IO nodes (NSD server). When writing to the NFS export on the protocol node itself (to avoid any network effects) I'm only able to write ~230 files / second. Writing to the NFS export from another node (now including network latency) gives me ~220 files / second. There seems to be a huge performance degradation by adding NFS-Ganesha to the software stack alone. I wonder what can be done to minimize the impact. - Ganesha doesn't seem to support 'async' or 'no_wdelay' options... anything equivalent available? - Is there and expected advantage of using the network-latency tuned profile, as opposed to the ESS default throughput-performance profile? - Are there other relevant Kernel params? - Is there an expected advantage of raising the number of threads (NSD server (nsd*WorkerThreads) / NSD client (workerThreads) / Ganesha (NB_WORKER)) for the given workload (single client, single thread, small files)? - Are there other relevant GPFS params? - Impact of Sync replication, disk latency, etc is understood. - I'm aware that 'the real thing' would be to work with larger files in a multithreaded manner from multiple nodes - and that this scenario will scale quite well. I just want to ensure that I'm not missing something obvious over reiterating that massage to customers. Any help was greatly appreciated - thanks much in advance! Alexander Saupp IBM Germany Mit freundlichen Grüßen / Kind regards Alexander Saupp IBM Systems, Storage Platform, EMEA Storage Competence Center Phone: +49 7034-643-1512 IBM Deutschland GmbH Mobile: +49-172 7251072 Am Weiher 24 Email: alexander.saupp@de.ibm.com 65451 Kelsterbach Germany IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Matthias Hartmann (Vorsitzender), Norbert Janzen, Stefan Lutz, Nicole Reimer, Dr. Klaus Seifert, Wolfgang Wendt Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940
Hi, We recently had a PMR open for Ganesha related performance issues, which was resolved with an eFix that updated Ganesha. If you are running GPFS v5 I would suggest contacting support. Cheers, Carl. On Tue, 16 Oct 2018 at 5:20 am, Alexander Saupp <Alexander.Saupp@de.ibm.com> wrote:
Dear Spectrum Scale mailing list,
I'm part of IBM Lab Services - currently i'm having multiple customers asking me for optimization of a similar workloads.
The task is to tune a Spectrum Scale system (comprising ESS and CES protocol nodes) for the following workload: A single Linux NFS client mounts an NFS export, extracts a flat tar archive with lots of ~5KB files. I'm measuring the speed at which those 5KB files are written (`time tar xf archive.tar`).
I do understand that Spectrum Scale is not designed for such workload (single client, single thread, small files, single directory), and that such benchmark in not appropriate to benmark the system. Yet I find myself explaining the performance for such scenario (git clone..) quite frequently, as customers insist that optimization of that scenario would impact individual users as it shows task duration. I want to make sure that I have optimized the system as much as possible for the given workload, and that I have not overlooked something obvious.
When writing to GPFS directly I'm able to write ~1800 files / second in a test setup. This is roughly the same on the protocol nodes (NSD client), as well as on the ESS IO nodes (NSD server). When writing to the NFS export on the protocol node itself (to avoid any network effects) I'm only able to write ~230 files / second. Writing to the NFS export from another node (now including network latency) gives me ~220 files / second.
There seems to be a huge performance degradation by adding NFS-Ganesha to the software stack alone. I wonder what can be done to minimize the impact.
- Ganesha doesn't seem to support 'async' or 'no_wdelay' options... anything equivalent available? - Is there and expected advantage of using the network-latency tuned profile, as opposed to the ESS default throughput-performance profile? - Are there other relevant Kernel params? - Is there an expected advantage of raising the number of threads (NSD server (nsd*WorkerThreads) / NSD client (workerThreads) / Ganesha (NB_WORKER)) for the given workload (single client, single thread, small files)? - Are there other relevant GPFS params? - Impact of Sync replication, disk latency, etc is understood. - I'm aware that 'the real thing' would be to work with larger files in a multithreaded manner from multiple nodes - and that this scenario will scale quite well. I just want to ensure that I'm not missing something obvious over reiterating that massage to customers.
Any help was greatly appreciated - thanks much in advance! Alexander Saupp IBM Germany
Mit freundlichen Grüßen / Kind regards
*Alexander Saupp*
IBM Systems, Storage Platform, EMEA Storage Competence Center ------------------------------ Phone: +49 7034-643-1512 IBM Deutschland GmbH Mobile: +49-172 7251072 Am Weiher 24 Email: alexander.saupp@de.ibm.com 65451 Kelsterbach Germany ------------------------------ IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Matthias Hartmann (Vorsitzender), Norbert Janzen, Stefan Lutz, Nicole Reimer, Dr. Klaus Seifert, Wolfgang Wendt Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi Alexander, 1. >>When writing to GPFS directly I'm able to write ~1800 files / second in a test setup.
This is roughly the same on the protocol nodes (NSD client), as well as on the ESS IO nodes (NSD server).
2. >> When writing to the NFS export on the protocol node itself (to avoid any network effects) I'm only able to write ~230 files / second. IMHO #2, writing to the NFS export on the protocol node should be same as #1. Protocol node is also a NSD client and when you write from a protocol node, it will use the NSD protocol to write to the ESS IO nodes. In #1, you cite seeing ~1800 files from protocol node and in #2 you cite seeing ~230 file/sec which seem to contradict each other.
Writing to the NFS export from another node (now including network latency) gives me ~220 files / second.
IMHO, this workload "single client, single thread, small files, single directory - tar xf" is synchronous is nature and will result in single outstanding file to be sent from the NFS client to the CES node. Hence, the performance will be limited by network latency/capability between the NFS client and CES node for small IO size (~5KB file size). Also, what is the network interconnect/interface between the NFS client and CES node? Is the network 10GigE since @220 file/s for 5KiB file-size will saturate 1 x 10GigE link. 220 files/sec * 5KiB file size ==> ~1.126 GB/s.
I'm aware that 'the real thing' would be to work with larger files in a multithreaded manner from multiple nodes - and that this scenario will scale quite well.
Yes, larger file-size + multiple threads + multiple NFS client nodes will help to scale performance further by having more NFS I/O requests scheduled/pipelined over the network and processed on the CES nodes.
I just want to ensure that I'm not missing something obvious over reiterating that massage to customers.
Adding NFS experts/team, for advise. My two cents. Best Regards, -Kums From: "Alexander Saupp" <Alexander.Saupp@de.ibm.com> To: gpfsug-discuss@spectrumscale.org Date: 10/15/2018 02:20 PM Subject: [gpfsug-discuss] Tuning: single client, single thread, small files - native Scale vs NFS Sent by: gpfsug-discuss-bounces@spectrumscale.org Dear Spectrum Scale mailing list, I'm part of IBM Lab Services - currently i'm having multiple customers asking me for optimization of a similar workloads. The task is to tune a Spectrum Scale system (comprising ESS and CES protocol nodes) for the following workload: A single Linux NFS client mounts an NFS export, extracts a flat tar archive with lots of ~5KB files. I'm measuring the speed at which those 5KB files are written (`time tar xf archive.tar`). I do understand that Spectrum Scale is not designed for such workload (single client, single thread, small files, single directory), and that such benchmark in not appropriate to benmark the system. Yet I find myself explaining the performance for such scenario (git clone..) quite frequently, as customers insist that optimization of that scenario would impact individual users as it shows task duration. I want to make sure that I have optimized the system as much as possible for the given workload, and that I have not overlooked something obvious. When writing to GPFS directly I'm able to write ~1800 files / second in a test setup. This is roughly the same on the protocol nodes (NSD client), as well as on the ESS IO nodes (NSD server). When writing to the NFS export on the protocol node itself (to avoid any network effects) I'm only able to write ~230 files / second. Writing to the NFS export from another node (now including network latency) gives me ~220 files / second. There seems to be a huge performance degradation by adding NFS-Ganesha to the software stack alone. I wonder what can be done to minimize the impact. - Ganesha doesn't seem to support 'async' or 'no_wdelay' options... anything equivalent available? - Is there and expected advantage of using the network-latency tuned profile, as opposed to the ESS default throughput-performance profile? - Are there other relevant Kernel params? - Is there an expected advantage of raising the number of threads (NSD server (nsd*WorkerThreads) / NSD client (workerThreads) / Ganesha (NB_WORKER)) for the given workload (single client, single thread, small files)? - Are there other relevant GPFS params? - Impact of Sync replication, disk latency, etc is understood. - I'm aware that 'the real thing' would be to work with larger files in a multithreaded manner from multiple nodes - and that this scenario will scale quite well. I just want to ensure that I'm not missing something obvious over reiterating that massage to customers. Any help was greatly appreciated - thanks much in advance! Alexander Saupp IBM Germany Mit freundlichen Grüßen / Kind regards Alexander Saupp IBM Systems, Storage Platform, EMEA Storage Competence Center Phone: +49 7034-643-1512 IBM Deutschland GmbH Mobile: +49-172 7251072 Am Weiher 24 Email: alexander.saupp@de.ibm.com 65451 Kelsterbach Germany IBM Deutschland GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Matthias Hartmann (Vorsitzender), Norbert Janzen, Stefan Lutz, Nicole Reimer, Dr. Klaus Seifert, Wolfgang Wendt Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 14562 / WEEE-Reg.-Nr. DE 99369940 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Mon, 15 Oct 2018 18:34:50 -0400, "Kumaran Rajaram" said:
1. >>When writing to GPFS directly I'm able to write ~1800 files / second in a test setup.
This is roughly the same on the protocol nodes (NSD client), as well as on the ESS IO nodes (NSD server).
2. >> When writing to the NFS export on the protocol node itself (to avoid any network effects) I'm only able to write ~230 files / second.
IMHO #2, writing to the NFS export on the protocol node should be same as #1. Protocol node is also a NSD client and when you write from a protocol node, it will use the NSD protocol to write to the ESS IO nodes. In #1, you cite seeing ~1800 files from protocol node and in #2 you cite seeing ~230 file/sec which seem to contradict each other.
I think he means this: 1) ssh nsd_server 2) cd /gpfs/filesystem/testarea 3) (whomp out 1800 files/sec) 4) mount -t nfs localhost:/gpfs/filesystem/testarea /mnt/test 5) cd /mnt/test 6) Watch the same test struggle to hit 230. Indicating the issue is going from NFS to GPFS (For what it's worth, we've had issues with Ganesha as well...)
All NFS IO requires syncing. The client does send explicit fsync (commit). If the NFS server does not sync, a server fail will cause data loss! (for small files <1M it really does not matter if it is sync on write or sync on close/explicit commit) while that may be ok for a "git pull" or similar, in general it violates the NFS spec. The client can decide to cache, and usually NFSv4 does less caching (for better consistency) So the observed factor 100 is realistic. Latencies will make matters worse, so the FS should be tuned for very small random IO (small blocksize - small subblock-size will not help) If you were to put the Linux kernel NFS server into the picture, it will behave very much the same - although Ganesha could be a bit more efficient (by some percent - certainly less then 200%). But hey - this is a GPFS cluster not some NAS box. Run "git pull" on tthe GPFS client. Enjoy the 1800 files/sec (or more). Modify the files on your XY client mounting over NFS. Use a wrapper script to automatically have your AD or LDAP user id SSH into the cluster to perform it. Michael Mit freundlichen Grüßen / with best regards Michael Diederich IBM Systems Group Spectrum Scale Software Development Contact Information IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 mail: fon: address: michael.diederich@de.ibm.com +49-7034-274-4062 Am Weiher 24 D-65451 Kelsterbach From: valdis.kletnieks@vt.edu To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Cc: Silvana De Gyves <silvanad@mx1.ibm.com>, Jay Vaddi <jayvaddi@us.ibm.com>, Michael Diederich <diederich@de.ibm.com> Date: 10/16/2018 02:42 AM Subject: Re: [gpfsug-discuss] Tuning: single client, single thread, small files - native Scale vs NFS Sent by: Valdis Kletnieks <valdis@vt.edu> On Mon, 15 Oct 2018 18:34:50 -0400, "Kumaran Rajaram" said:
1. >>When writing to GPFS directly I'm able to write ~1800 files / second in a test setup.
This is roughly the same on the protocol nodes (NSD client), as well as on the ESS IO nodes (NSD server).
2. >> When writing to the NFS export on the protocol node itself (to avoid any network effects) I'm only able to write ~230 files / second.
IMHO #2, writing to the NFS export on the protocol node should be same as #1. Protocol node is also a NSD client and when you write from a protocol node, it will use the NSD protocol to write to the ESS IO nodes. In #1, you cite seeing ~1800 files from protocol node and in #2 you cite seeing ~230 file/sec which seem to contradict each other.
I think he means this: 1) ssh nsd_server 2) cd /gpfs/filesystem/testarea 3) (whomp out 1800 files/sec) 4) mount -t nfs localhost:/gpfs/filesystem/testarea /mnt/test 5) cd /mnt/test 6) Watch the same test struggle to hit 230. Indicating the issue is going from NFS to GPFS (For what it's worth, we've had issues with Ganesha as well...) [attachment "att4z9wh.dat" deleted by Michael Diederich/Germany/IBM]
participants (6)
-
Achim Rehor -
Alexander Saupp -
Carl -
Kumaran Rajaram -
Michael Diederich -
valdis.kletnieks@vt.edu
