Re: [RESEND PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-09-06 Thread Waiman Long
On 09/06/2016 11:50 AM, Thomas Gleixner wrote: On Tue, 6 Sep 2016, Waiman Long wrote: This is done by using a combination word with a sequence number and a bit lock. The CPU that gets the bit lock will be responsible for reading the HPET counter and update the sequence number. The others will mo

Re: [RESEND PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-09-06 Thread Thomas Gleixner
On Tue, 6 Sep 2016, Waiman Long wrote: > > This is done by using a combination word with a sequence number and > a bit lock. The CPU that gets the bit lock will be responsible for > reading the HPET counter and update the sequence number. The others > will monitor the change in sequence number and

Re: [RESEND PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-09-06 Thread Waiman Long
On 09/06/2016 11:27 AM, Waiman Long wrote: On a large system with many CPUs, using HPET as the clock source can have a significant impact on the overall system performance because of the following reasons: 1) There is a single HPET counter shared by all the CPUs. 2) HPET counter reading is a

Re: [RESEND PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-09-06 Thread Prarit Bhargava
On 09/06/2016 11:27 AM, Waiman Long wrote: > On a large system with many CPUs, using HPET as the clock source can > have a significant impact on the overall system performance because > of the following reasons: > 1) There is a single HPET counter shared by all the CPUs. > 2) HPET counter readi

[RESEND PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-09-06 Thread Waiman Long
On a large system with many CPUs, using HPET as the clock source can have a significant impact on the overall system performance because of the following reasons: 1) There is a single HPET counter shared by all the CPUs. 2) HPET counter reading is a very slow operation. Using HPET as the default

Re: [PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-08-25 Thread Waiman Long
On 08/25/2016 02:50 PM, Dave Hansen wrote: On 08/12/2016 05:59 PM, Waiman Long wrote: + * The lock and the hpet value are stored together and can be read in a + * single atomic 64-bit read. It is explicitly assumed that arch_spinlock_t + * is 32 bits in size. This requirement forces us to give

Re: [PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-08-25 Thread Dave Hansen
On 08/12/2016 05:59 PM, Waiman Long wrote: > + * The lock and the hpet value are stored together and can be read in a > + * single atomic 64-bit read. It is explicitly assumed that arch_spinlock_t > + * is 32 bits in size. This requirement forces us to give up all of the goodness of lockdep. Is th

Re: [PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-08-15 Thread Waiman Long
On 08/12/2016 10:30 PM, kbuild test robot wrote: Hi Waiman, [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.8-rc1 next-20160812] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/

Re: [PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-08-12 Thread kbuild test robot
Hi Waiman, [auto build test ERROR on tip/auto-latest] [also build test ERROR on v4.8-rc1 next-20160812] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Waiman-Long/x86-hpet-Reduce-HPET-counter-re

[PATCH v6] x86/hpet: Reduce HPET counter read contention

2016-08-12 Thread Waiman Long
On a large system with many CPUs, using HPET as the clock source can have a significant impact on the overall system performance because of the following reasons: 1) There is a single HPET counter shared by all the CPUs. 2) HPET counter reading is a very slow operation. Using HPET as the default