Unix Technical Forum

real time discrepency when the same task runs twice

This is a discussion on real time discrepency when the same task runs twice within the AIX Operating System forums, part of the Unix Operating Systems category; --> I have an application to do random reads from a bunch of files and do simple calculations on AIX ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 04:39 AM
Shane
 
Posts: n/a
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 04:40 AM
Gary Schmidt
 
Posts: n/a
Default Re: real time discrepency when the same task runs twice

Shane wrote:
> 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
>

[SNIP]
Have you considered the effect of disk cacheing on subsequent run times?

Cheers,
Gary B-)

--

Speaking strictly for myself.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 04: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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 06:10 AM
Nigel Griffiths
 
Posts: n/a
Default Re: real time discrepency when the same task runs twice

It also could be that the SCSI has been spun-down due ti inactivity
and the first time needs to be brought back up to speed.

On one of my machines, the lag can be large. to the point I thought the
machine had crashed and was about to hit the reset button, just as it sprung
to life.
thanks Nigel


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 06:17 AM
Jose Pina Coelho
 
Posts: n/a
Default Re: real time discrepency when the same task runs twice

"Nigel Griffiths" <nag@uk.ibm.com> wrote in
news:cn2mvk$blr$1@sparta.btinternet.com:

> It also could be that the SCSI has been spun-down due ti inactivity
> and the first time needs to be brought back up to speed.
>
> On one of my machines, the lag can be large. to the point I thought
> the machine had crashed and was about to hit the reset button, just as
> it sprung to life.
> thanks Nigel


Just disable the power management. It has no place in a server.

--
Doing AIX support was the most monty-pythonesque
activity available at the time.
Eagerly awaiting my thin chocolat mint.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com