evtchn: Improve scalebility
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 0 repliesNew
- v36 patches 17 repliesSuperseded
- v25 patches 21 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 6 patches | 5 replies | Superseded |
Changes in v4 from the cover letter
- consumer_is_xen() check in __evtchn_close() is only valid when guest requested the close.
- Re-add BUG_ON(!port_is_valid()) to free_xen_event_channel().
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | evtchn: clear xen_consumer when clearing statexen/ | +7 | 0 replies | |
| 2/4 | evtchn: defer freeing struct evtchn's until evtchn_destroy_final()xen/ | +12 | 0 replies | |
| 3/4 | evtchn: use a per-event channel lock for sending eventsxen/ xen/ | +69 | 0 replies | |
| 4/4 | evtchn: pad struct evtchn to 64 bytesxen/ | +1 | 0 replies |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | R-b |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHv4 0/4] evtchn: Improve scalebility
The per-domain event channel lock limits scalability when many VCPUs are trying to send interdomain events. A per-channel lock is introduced eliminating any lock contention when sending an event.
See this graph for the performance improvements:
http://xenbits.xen.org/people/dvrabel/evtchn-scalability.png
A different test (using Linux's evtchn device which masks/unmasks event channels) showed the following lock profile improvements:
Per-domain lock:
(XEN) lock: 69267976(00000004:19830041), block: 27777407(00000002:3C7C5C96)
Per-event channel lock
(XEN) lock: 686530(00000000:076AF5F6), block: 1787(00000000:000B4D22)
Locking removed from evtchn_unmask():
(XEN) lock: 10769(00000000:00512999), block: 99(00000000:00009491)
v4:
- consumer_is_xen() check in __evtchn_close() is only valid when guest requested the close.
- Re-add BUG_ON(!port_is_valid()) to free_xen_event_channel().
v3:
- Clear xen_consumer when clearing state.
- Defer freeing struct evtchn's until evtchn_destroy_final().
- Remove redundant d->evtchn test from port_is_valid().
- Use port_is_valid() again.
- Drop event lock from notify_via_xen_event_channel().
v2:
- Use unsigned int for d->valid_evtchns.
- Compare channel pointers in double_evtchn_lock().
David