[vwnc] A question on PC clock time ...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] A question on PC clock time ...

Dennis smith-4
I have a client with a couple of dell duo-cpu workstations
which tend to freeze in VW for seconds at a time (10 seconds, 30 seconds).
This happens at least a few times an hour maybe more.

We had a server which exhibited worse symptoms than that which was
running Windows on XEN with multiple cpu's -- seemed that when
a different cpu was selected the clock would be out a bit and that sent
Delay's into snits -- we fixed that with "affinity" to a single cpu.

Since that was a clock problem, I decided to watch the clocks on the
offending workstations.  I can watch the clock gain a couple of seconds
in a minute and then get "fixed" by the domain server presumably.  I have
seen it off by as much as 8 seconds before getting "fixed".

Has anyone seen problems with VW with this type of thing??

--
Dennis Smith                         +1 416.798.7948
Cherniak Software Development Corporation   Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              sip:[hidden email]
Canada         http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] A question on PC clock time ...

Michael Lucas-Smith-2
Dennis Smith wrote:

> I have a client with a couple of dell duo-cpu workstations
> which tend to freeze in VW for seconds at a time (10 seconds, 30 seconds).
> This happens at least a few times an hour maybe more.
>
> We had a server which exhibited worse symptoms than that which was
> running Windows on XEN with multiple cpu's -- seemed that when
> a different cpu was selected the clock would be out a bit and that sent
> Delay's into snits -- we fixed that with "affinity" to a single cpu.
>
> Since that was a clock problem, I decided to watch the clocks on the
> offending workstations.  I can watch the clock gain a couple of seconds
> in a minute and then get "fixed" by the domain server presumably.  I have
> seen it off by as much as 8 seconds before getting "fixed".
>
> Has anyone seen problems with VW with this type of thing??
>
>  
Yep. It can be a real problem ,typically on Windows more than Linux or
other Unixes. Martin and I have been working on a new Timer class that
doesn't suffer from this kind of problem - it uses more modern timer
APIs that are aware of the way the clock can shift with NTP. I don't
think multicore exacerbates the problem though.

We hope to have the new timers available next week.

Cheers,
Michael
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] A question on PC clock time ...

Dennis smith-4


Michael Lucas-Smith wrote:

> Dennis Smith wrote:
>> I have a client with a couple of dell duo-cpu workstations
>> which tend to freeze in VW for seconds at a time (10 seconds, 30
>> seconds).
>> This happens at least a few times an hour maybe more.
>>
>> We had a server which exhibited worse symptoms than that which was
>> running Windows on XEN with multiple cpu's -- seemed that when
>> a different cpu was selected the clock would be out a bit and that sent
>> Delay's into snits -- we fixed that with "affinity" to a single cpu.
>>
>> Since that was a clock problem, I decided to watch the clocks on the
>> offending workstations.  I can watch the clock gain a couple of seconds
>> in a minute and then get "fixed" by the domain server presumably.  I
>> have
>> seen it off by as much as 8 seconds before getting "fixed".
>>
>> Has anyone seen problems with VW with this type of thing??
>>
>>  
> Yep. It can be a real problem ,typically on Windows more than Linux or
> other Unixes. Martin and I have been working on a new Timer class that
> doesn't suffer from this kind of problem - it uses more modern timer
> APIs that are aware of the way the clock can shift with NTP. I don't
> think multicore exacerbates the problem though.
Will that be available as a patch??


The multicore problem we had with XEN appeared to be some kind of XEN
problem -- we were able to see that the time changed by many milliseconds
when a different CPU was used -- and VW would sometimes freeze solid --
adding the affinity to a single CPU fixed that one.

It was the similarity of the symptoms that got me looking at timers.


>
> We hope to have the new timers available next week.
>
> Cheers,
> Michael

--
Dennis Smith                         +1 416.798.7948
Cherniak Software Development Corporation   Fax: +1 416.798.0948
509-2001 Sheppard Avenue East        [hidden email]
Toronto, ON M2J 4Z8              sip:[hidden email]
Canada         http://www.CherniakSoftware.com
Entrance off Yorkland Blvd south of Sheppard Ave east of the DVP

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] A question on PC clock time ...

Michael Lucas-Smith-2
Dennis Smith wrote:

>
>
> Michael Lucas-Smith wrote:
>> Dennis Smith wrote:
>>> I have a client with a couple of dell duo-cpu workstations
>>> which tend to freeze in VW for seconds at a time (10 seconds, 30
>>> seconds).
>>> This happens at least a few times an hour maybe more.
>>>
>>> We had a server which exhibited worse symptoms than that which was
>>> running Windows on XEN with multiple cpu's -- seemed that when
>>> a different cpu was selected the clock would be out a bit and that sent
>>> Delay's into snits -- we fixed that with "affinity" to a single cpu.
>>>
>>> Since that was a clock problem, I decided to watch the clocks on the
>>> offending workstations.  I can watch the clock gain a couple of seconds
>>> in a minute and then get "fixed" by the domain server presumably.  I
>>> have
>>> seen it off by as much as 8 seconds before getting "fixed".
>>>
>>> Has anyone seen problems with VW with this type of thing??
>>>
>>>  
>> Yep. It can be a real problem ,typically on Windows more than Linux
>> or other Unixes. Martin and I have been working on a new Timer class
>> that doesn't suffer from this kind of problem - it uses more modern
>> timer APIs that are aware of the way the clock can shift with NTP. I
>> don't think multicore exacerbates the problem though.
> Will that be available as a patch??
You'll want to contact support.
>
>
> The multicore problem we had with XEN appeared to be some kind of XEN
> problem -- we were able to see that the time changed by many milliseconds
> when a different CPU was used -- and VW would sometimes freeze solid
> -- adding the affinity to a single CPU fixed that one.
>
> It was the similarity of the symptoms that got me looking at timers.
There's a gotcha with all this - you can use timers that use the VM
primitives or use the native OS facilities.. if you use the native OS
facilities, you're limited to the resources available from the OS. This
can be limiting depending on the kind of application you want to build.

This is probably okay for most people, but not necessarily okay for
everyone. For now, the default behavior of timers will be to use the VM
primitives. You can selectively choose to use native timers for each
timer instance - or you can globally switch all timers to default to
native. There are other combinations as well.

I am of course talking about VisualWorks 7.7 here, so if you're not in
the vwdev program, you won't have access to it immediately.

Cheers,
Michael
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc