[ruby-core:88468] Re: [Ruby trunk Feature#14955] [PATCH] gc.c: use MADV_FREE to release most of the heap page body

From: Koichi Sasada <ko1@...>
Date: 2018-08-14 02:54:15 UTC
List: ruby-core #88468
On 2018/08/11 13:48, Eric Wong wrote:
>> https://bugs.ruby-lang.org/issues/14955
> 
> One major question to ask is: does object count during
> application lifetime vary enough to justify freeing
> "struct heap_page_body"?
> 
> In my experience, object count is relatively stable
> once an application reaches steady state, and we don't
> benefit from freeing heap_page_body.
Good question. Applications have their own characteristics of memory 
usage and have suitable memory management strategy.

> But then, maybe some weird applications allocate many objects at
> startup, and steady state object count is much smaller than
> startup.

or, special cases (like requests to admin page) can increase objects.

-- 
// SASADA Koichi at atdot dot net

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

In This Thread

Prev Next