[ruby-cvs:70343] normal:r63253 (trunk): eval.c (ruby_setup): disable THP on Linux

normal at ruby-lang.org normal at ruby-lang.org
Wed Apr 25 05:31:59 JST 2018


normal	2018-04-25 05:31:59 +0900 (Wed, 25 Apr 2018)

  New Revision: 63253

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63253

  Log:
    eval.c (ruby_setup): disable THP on Linux
    
    Transparent Huge Pages (THP) decrease the effectiveness of
    CoW-friendly GC because it decreases page granularity.  That is,
    a forked process dirtying one bit of CoW-shared memory can
    trigger a copy of a huge page (2MB on x86-64) instead of a smaller,
    standard page (4K).
    
    * eval.c (ruby_setup): disable THP on Linux
      [ruby-core:86651] [Feature #14705]

  Modified files:
    trunk/eval.c


More information about the ruby-cvs mailing list