bof painless kernel removing the hz
play

BOF: Painless kernel - Removing the HZ Josh Triplett September 23, - PowerPoint PPT Presentation

BOF: Painless kernel - Removing the HZ Josh Triplett September 23, 2009 Problem Tickless kernel? Not really. Tickless only when idle When running anything, Linux still takes an interrupt HZ times per second Symptoms High


  1. BOF: Painless kernel - Removing the HZ Josh Triplett September 23, 2009

  2. Problem • “Tickless kernel”? Not really. • Tickless only when idle • When running anything, Linux still takes an interrupt HZ times per second

  3. Symptoms • High tick overhead • Measured 8% with HZ=1000, 2% with HZ=250 (YMMV) • Updating scheduler accounting without rescheduling • Giant pile of things hanging off tick_sched_timer • Lots of polling • Slows down real work • Introduces jitter • Introduces latency (timer interrupt not preemptible) • Increases energy consumption

  4. Cheating to see the end result • Hacked out the “if idle” condition on nohz mode • Timer interrupt never goes off except when timer explicitly set • Many known issues: scheduling, CPU accounting, RCU, . . . • Boots, runs benchmarks

  5. Cheating to see the end result - Before (Graphs by Anton Blanchard)

  6. Cheating to see the end result - After (Graphs by Anton Blanchard)

  7. Real Solutions • Remove the polling from tick_sched_timer • Find an appropriate event • Set an appropriate one-shot timer • Eliminate entirely • Stop thinking of jiffies as free • Revive the work to make the scheduler itself preempt only when needed

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend