Re: readdir vs. getattr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Apr 4, 2013, at 8:15 AM, Jim Rees <rees@xxxxxxxxx> wrote:

> Tigran Mkrtchyan wrote:
> 
>  we have a directory with 50K (number of )  files in it.
>  The user does a 'ls' and I can see READDIR4. To
>  get the complete listing a client need to send ~380 requests.
>  Now user does yet another 'ls' in the same directory.
>  The client sends a GETATTR  on directorie's FH
>  (actually two of GETATTRS - why?!!) and discovers that a
>  directory didn't change and re-uses existing listing, BUT!!!
>  for each file in the directory it sends a GETATTR to discover
>  is  the file's attributes are changed. For 50K files it's a 50K requests.
> 
> So is this a "ls -l"? Because for "ls" it shouldn't stat all the files.

Default these days is ls --color


> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux