[Bugs] [Bug 1175711] posix: Set correct d_type for readdirp() calls

bugzilla at redhat.com bugzilla at redhat.com
Wed Apr 27 14:32:35 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1175711

Prashanth Pai <ppai at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |POST
           Assignee|bugs at gluster.org            |ppai at redhat.com



--- Comment #5 from Prashanth Pai <ppai at redhat.com> ---
Created a nested fs tree of depth = 4 on glusterfs mountpoint.

In the below example: ls command from coreutils is capable of avoiding
additional lstat() if it finds d_type to be set correctly.

BEFORE http://review.gluster.org/14095:

root# strace -fc -e getdents,lstat ls -fR /mnt/gluster-object/gsmetadata >>
/dev/null
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 55.95    0.672307          30     22226           getdents
 44.05    0.529388          24     22224           lstat
------ ----------- ----------- --------- --------- ----------------
100.00    1.201695                 44450           total


AFTER http://review.gluster.org/14095:
root# strace -fc -e getdents,lstat ls -fR /mnt/gluster-object/gsmetadata >>
/dev/null
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
100.00    0.595680          27     22226           getdents
------ ----------- ----------- --------- --------- ----------------
100.00    0.595680                 22226           total

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list