Bug 731585
Summary: | ext3/ext4 mbcache causes high CPU load [RHEL6] | ||
---|---|---|---|
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: | unspecified | ||
Version: | 6.2 | CC: | bernd.schubert, eguan, esandeen, perfbz, rwheeler |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | kernel-2.6.32-206.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 729261 | Environment: | |
Last Closed: | 2011-12-06 14:05:00 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: | |||
Bug Depends On: | 729261 | ||
Bug Blocks: |
Description
Eric Sandeen
2011-08-17 21:45:42 UTC
Testing on RHEL6/ext3/128b inodes, I can clearly see this with a modified fs_mark which creates random xattrs on each file: Count Files/sec App Overhead CREAT (Min/Avg/Max) XATTR (Min/Avg/Max) 50000 5140.2 332081 26 146 1367275 11 40 348 100000 2724.9 371951 39 199 1346862 37 157 8252 150000 1706.2 492138 51 243 873915 66 329 8252 200000 1153.0 653330 59 306 1889238 100 543 1438 250000 841.4 748322 78 352 637922 170 816 281106 300000 589.6 83160 109 492 640129 262 1181 1571113 350000 585.6 844656 114 448 644288 293 1236 2079622 <and basically tanks> With the patch in place, much better: Count Files/sec App Overhead CREAT (Min/Avg/Max) XATTR (Min/Avg/Max) 50000 6023.9 316174 37 144 1088330 11 13 207 100000 4559.8 322382 31 197 1969389 11 13 407 150000 4656.8 317585 38 193 1035780 12 13 219 200000 4960.6 317284 38 180 864101 12 13 247 250000 3250.8 319098 38 285 4462162 12 13 237 300000 3437.7 317023 39 269 4336143 11 13 285 350000 3197.5 317611 39 291 1554244 12 13 249 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. Patch(es) available on kernel-2.6.32-206.el6 Reproduced on 2.6.32-131.0.15.el6 kernel mkfs -t ext4 -I 512 /dev/sda5 # ext4 with 512 inode size mkfs -t ext4 -I 128 /dev/sda6 # ext4 with 128 inode size mount -t ext4 -o user_xattr /dev/sda5 /mnt/test1 mount -t ext4 -o user_xattr /dev/sda6 /mnt/test2 # Create 50,000 files with file name as xattr(I used a modified fs_mark) fs_mark -k -n 50000 -r 16 -d /mnt/test1 # Do the tar workload (cd /mnt/test1 && tar -cf - . --xattrs --sparse) | (cd /mnt/test2 && tar -xpf -) # At the same time, on another terminal perf top The mb_cache_entry_insert will get 25% on 2.6.32-131.0.15.el6, but only around 1% on 2.6.32-209.el6 Set it to VERIFIED Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1530.html |