[gpfsug-discuss] mmfind -ls, -exec but use -xargs wherever you can.
Marc A Kaplan
makaplan at us.ibm.com
Fri Feb 23 16:53:26 GMT 2018
So much the more reasons to use
mmfind ... -xargs ...
Which, for large number of files, gives you a very much more performant
and parallelized execution of the classic
find ... | xargs ...
The difference is exec is run in line with the evaluation of the other
find conditionals (like -type f) but spawns a new command shell for each
evaluation of exec...
Whereas -xargs is run after the pathnames of all of the (matching) files
are discovered ...
Like classic xargs, if your command can take a list of files, you save
overhead there
BUT -xargs also runs multiple instances of your command in multiple
parallel processes on multiple nodes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20180223/2f7e46fe/attachment-0002.htm>
More information about the gpfsug-discuss
mailing list