Re: prefer tsc timecounter when it's good

2011-04-27 Thread Jung-uk Kim
On Wednesday 27 April 2011 03:07 am, Andriy Gapon wrote: > on 26/04/2011 20:49 Jung-uk Kim said the following: > > Can you please test attached patch? You can get it from here, > > too: > > > > http://people.freebsd.org/~jkim/tsc_smp_test.diff > > I am planning on testing the patch, but I am a lit

Re: prefer tsc timecounter when it's good

2011-04-27 Thread Andriy Gapon
on 26/04/2011 20:49 Jung-uk Kim said the following: > Can you please test attached patch? You can get it from here, too: > > http://people.freebsd.org/~jkim/tsc_smp_test.diff I am planning on testing the patch, but I am a little bit busy with other things at the moment. The idea looks good to m

Re: prefer tsc timecounter when it's good

2011-04-26 Thread Jung-uk Kim
On Friday 08 April 2011 01:43 am, Andriy Gapon wrote: > on 07/04/2011 23:00 Jung-uk Kim said the following: > > Although it looks okay, please don't commit it just yet. I am > > working in this area actively. Also, if the Intel's claim is > > true, i.e., TSCs reset to zero when APs start, we cann

Re: prefer tsc timecounter when it's good

2011-04-07 Thread Andriy Gapon
on 07/04/2011 23:00 Jung-uk Kim said the following: > Although it looks okay, please don't commit it just yet. I am working > in this area actively. Also, if the Intel's claim is true, i.e., > TSCs reset to zero when APs start, we cannot use TSC as a timecounter > hardware until all APs are st

Re: prefer tsc timecounter when it's good

2011-04-07 Thread Julian Elischer
On 4/7/11 10:12 AM, Andriy Gapon wrote: Guys, what do you think about the following change? The idea is mark TSC as the best timecounter when it's invariant and synchronized between cores. Unfortunately I don't have code to auto-detect the synchronization and keep relying on the corresponding t

Re: prefer tsc timecounter when it's good

2011-04-07 Thread Jung-uk Kim
On Thursday 07 April 2011 01:12 pm, Andriy Gapon wrote: > Guys, > > what do you think about the following change? > The idea is mark TSC as the best timecounter when it's invariant > and synchronized between cores. Unfortunately I don't have code to > auto-detect the synchronization and keep relyin

Re: prefer tsc timecounter when it's good

2011-04-07 Thread Chuck Swiger
Hi-- On Apr 7, 2011, at 10:12 AM, Andriy Gapon wrote: > what do you think about the following change? > The idea is mark TSC as the best timecounter when it's invariant and > synchronized > between cores. > Unfortunately I don't have code to auto-detect the synchronization and keep > relying on t

prefer tsc timecounter when it's good

2011-04-07 Thread Andriy Gapon
Guys, what do you think about the following change? The idea is mark TSC as the best timecounter when it's invariant and synchronized between cores. Unfortunately I don't have code to auto-detect the synchronization and keep relying on the corresponding tunable. I thought about auto-setting it