[LU-979] Barriers should be disabled by default on RHEL6 Created: 10/Jan/12 Updated: 31/May/13 Resolved: 10/Jan/12 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.1.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Diego Moreno (Inactive) | Assignee: | Yang Sheng |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | ldiskfs, performance, rhel | ||
| Environment: |
RHEL6.1 with Lustre2.0/2.1 |
||
| Severity: | 3 |
| Rank (Obsolete): | 6491 |
| Description |
|
Formatting a lustre filesystem in RHEL6 barriers are enabled by default with our Lustre 2.0 (same for Lustre 2.1). The impact on small IO performance is very important if we don't specify nobarrier as an MDT mount option. A single fileop bench running with '-f 15' will take more than 2m30sec while the one with nobarrier as mount option on MDT will take less than a minute. Compiling a kernel in Lustre is also a good way to see the problem due to jbd2 barriers. This problem had already been addressed in SLES with ldiskfs patch ext4-disable-write-bar-by-default.patch. I adapted a similar patch to RHEL6.1. I'll try to submit it as soon as possible. |
| Comments |
| Comment by Johann Lombardi (Inactive) [ 10/Jan/12 ] |
|
I think the latest patchset of |
| Comment by Peter Jones [ 10/Jan/12 ] |
|
YangSheng Please consider this when working on the RHEL6.2 support Thanks Peter |
| Comment by Lustre Bull [ 10/Jan/12 ] |
|
Right Johann, thanks! |
| Comment by Peter Jones [ 10/Jan/12 ] |
|
Ah good - thanks YangSheng\Johann! |
| Comment by Diego Moreno (Inactive) [ 12/Mar/12 ] |
|
Hi, Coming back to this issue, I couldn't see in the patch where are you disabling barriers for rhel6.2. |
| Comment by Diego Moreno (Inactive) [ 10/Apr/12 ] |
|
Hi, Coming back to this issue, could you please specify where are barriers disabled on lustre 2.1 code? I cannot see anywhere any code disabling barriers by default. This question also stands for lustre 2.2 but in this case the patch is there but it's not applied. Thanks, |
| Comment by Yang Sheng [ 10/Apr/12 ] |
|
Hi, Diego, As Andreas point out in gerrit: I think we should leave barriers enabled by default, and if performance is down for specific types of hardware then the administrator can choose to mount with "-o nobarrier" by themselves. I'm not sure this will happen, because the kernel barrier implementation has improved significantly since SLES10 when it was first needed, and it is enabled by default for both ext3 and ext4 in all modern kernels. |
| Comment by Shuichi Ihara (Inactive) [ 31/May/13 ] |
|
I think nobarrier option for OSTs really helps to improve direct IO perforamnce. I saw dramatically performance improvements with nobarrier option. |