Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1224246
| From | Waiman Long <waiman.long@hpe.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics |
| Date | 2015-09-14 17:30 +0200 |
| Message-ID | <q8DRD-1Is-13@gated-at.bofh.it> (permalink) |
| References | <q7BoS-1rn-5@gated-at.bofh.it> <q7BoS-1rn-13@gated-at.bofh.it> <q7FLR-7Un-49@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 >> wait_head_count=10 >> wait_node_count=8994 >> wake_latencies=713195944 > > Any reason you chose not to make the stats per-cpu? The locking > numbers don't have to be exact, so you can easily get away with > it and suffer from much less overhead that resorting to atomics. > Obviously assuming that reading/collecting the stats is done > infrequently, such as between workloads or at bootup as you did. > > Thanks, > Davidlohr 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 PV lockstat is used primarily for debugging purpose and won't be enabled on production system. If we want to have this capability in production systems, we will certainly need to change it to per-cpu stats and use sysfs instead. The original PV ticketlock code used debugfs and I was just following its footstep. Do you think it is worthwhile to have this capability available on production system by default? Cheers, Longman -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics Waiman Long <Waiman.Long@hpe.com> - 2015-09-11 20:40 +0200
Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-12 01:20 +0200
Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics Waiman Long <waiman.long@hpe.com> - 2015-09-14 17:30 +0200
Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-14 23:50 +0200
Re: [PATCH v6 4/6] locking/pvqspinlock: Collect slowpath lock statistics Waiman Long <waiman.long@hpe.com> - 2015-09-15 05:50 +0200
csiph-web