CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

CPU Time using time command of unix

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2002, 11:56
Default CPU Time using time command of unix
  #1
Vinay Kumar
Guest
 
Posts: n/a
I want to compare the performance of two different programs for matrix inversion. Somebody suggested me that one can do so by comparing CPU time using time command ($time a.out). But it gives three times (real, user, sys) and I don't understand which time is to be compared.

Please help.

Thanks.

Amit
  Reply With Quote

Old   November 10, 2002, 12:28
Default Re: CPU Time using time command of unix
  #2
boling
Guest
 
Posts: n/a
Most time the following relation is correct. real = user + system I always use user time if I am trying to tune the code, just like your current situation . But for actual purpose , for example , the total runnning time of my RANS3D code, I just use real time.
  Reply With Quote

Old   November 12, 2002, 08:42
Default Re: CPU Time using time command of unix
  #3
Wei
Guest
 
Posts: n/a
"user" time is the CPU time used to perform any tasks in so-called user space (including all the actual calculation etc). "system" time is the CPU time used to perform any system calls in the kernal space (such as "read" or "write" system call).
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 03:32
The method of Checking the CPU time JunYoung Park Main CFD Forum 2 April 19, 1999 15:34
On the reduction of cpu time lee Main CFD Forum 4 March 7, 1999 22:02
cpu time Gengsheng Wei Main CFD Forum 1 November 19, 1998 15:22


All times are GMT -4. The time now is 10:34.