Re: [gpfsug-discuss] sequential I/O write - performance
@Aaron Yes, I can confirm that 2MB blocks are transfered over. @ Jan-Frode We tried to change multiple parameters, but if you know the best combination for sequential IO, please let me know. #mmlsconfig autoload no dmapiFileHandleSize 32 minReleaseLevel 5.1.9.0 tscCmdAllowRemoteConnections no ccrEnabled yes cipherList AUTHONLY sdrNotifyAuthEnabled yes pagepool 64G maxblocksize 16384K maxMBpS 40000 maxReceiverThreads 32 nsdMaxWorkerThreads 512 nsdMinWorkerThreads 8 nsdMultiQueue 256 nsdSmallThreadRatio 0 nsdThreadsPerQueue 3 prefetchAggressiveness 2 adminMode central /dev/fs0 @Uwe Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the "problematic" dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it. Best, Michal
Just a few thoughts: We've often increased the seqDiscardThreshold in SAS on AIX GPFS implementations to much larger values ( a lot of large file sequential I/O). With a pagepool of 64G, maybe set to 4 or 8GB? Sequential writes from the application when spread across mutliple LUNs on the storage+Scale often do not resemble sequential writes from the storage POV. If overrunning a disk device representation in the OS, the device queue depth is one parameter that might be expanded to offer some relief. --- Glen Corneau Senior, Power Partner Technical Specialist (PTS-P) IBM Technology, North America Email: gcorneau@us.ibm.com Cell: 512-420-7988 ________________________________ From: gpfsug-discuss <gpfsug-discuss-bounces@gpfsug.org> on behalf of Michal Hruška <Michal.Hruska@mcomputers.cz> Sent: Thursday, February 8, 2024 08:59 To: gpfsug-discuss@gpfsug.org <gpfsug-discuss@gpfsug.org> Subject: [EXTERNAL] Re: [gpfsug-discuss] sequential I/O write - performance @Aaron Yes, I can confirm that 2MB blocks are transfered over. @ Jan-Frode We tried to change multiple parameters, but if you know the best combination for sequential IO, please let me know. #mmlsconfig autoload no dmapiFileHandleSize 32 minReleaseLevel ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/PjiDSg!2e-hQ74-QNlQ0KX70gHlD...> Report Suspicious ZjQcmQRYFpfptBannerEnd @Aaron Yes, I can confirm that 2MB blocks are transfered over. @ Jan-Frode We tried to change multiple parameters, but if you know the best combination for sequential IO, please let me know. #mmlsconfig autoload no dmapiFileHandleSize 32 minReleaseLevel 5.1.9.0 tscCmdAllowRemoteConnections no ccrEnabled yes cipherList AUTHONLY sdrNotifyAuthEnabled yes pagepool 64G maxblocksize 16384K maxMBpS 40000 maxReceiverThreads 32 nsdMaxWorkerThreads 512 nsdMinWorkerThreads 8 nsdMultiQueue 256 nsdSmallThreadRatio 0 nsdThreadsPerQueue 3 prefetchAggressiveness 2 adminMode central /dev/fs0 @Uwe Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the „problematic“ dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it. Best, Michal
You’re missing a few standard configs that might be relevant.. I would suggest: workerThreads=512 (or 1024) ignoreprefetchluncount=yes numamemoryinterleave=yes (and make sure numactl is installed) ignoreprefetchluncount is important to tell the system that you have multiple HDDs backing each LUN, otherwise it thinks there a single spindle, and won’t schedule much readahead/writebehind. -jf tor. 8. feb. 2024 kl. 16:00 skrev Michal Hruška <Michal.Hruska@mcomputers.cz
:
@Aaron
Yes, I can confirm that 2MB blocks are transfered over.
@ Jan-Frode
We tried to change multiple parameters, but if you know the best combination for sequential IO, please let me know.
#mmlsconfig
autoload no
dmapiFileHandleSize 32
minReleaseLevel 5.1.9.0
tscCmdAllowRemoteConnections no
ccrEnabled yes
cipherList AUTHONLY
sdrNotifyAuthEnabled yes
pagepool 64G
maxblocksize 16384K
maxMBpS 40000
maxReceiverThreads 32
nsdMaxWorkerThreads 512
nsdMinWorkerThreads 8
nsdMultiQueue 256
nsdSmallThreadRatio 0
nsdThreadsPerQueue 3
prefetchAggressiveness 2
adminMode central
/dev/fs0
@Uwe
Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the „problematic“ dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it.
Best, Michal
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
This won't affect your current issue but if you're doing a lot of large sequential IO you may want to consider setting prefetchPct to 40 to 60 percent instead of default 20%. In our environment that has measurable impact, but we have a lot less ram than you do in the pagepool (8g versus 64g). Also do you have a dedicated meta pool? If not that could be a source of contention. Highly recommend a small pinnable LUN or two as a dedicated meta pool. Alec On Thu, Feb 8, 2024, 7:01 AM Michal Hruška <Michal.Hruska@mcomputers.cz> wrote:
@Aaron
Yes, I can confirm that 2MB blocks are transfered over.
@ Jan-Frode
We tried to change multiple parameters, but if you know the best combination for sequential IO, please let me know.
#mmlsconfig
autoload no
dmapiFileHandleSize 32
minReleaseLevel 5.1.9.0
tscCmdAllowRemoteConnections no
ccrEnabled yes
cipherList AUTHONLY
sdrNotifyAuthEnabled yes
pagepool 64G
maxblocksize 16384K
maxMBpS 40000
maxReceiverThreads 32
nsdMaxWorkerThreads 512
nsdMinWorkerThreads 8
nsdMultiQueue 256
nsdSmallThreadRatio 0
nsdThreadsPerQueue 3
prefetchAggressiveness 2
adminMode central
/dev/fs0
@Uwe
Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the „problematic“ dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it.
Best, Michal
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
Michal, I think you need to revise your testing method. Let me explain. Based on my understandings: 3 FE servers and one storage system ~4500 MiB/s from 8 RAID groups using XFS (one XFS per one RAID group) and parallel fio test. one FS accross all 8 RAID groups and we observed performance drop down to ~3300 The test you are running is a non-clustered fs versus a clustered fs. XFS, 8 XFS filesystems. Each FS has it own Array and independent Meta, not shared between nodes Array will see sequential IO for each array and will be able to aggregate IO’s and prefetch on write. No lock traffic between nodes Didn’t mention for the FIO runs is this one node or the three nodes with fs’s spread across? Clusterd, 1 Filesystem (fs0) In this case Parallel Filsystem with shared Meta and access Lock and Meta traffic across nodes GPFS Stripes across NSD, 8 in this case. Each FIO stream will in a less sequential stream at the array level The LBA will be spread causing the array to work harder Array logics will not see this a sequential and delivery a much lower performance from a sequential point of view. What to do, Try 8 FS with your FIO test like XFS test 1 FS 1 Array and matching 1 FIO ( then x8 result) PS: You haven’t mention the type of array used? Sometimes the following is important. Disable prefetch at the array. This causes the array to sometimes over work it backend due to incorrectly fetching data that is never used causing xtra io and cache displacement. Ie GPFS aggressively prefetches which triggers the array to do further prefetch and both are not used. Dale
On 9 Feb 2024, at 6:30 am, Alec <anacreo@gmail.com> wrote:
This won't affect your current issue but if you're doing a lot of large sequential IO you may want to consider setting prefetchPct to 40 to 60 percent instead of default 20%. In our environment that has measurable impact, but we have a lot less ram than you do in the pagepool (8g versus 64g).
Also do you have a dedicated meta pool? If not that could be a source of contention. Highly recommend a small pinnable LUN or two as a dedicated meta pool.
Alec
On Thu, Feb 8, 2024, 7:01 AM Michal Hruška <Michal.Hruska@mcomputers.cz <mailto:Michal.Hruska@mcomputers.cz>> wrote:
@Aaron
Yes, I can confirm that 2MB blocks are transfered over.
@ Jan-Frode
We tried to change multiple parameters, but if you know the best combination for sequential IO, please let me know.
#mmlsconfig
autoload no
dmapiFileHandleSize 32
minReleaseLevel 5.1.9.0
tscCmdAllowRemoteConnections no
ccrEnabled yes
cipherList AUTHONLY
sdrNotifyAuthEnabled yes
pagepool 64G
maxblocksize 16384K
maxMBpS 40000
maxReceiverThreads 32
nsdMaxWorkerThreads 512
nsdMinWorkerThreads 8
nsdMultiQueue 256
nsdSmallThreadRatio 0
nsdThreadsPerQueue 3
prefetchAggressiveness 2
adminMode central
/dev/fs0
@Uwe
Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the „problematic“ dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it.
Best, Michal
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org <http://gpfsug.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
Can you check the value of workerThreads? It seems to be default and that is 48 without protocols. On Fri, Feb 9, 2024 at 3:04 AM dale mac <macthev@gmail.com> wrote:
Michal,
I think you need to revise your testing method. Let me explain.
Based on my understandings:
3 FE servers and one storage system
- ~4500 MiB/s from 8 RAID groups using XFS (one XFS per one RAID group) and parallel fio test. - one FS accross all 8 RAID groups and we observed performance drop down to ~3300
The test you are running is a non-clustered fs versus a clustered fs.
XFS,
- 8 XFS filesystems. - Each FS has it own Array and independent Meta, not shared between nodes - Array will see sequential IO for each array and will be able to aggregate IO’s and prefetch on write. - No lock traffic between nodes - Didn’t mention for the FIO runs is this one node or the three nodes with fs’s spread across?
Clusterd,
- 1 Filesystem (fs0) In this case - Parallel Filsystem with shared Meta and access - Lock and Meta traffic across nodes - GPFS Stripes across NSD, 8 in this case. - Each FIO stream will in a less sequential stream at the array level - The LBA will be spread causing the array to work harder - Array logics will not see this a sequential and delivery a much lower performance from a sequential point of view.
What to do,
Try
1. 8 FS with your FIO test like XFS test 2. 1 FS 1 Array and matching 1 FIO ( then x8 result)
PS: You haven’t mention the type of array used? Sometimes the following is important.
- Disable prefetch at the array. This causes the array to sometimes over work it backend due to incorrectly fetching data that is never used causing xtra io and cache displacement. Ie GPFS aggressively prefetches which triggers the array to do further prefetch and both are not used.
Dale
On 9 Feb 2024, at 6:30 am, Alec <anacreo@gmail.com> wrote:
This won't affect your current issue but if you're doing a lot of large sequential IO you may want to consider setting prefetchPct to 40 to 60 percent instead of default 20%. In our environment that has measurable impact, but we have a lot less ram than you do in the pagepool (8g versus 64g).
Also do you have a dedicated meta pool? If not that could be a source of contention. Highly recommend a small pinnable LUN or two as a dedicated meta pool.
Alec
On Thu, Feb 8, 2024, 7:01 AM Michal Hruška <Michal.Hruska@mcomputers.cz> wrote:
@Aaron
Yes, I can confirm that 2MB blocks are transfered over.
@ Jan-Frode
We tried to change multiple parameters, but if you know the best combination for sequential IO, please let me know.
#mmlsconfig
autoload no
dmapiFileHandleSize 32
minReleaseLevel 5.1.9.0
tscCmdAllowRemoteConnections no
ccrEnabled yes
cipherList AUTHONLY
sdrNotifyAuthEnabled yes
pagepool 64G
maxblocksize 16384K
maxMBpS 40000
maxReceiverThreads 32
nsdMaxWorkerThreads 512
nsdMinWorkerThreads 8
nsdMultiQueue 256
nsdSmallThreadRatio 0
nsdThreadsPerQueue 3
prefetchAggressiveness 2
adminMode central
/dev/fs0
@Uwe
Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the „problematic“ dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it.
Best, Michal
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
On Thu, Feb 08, 2024 at 02:59:15PM +0000, Michal Hruška wrote:
@Uwe Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the "problematic" dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it.
Hello, this behaviour could be caused by an assymmetry in data paths of your storage, relatively small imbalance can make request queue of a slightly slower disk grow seemingly unproportionally. In general, I think you need to scale your GPFS parameters down, not up, in order to force better write clustering and achieve top speed of rotational disks unless array controllers use huge cache memory. If you can change your benchmark workload, try synchronous writes (dd oflag=dsync ...). Best regards, Zdenek Salvet salvet@ics.muni.cz Institute of Computer Science of Masaryk University, Brno, Czech Republic and CESNET, z.s.p.o., Prague, Czech Republic Phone: ++420-549 49 6534 Fax: ++420-541 212 747 ---------------------------------------------------------------------------- Teamwork is essential -- it allows you to blame someone else.
You know I hadn't seen the original message when I commented earlier, sorry about that. It may sound dumb but have you tried tuning downwards as Zdenek says? Try the storage on a single RAID group and a 1MB block size, and then move up from there. We're on practically ancient infrastructure compared to what you have and get throughput equivalent. - Try returning the page pool to 8GB maybe you're prefetching TOO much data (this effect happens on Oracle when it is given too much memory everything slows to a crawl as it tries to keep every DB in memory). - Define your FS on a single RAID group, see what your max performance is (are you sure you're not wrapping any disk/controller access with so many platters being engaged adding latency?) - Tune your block size to 1MB. (the large block size could add latency depending on how the storage is handling that chunk) Once you've got a baseline on a more normal configuration you can scale up one variable at a time and see what gives better or worse performance. At IBM labs we were able to achieve 2.5GB/s on a single thread and 18GB/s to an ESS on a single Linux VM and our GPFS configuration was more or less baseline and with 1MB block size if I remember right. I'm building on Zdenek's answer as it's likely the step I would take in this instance, look for areas where the scale of your configuration could be introducing latencies. Alec On Fri, Feb 9, 2024 at 12:21 AM Zdenek Salvet <salvet@ics.muni.cz> wrote:
On Thu, Feb 08, 2024 at 02:59:15PM +0000, Michal Hruška wrote:
@Uwe Using iohist we found out that gpfs is overloading one dm-device (it took about 500ms to finish IOs). We replaced the "problematic" dm-device (as we have enough drives to play with) for new one but the overloading issue just jumped to another dm-device. We believe that this behaviour is caused by the gpfs but we are unable to locate the root cause of it.
Hello, this behaviour could be caused by an assymmetry in data paths of your storage, relatively small imbalance can make request queue of a slightly slower disk grow seemingly unproportionally.
In general, I think you need to scale your GPFS parameters down, not up, in order to force better write clustering and achieve top speed of rotational disks unless array controllers use huge cache memory. If you can change your benchmark workload, try synchronous writes (dd oflag=dsync ...).
Best regards, Zdenek Salvet salvet@ics.muni.cz Institute of Computer Science of Masaryk University, Brno, Czech Republic and CESNET, z.s.p.o., Prague, Czech Republic Phone: ++420-549 49 6534 Fax: ++420-541 212 747
---------------------------------------------------------------------------- Teamwork is essential -- it allows you to blame someone else.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
participants (7)
-
Alec -
dale mac -
Glen Corneau -
Jan-Frode Myklebust -
KG -
Michal Hruška -
Zdenek Salvet
