Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 642680 - XFS: accounting of reclaimable inodes is incorrect [rhel-6.0.z]
XFS: accounting of reclaimable inodes is incorrect [rhel-6.0.z]
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel (Show other bugs)
6.0
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: Frantisek Hrbata
Boris Ranto
: RHELNAK, ZStream
Depends On: 641764
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-13 10:51 EDT by RHEL Product and Program Management
Modified: 2010-11-11 07:05 EST (History)
12 users (show)

See Also:
Fixed In Version: kernel-2.6.32-71.5.1.el6
Doc Type: Bug Fix
Doc Text:
Previously, accounting of reclaimable inodes did not work correctly. When an inode was reclaimed it was only deleted from the per-AG (per Allocation Group) tree. Neither the counter was decreased, nor was the parent tree's AG entry untagged properly. This caused the system to hang indefinitely. With this update, the accounting of reclaimable inodes works properly and the system remains responsive.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-11-10 14:11:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Systemtap test that outputs numbers of reclaimable inodes (360 bytes, application/octet-stream)
2010-10-26 08:10 EDT, Boris Ranto
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0842 normal SHIPPED_LIVE Important: kernel security and bug fix update 2010-11-22 14:34:20 EST

  None (edit)
Description RHEL Product and Program Management 2010-10-13 10:51:11 EDT
This bug has been copied from bug #641764 and has been proposed
to be backported to 6.0 z-stream (EUS).
Comment 2 Frantisek Hrbata 2010-10-20 02:22:35 EDT
in 2.6.32-71.5.1.el6
Comment 4 Boris Ranto 2010-10-26 08:07:21 EDT
Since it is very hard/rare to reproduce this issue using reproducer steps in #641764 I've had to use different technique.
I used systemtap to watch the number of reclaimable inodes when xfs shrinker is called while generating a read (of millions of empty files) on a xfs formatted partition.
In 2.6.32-71.el6, the number almost always grows (meaning that it lowers quite rarely by a small number (usually just 1 or so)) resulting in very high number of reclaimable nodes with long term run (tens of millions even with ram limited to 512M). When huge file (tens of gigabytes) is read, the number won't lower or will lower very insignificantly (as described previously). This could later cause the problems described in #641764.
In 2.6.32-71.6.1 (with 512M ram), the number stays within a reasonable range (up to tens of thousands) and lowers quite often (and quite significantly). Read of a huge file causes the number of reclaimable nodes to get within a thousand. Therefore the number keeps within a reasonable range even in a long term test and necessary conditions for reproduction of #641764 are not met.
Based on previous I'm moving this to verified.
Comment 5 Boris Ranto 2010-10-26 08:10:44 EDT
Created attachment 455747 [details]
Systemtap test that outputs numbers of reclaimable inodes

It'll print the number of reclaimable inodes every time xfs_reclaim_inode_shrink is called and the number is higher than the previous one. It'll finish when the number lowers.
Comment 7 errata-xmlrpc 2010-11-10 14:11:33 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 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-2010-0842.html
Comment 8 Martin Prpič 2010-11-11 07:05:05 EST
    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:
Previously, accounting of reclaimable inodes did not work correctly. When an inode was reclaimed it was only deleted from the per-AG (per Allocation Group) tree. Neither the counter was decreased, nor was the parent tree's AG entry untagged properly. This caused the system to hang indefinitely. With this update, the accounting of reclaimable inodes works properly and the system remains responsive.

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