|
From: | Sven Breuner |
Subject: | Re: "ls -l": Avoid unnecessary getxattr() overhead |
Date: | Tue, 07 Feb 2012 00:29:30 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0 |
Jérémy Compostella wrote on 02/06/2012 08:00 PM:
Anyway, you should maybe provide a "strace -c" output in both cases in order to know how much would be the speed improvement.
on a directory with 61441 files: $ strace -c ls -l >/dev/null % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 32.64 0.128275 2 61441 lstat 27.77 0.109109 2 61441 lgetxattr 27.46 0.107915 2 61441 61441 getxattr 11.70 0.045993 613 75 getdents [...] Best regards, Sven
[Prev in Thread] | Current Thread | [Next in Thread] |