Bug 674286
Summary: | mmapping a read only file on a gfs2 filesystem incorrectly acquires an exclusive glock | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Steve Whitehouse <swhiteho> | ||||||
Component: | kernel | Assignee: | Steve Whitehouse <swhiteho> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.1 | CC: | adas, bmarzins, rpeterso, rwheeler, scooter, swhiteho | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | kernel-2.6.32-117.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: |
This bug is a performance issue relating to mmap of the same file from multiple nodes at once. The issue affects only the initial call to mmap and not subsequent page faults, so this will only be noticeable in cases where mmap is called frequently from multiple nodes on the same file. This occurs when running BLAST, for example.
There is a workaround, which is to alter the application to always use O_NOATIME when opening the files to be mapped. This is only possible if the opening process is the file owner or is root. After applying this patch, the workaround is no longer required.
The patch changes the tests applied at mmap time such that for noatime mounts, a glock will not be taken at all. For atime mounts, only a shared glock will be taken at mmap time, although if an atime update is required, an exclusive glock will still be required at a later time to write back the new atime.
|
Story Points: | --- | ||||||
Clone Of: | 672724 | Environment: | |||||||
Last Closed: | 2011-05-19 12:01:25 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: | 672724 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Steve Whitehouse
2011-02-01 09:53:43 UTC
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. If you would like it considered as an exception in the current release, please ask your support representative. Created attachment 476352 [details]
Upstream patch
Created attachment 476354 [details]
RHEL6 post of the patch
This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release. 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. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: This bug is a performance issue relating to mmap of the same file from multiple nodes at once. The issue affects only the initial call to mmap and not subsequent page faults, so this will only be noticeable in cases where mmap is called frequently from multiple nodes on the same file. This occurs when running BLAST, for example. There is a workaround, which is to alter the application to always use O_NOATIME when opening the files to be mapped. This is only possible if the opening process is the file owner or is root. After applying this patch, the workaround is no longer required. The patch changes the tests applied at mmap time such that for noatime mounts, a glock will not be taken at all. For atime mounts, only a shared glock will be taken at mmap time, although if an atime update is required, an exclusive glock will still be required at a later time to write back the new atime. Patch(es) available on kernel-2.6.32-117.el6 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 |