Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics

2015-09-14 Thread Waiman Long
On 09/14/2015 05:41 PM, Davidlohr Bueso wrote: On Mon, 14 Sep 2015, Waiman Long wrote: You can't use debugfs if we want to have per-cpu stats. We will have to use sysfs instead. This will require more code changes. It is certainly doable, but we have to choose between simplicity and performan

Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics

2015-09-14 Thread Davidlohr Bueso
On Mon, 14 Sep 2015, Waiman Long wrote: You can't use debugfs if we want to have per-cpu stats. We will have to use sysfs instead. This will require more code changes. It is certainly doable, but we have to choose between simplicity and performance overhead. Right now, I am assuming that lock

Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics

2015-09-14 Thread Waiman Long
On 09/11/2015 07:13 PM, Davidlohr Bueso wrote: On Fri, 11 Sep 2015, Waiman Long wrote: A sample of statistics counts after system bootup (with vCPU overcommit) was: hash_hops_count=9001 kick_latencies=138047878 kick_unlock_count=9001 kick_wait_count=9000 spurious_wakeup=3 wait_again_count=2 wa

Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics

2015-09-11 Thread Davidlohr Bueso
On Fri, 11 Sep 2015, Waiman Long wrote: A sample of statistics counts after system bootup (with vCPU overcommit) was: hash_hops_count=9001 kick_latencies=138047878 kick_unlock_count=9001 kick_wait_count=9000 spurious_wakeup=3 wait_again_count=2 wait_head_count=10 wait_node_count=8994 wake_laten

[PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics

2015-09-11 Thread Waiman Long
This patch enables the accumulation of kicking and waiting related PV qspinlock statistics when the new QUEUED_LOCK_STAT configuration option is selected. It also enables the collection of kicking and wakeup latencies which have a heavy dependency on the CPUs being used. The measured latencies for