Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 428291

Summary: GFS2: Reduce gfs2 memory requirements
Product: Red Hat Enterprise Linux 5 Reporter: Robert Peterson <rpeterso>
Component: kernelAssignee: Don Zickus <dzickus>
Status: CLOSED ERRATA QA Contact: GFS Bugs <gfs-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: lwang, swhiteho
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0314 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 15:06:08 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:
Attachments:
Description Flags
Patch to fix the problem none

Description Robert Peterson 2008-01-10 15:37:38 UTC
Description of problem:
GFS2 uses too much memory.  For every buffer, gfs2 has a special
lock structure called a glock, due to the type of page-level locking
it does.  Right now, GFS2 allocates an inode structure to keep track
of the address space associated with metadata.  We need to reduce the
memory requirements.  We can do this by making it only allocate the
address space inode when it's needed, on the fly.  That reduces the
size of each glock considerably.

Version-Release number of selected component (if applicable):
RHEL5.2

How reproducible:
Always

Steps to Reproduce:
1. Run any program that does a lot of writing
  
Actual results:
Lots of memory allocated per page.

Expected results:
Less memory allocated.

Additional info:
There is an upstream patch to do this that needs to be crosswritten
for RHEL5.

Comment 1 Robert Peterson 2008-01-10 16:08:06 UTC
Created attachment 291295 [details]
Patch to fix the problem

Here is the patch I'll be posting to rhkernel-list.

Comment 2 Robert Peterson 2008-01-10 16:20:47 UTC
Patch compiled and tested on "kool", and posted to rhkernel-list.
Setting status to modified and rerouting to Don Zickus.


Comment 3 Don Zickus 2008-01-21 17:30:33 UTC
in 2.6.18-71.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5

Comment 6 errata-xmlrpc 2008-05-21 15:06:08 UTC
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 the 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/RHBA-2008-0314.html