From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#28590: [PATCH 0/7] Attempt to reduce memory growth Date: Tue, 3 Oct 2017 13:43:45 +0200 Message-ID: <20171003114352.13984-1-ludo@gnu.org> References: <87poafkvsm.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1507031213 22174 195.159.176.226 (3 Oct 2017 11:46:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 11:46:53 +0000 (UTC) Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 28590@debbugs.gnu.org To: wingo@igalia.com Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Oct 03 13:46:39 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzLem-0004VI-Al for guile-bugs@m.gmane.org; Tue, 03 Oct 2017 13:46:36 +0200 Original-Received: from localhost ([::1]:57962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzLet-0003KC-TE for guile-bugs@m.gmane.org; Tue, 03 Oct 2017 07:46:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzLeL-00032q-IF for bug-guile@gnu.org; Tue, 03 Oct 2017 07:46:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzLeF-0006c3-MP for bug-guile@gnu.org; Tue, 03 Oct 2017 07:46:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36641) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzLeF-0006bz-J6 for bug-guile@gnu.org; Tue, 03 Oct 2017 07:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzLeF-0006lD-D8; Tue, 03 Oct 2017 07:46:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87poafkvsm.fsf@gnu.org> Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 03 Oct 2017 11:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28590 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 28590-submit@debbugs.gnu.org id=B28590.150703111325854 (code B ref 28590); Tue, 03 Oct 2017 11:46:03 +0000 Original-Received: (at 28590) by debbugs.gnu.org; 3 Oct 2017 11:45:13 +0000 Original-Received: from localhost ([127.0.0.1]:45310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzLdR-0006iq-F8 for submit@debbugs.gnu.org; Tue, 03 Oct 2017 07:45:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzLdN-0006hh-Mn for 28590@debbugs.gnu.org; Tue, 03 Oct 2017 07:45:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzLdF-0005rd-Ci for 28590@debbugs.gnu.org; Tue, 03 Oct 2017 07:45:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzLcT-0005AC-Vr; Tue, 03 Oct 2017 07:44:14 -0400 Original-Received: from [193.50.110.164] (port=33316 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dzLcT-0000d1-Fl; Tue, 03 Oct 2017 07:44:13 -0400 X-Mailer: git-send-email 2.14.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8847 Archived-At: So! This is an attempt to mitigate memory growth in the use case shown at . Unfortunately, it doesn’t that much: on the python.scm compilation “benchmark”, there’s a bit less than 10% gain both in memory consumption and CPU time. I’ll try to combine that with incremental marking of the weak table, but I’m not very hopeful. Andy: I need your help! :-) Ludo’. Ludovic Courtès (7): weak-table: Fix unbounded growth of the disappearing link table. weak-table: Stress the GC a little less when resizing. weak-table: Make sure 'move_disappearing_links' actually moves links. weak-table: Always unregister previous links when inserting an entry. weak-table: 'move_weak_entry' reports disappeared links. weak-table: 'rob_from_rich' accounts for disappeared entries. weak-table: Resize less frequently. libguile/weak-table.c | 144 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 114 insertions(+), 30 deletions(-) -- 2.14.2