Um ... yeah ...
-
devel-bash% time ls | wc -l 659522 real 3m2.863s user 0m24.167s sys 0m0.358s
For those of you not UNIX savvy, that's just over 3 wall-clock minutes to list and count 659,522 files in a single directory.
Granted, those files are in a Network File System (NFS) share.
And using LDAP as the user/group/password authentication.
Fun.
-
-
@joe.edwards said:
@zelmak said:
659,522 files in a single directory
TRWTFYeah, no jokin'. 660k files, over NFS, with LDAP? Yeah, it's going to be slow..
-
@morbiuswilters said:
Yeah, no jokin'. 660k files, over NFS, with LDAP? Yeah, it's going to be slow.
Given all that, 3 minutes is fast.
-
On the servers on my previous job (also with an NFS storage and LDAP authentication) it is even more than 1 minute for 2000 files. Too bad I never timed it and posted it here.
-
@morbiuswilters said:
@joe.edwards said:
Yes, but the bigger WTF is 660k files in a single directory. How about a little organization.@zelmak said:
659,522 files in a single directory
TRWTFYeah, no jokin'. 660k files, over NFS, with LDAP? Yeah, it's going to be slow..
-
@El_Heffe said:
@morbiuswilters said:
@joe.edwards said:
Yes, but the bigger WTF is 660k files in a single directory. How about a little organization.@zelmak said:
659,522 files in a single directory
TRWTFYeah, no jokin'. 660k files, over NFS, with LDAP? Yeah, it's going to be slow..
Maybe the files are all in different folders, but someone needed them all at once, so they copied them to an easier-to-find location.