| Summary: | fsck.gfs2: Add readahead of directory leaf blocks | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Steve Whitehouse <swhiteho> | ||||
| Component: | gfs2-utils | Assignee: | Andrew Price <anprice> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | adas, agk, anprice, bmarzins, fdinitto, rpeterso, swhiteho | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-06-19 13:18:50 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Steve Whitehouse
2011-12-07 17:35:43 UTC
Some initial observations. A few tests using posix_fadvise(2) with FADV_RANDOM or FADV_SEQUENTIAL at the start seems to suggest that FADV_SEQUENTIAL makes very little difference (a very tiny speed up in my tests) and FADV_RANDOM causes a substantial slow down. This is with a newly created file system which has created a million files under one subdirectory, so not a hugely realistic test, but the slow-down does make me concerned that using posix_fadvise() in this way could be advantageous with some usage patterns and harmful with others. Created attachment 581231 [details]
Patch to avoid rereading directory blocks in check_leaf_blks
I'm currently in the process of creating some huge directories on the exxon cluster to test this patch a bit better but in the meantime perhaps you'd like to take a look at it and see if anything stands out.
As per last week's meeting I'm going to abandon the above patch as my tests didn't show any significant performance impact (with or without memory pressure). Closing this one as per last week's meeting. |