Indeed, for a very large directory you might get some speedup using

samples/ilm/mmfind directory -ls -maxdepth 1

There are some caveats, the same as those for the command upon which mmfind rests, mmapplypolicy.




From:        Skylar Thompson <skylar2@u.washington.edu>
To:        gpfsug-discuss@spectrumscale.org
Date:        11/30/2017 04:44 PM
Subject:        Re: [gpfsug-discuss] FIle system vs Database
Sent by:        gpfsug-discuss-bounces@spectrumscale.org




Interesting, thanks for the information Marc. Could there be an improvement
for something like "ls -l some-dir" using the API, though? Instead of getdents +
stat for every file (entering and leaving kernel mode many times), could it be done
in one operation with one context switch?