From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: garbage collection slowdown Date: Sat, 1 Feb 2020 10:34:32 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31919"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sat Feb 01 10:34:56 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixpB1-00087U-Io for guile-devel@m.gmane-mx.org; Sat, 01 Feb 2020 10:34:55 +0100 Original-Received: from localhost ([::1]:37218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixpB0-00046k-LO for guile-devel@m.gmane-mx.org; Sat, 01 Feb 2020 04:34:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35998) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixpAr-00046S-Gm for guile-devel@gnu.org; Sat, 01 Feb 2020 04:34:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixpAq-00076K-EY for guile-devel@gnu.org; Sat, 01 Feb 2020 04:34:45 -0500 Original-Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:35250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixpAq-00074E-A0 for guile-devel@gnu.org; Sat, 01 Feb 2020 04:34:44 -0500 Original-Received: by mail-oi1-x22f.google.com with SMTP id b18so9916413oie.2 for ; Sat, 01 Feb 2020 01:34:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=nHk39JZsaQLZ54vvC4VVRCgsJDOumlupcxE7Nc03Hdw=; b=EQK65U6bvNzjePkC1bHPl6rF+7H2ggHLFO/cjs6vQ/fgtXTkzk8UrvfwXXr8yJmwM9 0rpFptG4YmDAJ0Cf9cyREXxpodAhCrPyI9EIGwmZE0L4WCu04TX8/Bi98DsUK79bCB+N SyB8VFFM676wE0jkgprXSFIFWdbnY829D6FURi2Qwn/V9CRHQshlxjrvXDLx0PyLrYyG FWktgvIRuVLZyObSCPN3GhWKme02GsrphX7GYAeo3rexBqVCmqxUUpRG2wAIYvIPZ8Zh NoX7aX4+Fq8WYMXbqN309gCOmO/BQNMFXsOrMpVYffxVxKunFAn4ebX6tv6fby2WsGwC 8i6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=nHk39JZsaQLZ54vvC4VVRCgsJDOumlupcxE7Nc03Hdw=; b=VCcsBAffPK0Uov7hhDG5Pkz1OfaJHwqFm65TIuJAjuZFO8newx3TXIfwsFysXw5zQx Q1teXRimrPn9LlP7TAJlfjnur2YE7IcIWZ0Sj3LVbImwuWuthbQcA8khxZo0EaMSt9Xg zu2OOb6BcF7Jtfpvn/2q6BSpnRykVPN5owfp+ONjxMeV89NL7eKiQbWm6yZYuyIsFHJg oArdov8RiiMVCACgRSQe40hafG/XF1Ww7Dd9CFMl4XP1B/WJ8M3sh2n+wD6gzEN0v5rZ RS4M3o+4VgHfrkiM+riESM0ajqVLlgwAVu6XouILeKxGyG9Y4vgWnRwN/N4w1x1Vs2Nr GogA== X-Gm-Message-State: APjAAAWHqiYpL1Yy+ootBZ9RRKLiRqNmLRZFiodgBlpemfN9W1kwlr8z ECK6Vimw3nSA1mMyrrit7vHVkWr7SldNT9zDyQFtD2BUQEs= X-Google-Smtp-Source: APXvYqxXpfbBEBBTVdOvK+CS1uHDQaVUDi03cViojDQvGBQYdJNqpxWGnc+jrdwAU6tK/l/MmUOs7sLiXfS5hvZkiNQ= X-Received: by 2002:aca:4d06:: with SMTP id a6mr8207495oib.27.1580549683185; Sat, 01 Feb 2020 01:34:43 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22f X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20364 Archived-At: On Tue, Jan 28, 2020 at 11:41 PM Han-Wen Nienhuys wrote: > Unfortunately, it looks like the adoption of the BDW GC library caused > a ~6x slowdown, causing an overall end-to-end slowdown of 50%. > > I was wondering if you folks would have tips to further tune GC for > wall-time speed, and if there additional diagnostics to see if we're > doing something extraordinarily silly. For the record, I managed to solve this, by scaling up the heap more aggressively. See https://codereview.appspot.com/561390043/diff/557260051/lily/score-engraver.cc Ironically, this is the same problem scenario that led me to refactoring the GUILE GC in ~2002, in c8a1bdc460f892847d0fb3f1321cdeb305160bf8. -- Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen