You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Notes:

  • These times are all highly non-reproducible since they are IO bound and highly dependent on file caching. Times below are based on reissuing command several times
  • This directory contains approximately 1500 runs

glastlnx07 /nfs/farm/g/glast/u26/MC-tasks/obssim-ST-v7r6p1/output > /usr/bin/time grep cob0343 */logFile.txt
0.16user 0.13system 0:00.73elapsed 39%CPU

Note This does not scale to large number of directories, since */logFile.txt is expanded by the shell and eventually the expanded line becomes too long.

glastlnx07 /nfs/farm/g/glast/u26/MC-tasks/obssim-ST-v7r6p1/output > /usr/bin/time find */logFile.txt -exec grep cob0343 {} \;
0.44user 1.95system 0:03.41elapsed 69%CPU

Note This command scale much better. Note that grep is invoked 1500 times in this case, but that does not seem to introduce a huge overhead.

  • No labels