Bug 648632
Summary: | ext4: writeback performance fixes | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Eric Sandeen <esandeen> |
Component: | kernel | Assignee: | Eric Sandeen <esandeen> |
Status: | CLOSED ERRATA | QA Contact: | Eryu Guan <eguan> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.1 | CC: | eguan, kzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | kernel-2.6.32-92.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-05-23 20:27:54 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eric Sandeen
2010-11-01 19:36:36 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Hi Eric, Any guidance on how to reproduce this bug? Thanks! On a box with a lot of memory, try doing a very long buffered IO. The original reporter did: 2.6.31 disk write performance (RAID5 with 8 disks): i7test7% dd if=/dev/zero of=/i7raid/bill/testfile1 bs=1M count=32768 32768+0 records in 32768+0 records out 34359738368 bytes (34 GB) copied, 49.7106 s, 691 MB/s 2.6.32 disk write performance (RAID5 with 8 disks): i7test7% dd if=/dev/zero of=/i7raid/bill/testfile1 bs=1M count=32768 32768+0 records in 32768+0 records out 34359738368 bytes (34 GB) copied, 100.395 s, 342 MB/s A lot of memory will help because more will be kept in memory before flushing, giving the function in question more dirty pages to scan. Tuning the dirty ratio to hold more dirty pages in cache may make it more obvious, too. -Eric Patch(es) available on kernel-2.6.32-92.el6 Start a long buffered IO on a host with 64G memory On -71 kernel I got 34359738368 bytes (34 GB) copied, 564.336 s, 60.9 MB/s [root@gs-dl585g2-01 home]# uname -a Linux gs-dl585g2-01.rhts.eng.bos.redhat.com 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@gs-dl585g2-01 home]# free -m total used free shared buffers cached Mem: 64429 1540 62888 0 21 157 -/+ buffers/cache: 1362 63067 Swap: 66607 0 66607 [root@gs-dl585g2-01 home]# pwd /home [root@gs-dl585g2-01 home]# mount | grep home /dev/mapper/vg_gsdl585g201-lv_home on /home type ext4 (rw) [root@gs-dl585g2-01 home]# time dd if=/dev/zero of=./testfile bs=1M count=32768 32768+0 records in 32768+0 records out 34359738368 bytes (34 GB) copied, 564.336 s, 60.9 MB/s real 9m24.358s user 0m0.094s sys 2m19.108s On -122 kernel the performance is much better. I got 34359738368 bytes (34 GB) copied, 164.287 s, 209 MB/s [root@gs-dl585g2-01 home]# time dd if=/dev/zero of=./testfile bs=1M count=32768 32768+0 records in 32768+0 records out 34359738368 bytes (34 GB) copied, 164.287 s, 209 MB/s real 2m44.317s user 0m0.074s sys 2m19.533s I tried on another host with 16G memory and got similar results On -71 kernel 34359738368 bytes (34 GB) copied, 329.049 s, 104 MB/s On -122 kernel 34359738368 bytes (34 GB) copied, 273.56 s, 126 MB/s Set it to VERIFIED An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0542.html |