From: Bob Peterson Date: Wed, 24 Jan 2018 12:04:36 -0500 (EST) Subject: [Cluster-devel] [GFS2 PATCH 2/2] GFS2: Split gfs2_rgrp_congested into inter-node and intra-node cases In-Reply-To: <1328851421.2018422.1516373037252.JavaMail.zimbra@redhat.com> References: <20180117142335.26491-1-rpeterso@redhat.com> <20180117142335.26491-3-rpeterso@redhat.com> <1328851421.2018422.1516373037252.JavaMail.zimbra@redhat.com> Message-ID: <900590340.3759892.1516813476837.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, ----- Original Message ----- | | My comments in relation to the previous patch still stand. This is still | | the wrong answer to the problem. If we have lock contention here, then | | we should be looking to fix the locking and not trying to avoid the | | issue by choosing a different rgrp. | This is also not too different from how we gained performance | boosts with the Orlov algorithm to assign unique rgrps to groups | of files, which also spread the distance of the writes. | | This will not increase file fragmentation because that is all | mitigated by the multi-block allocation algorithms we have | in place. I've done some more analysis of the scale-out performance with and without these two patches, with help from Barry in the performance group. Attached to this email is an output file that compares performance results from a stock test kernel to the same test kernel plus my previously posted patches for intra-node congestion. You can see from this summary grep that the scalability is vastly better with the patch: [root at perf82 bin]# pr -m -T -w 160 stock829.log iozone16.log | grep 'Parent' Parent sees throughput for 1 initial writers = 543094.03 kB/sec Parent sees throughput for 1 initial writers = 539514.33 kB/sec Parent sees throughput for 2 initial writers = 621523.39 kB/sec Parent sees throughput for 2 initial writers = 625554.26 kB/sec Parent sees throughput for 4 initial writers = 244177.34 kB/sec Parent sees throughput for 4 initial writers = 803140.31 kB/sec Parent sees throughput for 6 initial writers = 196014.09 kB/sec Parent sees throughput for 6 initial writers = 765439.86 kB/sec Parent sees throughput for 8 initial writers = 157997.14 kB/sec Parent sees throughput for 8 initial writers = 760862.85 kB/sec Parent sees throughput for 10 initial writers = 155714.45 kB/sec Parent sees throughput for 10 initial writers = 829598.76 kB/sec Parent sees throughput for 12 initial writers = 133166.40 kB/sec Parent sees throughput for 12 initial writers = 744604.51 kB/sec Parent sees throughput for 14 initial writers = 146353.44 kB/sec Parent sees throughput for 14 initial writers = 776214.99 kB/sec Parent sees throughput for 16 initial writers = 84699.82 kB/sec Parent sees throughput for 16 initial writers = 796142.16 kB/sec What this means is that performance of 16 iozone threads was 97.5% parallel with my patches compared to 24.4% on the stock kernel. Looking at the file fragmentation data in the same file, you can see that file fragmentation is also noticeably improved in all runs with the patch in the 16-process case: Fragmentation Summary Fragmentation Summary /saswork/iozonetest1: 8622 extents found /saswork/iozonetest1: 8435 extents found /saswork/iozonetest10: 8614 extents found /saswork/iozonetest10: 8322 extents found /saswork/iozonetest11: 8617 extents found /saswork/iozonetest11: 8312 extents found /saswork/iozonetest12: 8658 extents found /saswork/iozonetest12: 8319 extents found /saswork/iozonetest13: 8469 extents found /saswork/iozonetest13: 8435 extents found /saswork/iozonetest14: 8650 extents found /saswork/iozonetest14: 8315 extents found /saswork/iozonetest15: 8649 extents found /saswork/iozonetest15: 8489 extents found /saswork/iozonetest16: 8653 extents found /saswork/iozonetest16: 8436 extents found /saswork/iozonetest2: 8464 extents found /saswork/iozonetest2: 8509 extents found /saswork/iozonetest3: 8635 extents found /saswork/iozonetest3: 8448 extents found /saswork/iozonetest4: 8659 extents found /saswork/iozonetest4: 9203 extents found /saswork/iozonetest5: 8647 extents found /saswork/iozonetest5: 8434 extents found /saswork/iozonetest6: 8669 extents found /saswork/iozonetest6: 8435 extents found /saswork/iozonetest7: 8656 extents found /saswork/iozonetest7: 8309 extents found /saswork/iozonetest8: 8660 extents found /saswork/iozonetest8: 8410 extents found /saswork/iozonetest9: 8607 extents found /saswork/iozonetest9: 8435 extents found See the attachment for more details. And as I said in my previous email, overall file _system_ fragmentation is, IMHO, not a big concern in the light of these performance gains. I'll remove the reference to HZ from the first patch: good call. I still see no reason to throw away the second patch, at least while we work on a longer-term solution. Regards, Bob Peterson Red Hat File Systems -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: bob.iozone16.pr.txt URL: