[ruby-core:86651] [Ruby trunk Feature#14705] [PATCH] eval.c (ruby_setup): disable THP on Linux

From: normalperson@...
Date: 2018-04-22 22:21:36 UTC
List: ruby-core #86651
Issue #14705 has been reported by normalperson (Eric Wong).

----------------------------------------
Feature #14705: [PATCH] eval.c (ruby_setup): disable THP on Linux
https://bugs.ruby-lang.org/issues/14705

* Author: normalperson (Eric Wong)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
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).


I think this is fairly obvious choice to make since we already
decide to support bitmap marking GC for CoW-friendliness.
Will commit in a few days if no response.


---Files--------------------------------
0001-eval.c-ruby_setup-disable-THP-on-Linux.patch (1.21 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next