From: SASADA Koichi Date: 2014-05-03T10:36:38+09:00 Subject: [ruby-core:62307] Re: [ruby-cvs:52906] nari:r45760 (trunk): * gc.c (gc_after_sweep): suppress unnecessary expanding heap. (2014/05/03 4:41), Eric Wong wrote: > nari@ruby-lang.org wrote: >> http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45760 > >> * gc.c (gc_after_sweep): suppress unnecessary expanding heap. >> Tomb heap pages are freed pages here, so expanding heap is >> not required. > > This seems like an important fix and should be backported to 2.1, right? > > I'm running r45777 on my server since ~12 hours ago with live traffic > and memory usage is reduced drastically. ~30M now, was 60-80M > before, sometimes higher. The commit message is wrong. Don't expand heap, but expand sorted array. I think it is not so big change. -- // SASADA Koichi at atdot dot net