lock contention tracking -v3
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 26 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | fix raw_spinlock_t vs lockdepinclude/ include/ | +3 | 0 replies | |
| 2/5 | lockdep: sanitise CONFIG_PROVE_LOCKINGkernel/ kernel/ | +14 | 3 replies | |
| 3/5 | lockstat: core infrastructureinclude/ include/ kernel/ +2 more | +404 | 23 replies | |
| 4/5 | lockstat: human readability tweakskernel/ | +266 | 0 replies | |
| 5/5 | lockstat: hook into spinlock_t, rwlock_t, rwsem and mutexkernel/ kernel/ kernel/ | +26 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Ingo Molnar | Jason Baron |
|---|---|---|
| 1/5 | A-b | |
| 2/5 | A-b | A-b |
| 3/5 | A-b | A-b |
| 4/5 | A-b | A-b |
| 5/5 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] lock contention tracking -v3
Use the lockdep infrastructure to track lock contention and other lock statistics.
It tracks lock contention events, and the first four unique call-sites that encountered contention.
It also measures lock wait-time and hold-time in nanoseconds. The minimum and maximum times are tracked, as well as a total (which together with the number of event can give the avg).
All statistics are done per lock class, per write (exclusive state) and per read (shared state).
The statistics are collected per-cpu, so that the collection overhead is minimized via having no global cachemisses.
This new lock statistics feature is independent of the lock dependency checking traditionally done by lockdep; it just shares the lock tracking code. It is also possible to enable both and runtime disabled either component - thereby avoiding the O(n^2) lock chain walks for instance.
Andrew, can we give this a spin in -mm?