Bug 245776 - Purge count math is not correct in glock trimming patch
Purge count math is not correct in glock trimming patch
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: GFS-kernel (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Wendy Cheng
GFS Bugs
Depends On:
Blocks: 247650
  Show dependency treegraph
Reported: 2007-06-26 13:23 EDT by Wendy Cheng
Modified: 2010-01-11 22:18 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2007-0998
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-21 16:14:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0998 normal SHIPPED_LIVE GFS-kernel bug fix update 2007-11-29 09:35:09 EST

  None (edit)
Description Wendy Cheng 2007-06-26 13:23:25 EDT
Description of problem:
Previous CVS check-in did a last minute change with the way purge count 
was calculated. The intention was to trim glocks evenly across all the 
hash buckets and apparently the size of hash array was overlooked. It 
ends up with zero trimming count most of the time. This virtually makes 
glock trimming patch a void feature. Need to fix this asap. 

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

How reproducible:
Most of the time unless accumulated glock count is well above 8k. 

Steps to Reproduce:
1. Untar a tar file with lots of small files
2. Issue gfs_tool lockdump to see the glock count.
3. Issue "gfs_tool settune <mnt> glock_purge 100" to trim the glock
Actual results:
Glock count could stay constant for the duration of the mount time.

Expected results:
Glock count should go down gradually (around 6~10 minutes)

Additional info:
Comment 2 Wendy Cheng 2007-06-26 13:42:30 EDT
Thanks to Barry Marson. The regression was found in his SPECsfs runs. 
Comment 4 Wendy Cheng 2007-06-26 16:40:05 EDT
Checked into RHEL4 and RHEL4.5 CVS branches.
Comment 9 errata-xmlrpc 2007-11-21 16:14:29 EST
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.


Note You need to log in before you can comment on or make changes to this bug.