[LU-9161] mount_utils_ldiskfs.c is_feature_enabled() should pass '-c' to debugfs Created: 27/Feb/17  Updated: 14/Mar/17  Resolved: 14/Mar/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.10.0

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: easy

Issue Links:
Related
is related to LU-9160 Very slow mount of 300TB+ ldiskfs volume Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

The meta_bg feature unfortunately fragments the group descriptor block across the whole filesystem, rather than continuously at the start of the device. This causes a large amount of seeking (at least 32768 seeks for a 256TB filesystem).

Skipping the loading of inode tables and bitmaps via -c will avoid reading many GB of data.



 Comments   
Comment by Andreas Dilger [ 28/Feb/17 ]

Instead of running debugfs in a shell and parsing the text output, we might consider just reading struct ext4_super_block at offset 1024 bytes, and then checking the binary feature flags directly. That will avoid all overhead from reading the group descriptors and any other metadata. Another alternative is to modify debugfs to avoid loading the bitmaps until required (possibly only starting a background prefetch at filesystem open time) as an extension of the LU-9160 patch.

Comment by Gerrit Updater [ 28/Feb/17 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/25671
Subject: LU-9161 utils: don't load bitmaps when checking features
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e9d8b14e3f893b1e82561b47c84b2000e7e2c2c3

Comment by Gerrit Updater [ 14/Mar/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/25671/
Subject: LU-9161 utils: don't load bitmaps when checking features
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 153c25f280d3db722005619ea0db6fbd3d26bc97

Comment by Peter Jones [ 14/Mar/17 ]

Landed for 2.10

Generated at Sat Feb 10 02:23:46 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.