ko1 / atdot.net wrote:
> It causes system call and extra overhead so that I'm not sure
> it is acceptable.
> On previous proposal I could measure some performance down on
> fine-grain madvise.

OK.  I am worried about that, too.

For this, I think we can also track age of page in tomb before
deciding to free or madvise.  That can also reduce fragmentation
from the "aligned_free && memalign soon-after" case.

> https://bugs.ruby-lang.org/issues/12236

> I assume that we need to make sequential groups. 16KB (4 pages) group can be enough (but not sure).

Yes, 16KB is tiny; but it also helps reduce pause time on lazy-sweep.
Tradeoffs...

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