[Vm-dev] Linux VM and Delay.

Gary Chambers gazzaguru2 at btinternet.com
Mon Jun 25 15:43:34 UTC 2007


Tried with a modded VM, just changed the 1000/25 check to 1. Get
better-than-win32 semaphore responses and no CPU runaway. Do you think it
would be best to incorporate this change into the main VM? (Running Gentoo
2.6.20 kernel)

-----Original Message-----
From: vm-dev-bounces at lists.squeakfoundation.org
[mailto:vm-dev-bounces at lists.squeakfoundation.org] On Behalf Of Gary
Chambers
Sent: 14 June 2007 9:02 pm
To: 'Squeak Virtual Machine Development Discussion'
Subject: RE: [Vm-dev] Linux VM and Delay.


 
I'll try it. To be fair, for our application 100% cpu might not be a bad
thing ;-)

Next week when I'm in the office I'll give it a go. Perhaps tweaking the
idle process will free some cpu if a problem. The
ioRelinquishProcessorForMicroseconds(us) will still get called.

More important for the app is timely responses to delay semaphores.

Thanks for the responses!

-----Original Message-----
From: vm-dev-bounces at lists.squeakfoundation.org
[mailto:vm-dev-bounces at lists.squeakfoundation.org] On Behalf Of Ian Piumarta
Sent: 14 June 2007 4:20 pm
To: Squeak Virtual Machine Development Discussion
Subject: Re: [Vm-dev] Linux VM and Delay.


 
On Jun 13, 2007, at 10:25 AM, Andreas Raab wrote:

> Gary Chambers wrote:
>>   if (now - lastInterruptCheck > (1000/25))	/* avoid thrashing intr
>> checks from 1ms loop in idle proc  */
>
> I don't think that in this day and age doing a 1000 interrupt 
> checks/sec can be considered "thrashing" ;-) I'd just remove it and
> get the 1ms time resolution back.

The other thing you're likely to get back is 100% CPU usage.  But by  
all means, try it.

Cheers,
Ian





More information about the Vm-dev mailing list