Bug 217798

Summary: Need to port Resource Group optimization from gfs1 to gfs2
Product: Red Hat Enterprise Linux 5 Reporter: Robert Peterson <rpeterso>
Component: gfs2-utilsAssignee: Robert Peterson <rpeterso>
Status: CLOSED CURRENTRELEASE QA Contact: GFS Bugs <gfs-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1CC: kanderso, rkenna, swhiteho
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RC Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-08 01:06:09 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 2006-11-29 22:40:39 UTC
Description of problem:
For bz213763, we changed gfs_mkfs so that it can optimize the size
of the Resource Groups (RGs) for best performance.  We need to port
that fix from gfs1 (gfs_fsck) to gfs2 (mkfs.gfs2).

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

How reproducible:
Always

Steps to Reproduce:
mkfs.gfs2 -t marathon:gfs_vs0 -p lock_dlm -j 5 /dev/linear_1/linear_10
where /dev/linear_1/linear-10 is a 40TB logical volume.
  
Actual results:
mkfs.gfs2 uses the old default, 256MB RG size, which requires 
more than 150000 RGs.

Expected results:
mkfs.gfs2 should figure out that 256MB would require more than 10000
RGs, and therefore it should use 2048MB RGs for best performance.

Additional info:
Prototype patch is already coded.

Comment 1 Robert Peterson 2006-11-29 23:02:56 UTC
Created attachment 142454 [details]
Patch to fix the problem

Unit tested on marathon-01.

Comment 3 Rob Kenna 2006-11-30 12:32:01 UTC
Made the title more descriptive.

This is a port of the fix for bug 213763.

Comment 4 Robert Peterson 2006-11-30 15:33:28 UTC
I committed the fix to CVS in the HEAD, RHEL5 and RHEL50 branches.


Comment 5 RHEL Program Management 2007-02-08 01:06:09 UTC
A package has been built which should help the problem described in 
this bug report. This report is therefore being closed with a resolution 
of CURRENTRELEASE. You may reopen this bug report if the solution does 
not work for you.