Delay and Linux

Janko Mivšek janko.mivsek at eranova.si
Mon Jun 11 14:01:43 UTC 2007


Hi Gary,

I got 11.52 to 12.58s on my Linux

Best regards
Janko

Gary Chambers wrote:
> Hi all. Does anybody know why, on the Linux VM (3.9.8), short Delays
> (<500ms) wait for significantly longer than under Windows (3.10.4)?
> 
> As an example for the average time spent waiting when requesting a 10ms
> wait:
> 
> 
> ((1 to: 100) collect: [:i | Time millisecondsToRun: [(Delay forMilliseconds:
> 10) wait]]) sum / 100.0
> 
> This yields (on my machine) 10.35 for Windows and 43.48 for Linux.
> For a 100ms wait: 100.5 (Windows) and 131.39 (Linux).
> For a 1000ms wait: 1000.36 (Windows) and 1013.16 (Linux).
> 
> There seems to be a fixed overhead per call that is significantly larger
> under Linux.
> 
> Any thoughts would be appreciated.
> 
> 
> 

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si



More information about the Squeak-dev mailing list