Bug 1546649

Summary: DHT: Readdir of directory which contain directory entries is slow
Product: [Community] GlusterFS Reporter: Poornima G <pgurusid>
Component: distributeAssignee: bugs <bugs>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: mainlineCC: bugs, spalai
Target Milestone: ---Keywords: Performance
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-03 07:33:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1543072, 1689173    

Description Poornima G 2018-02-19 08:49:45 UTC
Description of problem:
If a directory contains 2000 files, the listing of that directory is much faster than the listing of directory that contains 2000 directories.

This needs to be fixed. Its hard to fix it for the first run of readdir on the fresh mount, but atleast for the subsequent runs we should be able to improve performance.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2018-04-03 07:12:55 UTC
REVIEW: https://review.gluster.org/19559 (dht: Do not set the inode to NULL in readdirp_cbk, on certain conditions) posted (#6) for review on master by Poornima G

Comment 2 Raghavendra G 2019-05-11 14:17:40 UTC
A WIP proposal can be found at:
https://github.com/gluster/glusterfs/issues/611

Note that the discussion is still in preliminary stage and its not evident yet this can be a valid solution. But, I plan to spend some more time on this to drive it to a logical conclusion of whether it can be a viable solution or not.

Comment 4 Susant Kumar Palai 2020-03-03 07:33:52 UTC
Closing this bug as the corresponding bug is abandoned and not being actively worked on.