LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Can I change the way time displays its result?

[ILUG] Can I change the way time displays its result?

wmernagh wmernaghl at ee-mail.cit.ie
Tue Mar 20 12:51:21 GMT 2001


Hey all
I am running a few test programs on my cluster and I am timing how long 
it takes to run a program with 1,2 and 3 processors.
I type in at the bash prompt

#time mpirun -np 3 TestProg > /tmp/Test.tmp

where normally when I am running the program I type

#mpirun -np 3 TestProg

It gives me back the following result.

1.64user 1.11system 0:03.14elapsed 87%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (5833major+5068minor)pagefaults 0swaps

However on running it again the values change and this does not help me 
in comparing results. How can I get a standard answer to time? In many 
references to running the program from the web and some books time seems 
to return a single answer in micro-sec's. Can I change the way time 
displays its result?

    

-- 
Regards

Will

"Unix is simple, but it takes a genius to understand the simplicity." - 
Dennis Ritchie

wmernagh at ee-mail.cit.ie





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell