https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112018-04-24T20:32:06ZRuby Issue Tracking SystemRuby master - Feature #14705: [PATCH] eval.c (ruby_setup): disable THP on Linuxhttps://bugs.ruby-lang.org/issues/14705?journal_id=716282018-04-24T20:32:06Znormalperson (Eric Wong)normalperson@yhbt.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r63253.</p>
<hr>
<p>eval.c (ruby_setup): disable THP on Linux</p>
<p>Transparent Huge Pages (THP) decrease the effectiveness of<br>
CoW-friendly GC because it decreases page granularity. That is,<br>
a forked process dirtying one bit of CoW-shared memory can<br>
trigger a copy of a huge page (2MB on x86-64) instead of a smaller,<br>
standard page (4K).</p>
<ul>
<li>eval.c (ruby_setup): disable THP on Linux<br>
<a href="/issues/14705">[ruby-core:86651]</a> [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: [PATCH] eval.c (ruby_setup): disable THP on Linux (Closed)" href="https://bugs.ruby-lang.org/issues/14705">#14705</a>]</li>
</ul>