View Single Post

   
  #3 (permalink)  
Old 01-05-2008, 03:40 AM
Simon Marchese
 
Posts: n/a
Default Re: real time discrepency when the same task runs twice

In article <40127376.0411100644.49b2c27b@posting.google.com >, xhu1
@bloomberg.net says...
> I have an application to do random reads from a bunch of files and do
> simple calculations on AIX 5.2. The very first time it runs, the time
> command reports
>
> >time myfoo.tsk

> Real 512.35
> User 7.46
> System 6.31
>
> If it runs again, time command reports
>
> >time myfoo.tsk

> Real 12.50
> User 5.06
> System 3.11
>
> The user and system times look reasonable. But I have no clue what
> causes the huge discrepency between the real times. This happens
> consistently, not caused by other heavy activities when the
> application runs first time. I guess it is a process scheduling
> problem. I'd appreciate if you can share your input.
>
> Thanks. Shane
>


How about the third time? And the fourth? Are you sure your i/o is not
getting cached in main memory? And what's a ".tsk" file?
Reply With Quote