Kprobes: scalability enhancements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | Kprobes: rearrange preempt_disable/enable() callsarch/ arch/ arch/ +2 more | +61 | 0 replies | |
| 2/9 | Kprobes: Track kprobe on a per_cpu basis - base changesinclude/ kernel/ | +50 | 0 replies | |
| 3/9 | Kprobes: Track kprobe on a per_cpu basis - i386 changesarch/ include/ | +86 | 0 replies | |
| 4/9 | Kprobes: Track kprobe on a per_cpu basis - ia64 changesarch/ include/ | +58 | 0 replies | |
| 5/9 | Kprobes: Track kprobe on a per_cpu basis - ppc64 changesarch/ include/ | +69 | 0 replies | |
| 6/9 | Kprobes: Track kprobe on a per_cpu basis - sparc64 changesarch/ include/ | +87 | 0 replies | |
| 7/9 | Kprobes: Track kprobe on a per_cpu basis - x86_64 changesarch/ include/ | +89 | 0 replies | |
| 8/9 | Kprobes: Use RCU for (un)register synchronization - base changesinclude/ kernel/ | +45 | 4 replies | |
| 9/9 | Kprobes: Use RCU for (un)register synchronization - arch changesarch/ arch/ arch/ +2 more | +27 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] Kprobes: scalability enhancements
Hi,
The following set of patches are aimed at improving kprobes scalability. We currently serialize kprobe registration, unregistration and handler execution using a single spinlock - kprobe_lock.
With these changes, kprobe handlers can run without any locks held. It also allows for simultaneous kprobe handler executions on different processors as we now track kprobe execution on a per processor basis. It is now necessary that the handlers be re-entrant since handlers can run concurrently on multiple processors.
All changes have been tested on i386, ia64, ppc64 and x86_64, while sparc64 has been compile tested only.
The patches can be viewed as 3 logical chunks:
patch 1: Reorder preempt_(dis/en)able calls
patches 2-7: Introduce per_cpu data areas to track kprobe execution
patches 8-9: Use RCU to synchronize kprobe (un)registration and handler
execution.
Thanks to Maneesh Soni, James Keniston and Anil Keshavamurthy for their review and suggestions. Thanks again to Anil, Hien Nguyen and Kevin Stafford for testing the patches.
Ananth