On Di, 2017-01-10 at 13:29 -0800, Frank Filz wrote:
> I did some testing between having dirent caching and not (Dir_Max
> left
> default, or Dir_Max set to 1):
> 
> With 10000 files, dirent caching enabled
> real  0m1.940s
> real  0m3.652s
> real  0m2.409s
> real  0m1.968s
> real  0m2.098s
> real  0m2.209s
> real  0m3.792s
> real  0m2.625s
> real  0m2.201s
> real  0m2.963s
> 
> With 10000 files, dirent caching disabled
> real  0m2.423s
> real  0m4.142s
> real  0m3.883s
> real  0m2.939s
> real  0m2.283s
> real  0m5.105s
> real  0m3.050s
> real  0m3.609s
> real  0m2.574s
> real  0m2.727s

Do you see any differences w/ and w/o caching if the directory is being
modified while you're executing ls -l (like adding / removing files or
changing attributes) ?
I remember having to deal with customers doing something alikeĀ 
with >200k files in a single directory and the execution time jumped up
to 10-30 minutes.

Cheers Swen
> 
> It looks like dirent caching does buy us something, though
> interestingly the
> initial populating tends to be the quickest run...
> 
> These were run with Ganesha having freshly started, and the following
> script:
> 
> mount /mnt4
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> time ls -l /mnt4/test1/many | wc
> echo 3 > /proc/sys/vm/drop_caches
> umount /mnt4
> 
> With the results piped to grep real.
> 
> Frank
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> 
> -------------------------------------------------------------------
> -----------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Nfs-ganesha-devel mailing list
> Nfs-ganesha-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel
> 


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to