real time discrepency when the same task runs twice 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 |