<div dir="ltr"><div><div>NASA gives you good understanding using lustre.<br><br><a href="http://www.nas.nasa.gov/hecc/support/kb/lustre-best-practices_226.html">http://www.nas.nasa.gov/hecc/support/kb/lustre-best-practices_226.html</a><br><br></div>Rgds,<br></div>Shinobu<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 2:52 PM, Dilger, Andreas <span dir="ltr"><<a href="mailto:andreas.dilger@intel.com" target="_blank">andreas.dilger@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2016/02/09, 21:16, "lustre-discuss on behalf of <a href="mailto:Prakrati.Agrawal@shell.com">Prakrati.Agrawal@shell.com</a><mailto:<a href="mailto:Prakrati.Agrawal@shell.com">Prakrati.Agrawal@shell.com</a>>" <<a href="mailto:lustre-discuss-bounces@lists.lustre.org">lustre-discuss-bounces@lists.lustre.org</a><mailto:<a href="mailto:lustre-discuss-bounces@lists.lustre.org">lustre-discuss-bounces@lists.lustre.org</a>> on behalf of <a href="mailto:Prakrati.Agrawal@shell.com">Prakrati.Agrawal@shell.com</a><mailto:<a href="mailto:Prakrati.Agrawal@shell.com">Prakrati.Agrawal@shell.com</a>>> wrote:<br>
<br>
I read on Lustre best practices that ls –U should be used instead of ls –l . I understand that ls –l makes MDS contact all OSS to get all information about all files and hence loads it. But, what does ls –U do to avoid it?<br>
<br>
</span>       -U     do not sort; list entries in directory order<br>
<br>
This is more important for very large directories, since "ls" will read all of the entries and stat them before printing anything.  That said, GNU ls will still read all of the entries before printing them, so for very large directories "find <directory> -ls" is a lot faster to start printing entries.<br>
<span class=""><br>
Also, it is said that rm-rf * should not be used. Please can someone explain the reason for that.<br>
<br>
It is also said that instead lfs find  <directory path> --type f -print0 | xargs -0 rm –f should be used. Please explain the reason for this also.<br>
<br>
</span>"rm -rf *" will expand "*" onto the command line (done by bash) and if there are too many files in the directory (more than about 8MB IIRC) then bash will fail to execute the command.  Running "lfs find" (or just plain "find") will only print the filenames onto the output and xargs will process them in chunks that fit onto a command-line.<br>
<br>
Cheers, Andreas<br>
--<br>
Andreas Dilger<br>
Lustre Principal Architect<br>
Intel High Performance Data Division<br>
<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Email:<br><a href="mailto:shinobu@linux.com" target="_blank">shinobu@linux.com</a><br></div><div>GitHub:<br><a href="https://github.com/shinobu-x/" target="_blank">shinobu-x</a><br>Blog:<br></div><div><a href="http://i-shinobu.hatenablog.com/" target="_blank">Life with Distributed Computational System based on OpenSource</a><br></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div>