Keyboard Shortcuts

Keyboard shortcuts are available for common actions and site navigation.

Skip to content
  • Home Home Home, current page.
  • About
  • Have an account? Log in
utshina2's profile
品川 高廣
品川 高廣
品川 高廣
@utshina2

Tweets

品川 高廣

@utshina2

東京大学情報基盤センターの准教授です.オペレーティングシステム(OS)や仮想マシンモニタ「BitVisor」などのシステムソフトウェアの研究をしています.

東京都文京区弥生
os.ecc.u-tokyo.ac.jp
Joined June 2010

Tweets

  • © 2019 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
品川 高廣‏ @utshina2

Linux カーネルは過去7年で基本性能がどんどん遅くなっているらしい。select() は2年前と比べて最大100%の性能低下。要因はセキュリティ強化、新機能、設定ミス。今年の SOSP で一番 OS っぽい話。https://dl.acm.org/authorize?N695040 …

10:18 AM - 30 Oct 2019
  • 593 Retweets
  • 1,111 Likes
  • だらりーぬちょん⛅ longroof ゆうしゃ おはぎゃ 市川遊佐 Ohtsuji Takeshi Nonaka Nishihara Takahiro ラーメンスキー Tahee ONUMA
1 reply 593 retweets 1,111 likes
    1. New conversation
    2. 品川 高廣‏ @utshina2 11h11 hours ago

      セキュリティ対策による性能低下は、Meltdown 対策の KPTI で recv() が最大63%、Spectre v2 対策の Retpoline でpoll() が最大89%、SLAB freelist dandomization で epoll() が最大41%、usercopy の強化で select() が最大18%。

      1 reply 43 retweets 75 likes
      Show this thread
    3. 品川 高廣‏ @utshina2 11h11 hours ago

      新機能による性能低下は、fault around(page fault 発生時に周辺ページもついでにマップする)で page fault が最大54%、cgroup で munmap が最大81%、transparent huge table デフォルト無効化で read() が最大83%、userspace page fault handling でfork()が4%。

      1 reply 31 retweets 51 likes
      Show this thread
    4. 品川 高廣‏ @utshina2 11h11 hours ago

      設定ミスによる性能低下は、forced context tracking(reduced scheduling-clock ticks 開発のためのデバック機能)無効化し忘れで最大100%、TLB layout change で munmap() が最大50%。CPU idle power-state support はHaswell上の select() で31%の性能向上があるが、LTS に backport されていない。

      1 reply 30 retweets 45 likes
      Show this thread
    5. 品川 高廣‏ @utshina2 10h10 hours ago

      上記の11個の要因中8つはカーネルの reconfiguration で、残り3つは簡単なパッチで回避可能。その結果、Redis, Apache, Nginx benchmark の性能がそれぞれ 56%, 33%, 34% まで改善した。

      1 reply 29 retweets 54 likes
      Show this thread
    6. 品川 高廣‏ @utshina2 10h10 hours ago

      パッチ1: Spectre 対策の retpoline は indirect jump を予測不能にするので、indirect jump をよく使う select や poll が著しく性能低下する。対策は、セキュリティに問題のない if文+ direct jump への置き換え。

      1 reply 21 retweets 45 likes
      Show this thread
    7. 品川 高廣‏ @utshina2 10h10 hours ago

      パッチ2: KPTI は TLB flush のコストが重い。PCID を使って最適化可能だが、それでも切り替えに 400-500 サイクルはかかる。PCID は CR3 に格納されており、CR3 の書き込み自体 200 サイクルかかる。

      0 replies 20 retweets 34 likes
      Show this thread
    8. End of conversation

    • © 2019 Twitter
    • About
    • Help Center
    • Terms
    • Privacy policy
    • Cookies
    • Ads info