Delay and Linux

Gary Chambers gazzaguru2 at btinternet.com
Mon Jun 11 13:54:04 UTC 2007


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.




More information about the Squeak-dev mailing list