timer: Refactor the timer wheel
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest22 patches 7 repliesIn review
- v220 patches 31 repliesSuperseded
- v120 patches 34 repliesSuperseded
Changes in v3 from the cover letter
- Removed the 1000Hz granularity reduction to 4ms. Eric explained that datacenter workloads require the granularity in the first level wheel.
- Fixed the typo in tilepro.
- Converted sigtimedwait() to hrtimers
- To avoid the cascading I extended the wheel by another level. This removes the rarely executed cascading code path, but increases the storage size for HZ>100 slightly. If the tiny folks care, there is an simple option to cut the storage size in half for the price of reduced granularity.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | timer: Make pinned a timer propertyinclude/ kernel/ | +27 | 1 reply | |
| 2/22 | x86/apic/uv: Initialize timer as pinnedarch/ | +2 | 0 replies | |
| 3/22 | x86/mce: Initialize timer as pinnedarch/ | +2 | 0 replies | |
| 4/22 | cpufreq/powernv: Initialize timer as pinneddrivers/ | +2 | 0 replies | |
| 5/22 | driver/net/ethernet/tile: Initialize timer as pinneddrivers/ | +2 | 0 replies | |
| 6/22 | drivers/tty/metag_da: Initialize timer as pinneddrivers/ | +2 | 0 replies | |
| 7/22 | drivers/tty/mips_ejtag: Initialize timer as pinneddrivers/ | +2 | 0 replies | |
| 8/22 | net/ipv4/inet: Initialize timers as pinnednet/ net/ | +7 | 0 replies | |
| 9/22 | timer: Remove mod_timer_pinnedinclude/ kernel/ | +5 | 0 replies | |
| 10/22 | signal: Use hrtimer for sigtimedwaitkernel/ | +10 | 0 replies | |
| 11/22 | hlist: Add hlist_is_singular_node() helperinclude/ | +10 | 0 replies | |
| 12/22 | timer: Give a few structs and members proper nameskernel/ | +59 | 0 replies | |
| 13/22 | timer: Reduce the CPU index space to 256kinclude/ | +5 | 1 reply | |
| 14/22 | timer: Switch to a non cascading wheelinclude/ kernel/ | +467 | 0 replies | |
| 15/22 | timer: Remove slack leftoversblock/ drivers/ drivers/ +5 more | +1 | 0 replies | |
| 16/22 | timer: Move __run_timers() functionkernel/ | +26 | 0 replies | |
| 17/22 | timer: Optimize collect timers for NOHZkernel/ | +41 | 0 replies | |
| 18/22 | tick/sched: Remove pointless empty functionkernel/ | +1 | 0 replies | |
| 19/22 | timer: Forward wheel clock whenever possiblekernel/ kernel/ kernel/ | +114 | 2 replies | |
| 20/22 | timer: Only wake softirq if necessarykernel/ | +11 | 0 replies | |
| 21/22 | timer: Split out index calculationkernel/ | +31 | 0 replies | |
| 22/22 | timer: Optimization for same expiry time in mod_timer()kernel/ | +35 | 0 replies |
Reviews trailers per patch
None of the 22 patches has a Reviewed-by or Acked-by.
| Patch | Paul E. McKenney |
|---|---|
| Series | T-b |
| 1/22 | |
| 2/22 | |
| 3/22 | |
| 4/22 | |
| 5/22 | |
| 6/22 | |
| 7/22 | |
| 8/22 | |
| 9/22 | |
| 10/22 | |
| 11/22 | |
| 12/22 | |
| 13/22 | |
| 14/22 | |
| 15/22 | |
| 16/22 | |
| 17/22 | |
| 18/22 | |
| 19/22 | |
| 20/22 | |
| 21/22 | |
| 22/22 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [patch V3 00/22] timer: Refactor the timer wheel
This is the third version of the timer wheel rework series. The previous versions can be found here:
V1: http://lkml.kernel.org/r/[email protected] V2: http://lkml.kernel.org/r/[email protected]
The series is also available in git:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.timers
Changes vs. V2:
- Removed the 1000Hz granularity reduction to 4ms. Eric explained that datacenter workloads require the granularity in the first level wheel.
- Fixed the typo in tilepro.
- Converted sigtimedwait() to hrtimers
- To avoid the cascading I extended the wheel by another level. This removes the rarely executed cascading code path, but increases the storage size for HZ>100 slightly. If the tiny folks care, there is an simple option to cut the storage size in half for the price of reduced granularity.
Thanks,
tglx
----
arch/x86/kernel/apic/x2apic_uv_x.c | 4 arch/x86/kernel/cpu/mcheck/mce.c | 4 block/genhd.c | 5 drivers/cpufreq/powernv-cpufreq.c | 5 drivers/mmc/host/jz4740_mmc.c | 2 drivers/net/ethernet/tile/tilepro.c | 4 drivers/power/bq27xxx_battery.c | 5 drivers/tty/metag_da.c | 4 drivers/tty/mips_ejtag_fdc.c | 4 drivers/usb/host/ohci-hcd.c | 1 drivers/usb/host/xhci.c | 2 include/linux/list.h | 10 include/linux/timer.h | 34 - kernel/signal.c | 24 kernel/time/tick-internal.h | 1 kernel/time/tick-sched.c | 46 - kernel/time/timer.c | 1096 +++++++++++++++++++++--------------- lib/random32.c | 1 net/ipv4/inet_connection_sock.c | 7 net/ipv4/inet_timewait_sock.c | 5 20 files changed, 734 insertions(+), 530 deletions(-)