From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oNqMJbXhqGAC6wAAgWs5BA (envelope-from ) for ; Sat, 22 May 2021 12:49:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CEVLIbXhqGBtEAAA1q6Kng (envelope-from ) for ; Sat, 22 May 2021 10:49:25 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A6B0028AF0 for ; Sat, 22 May 2021 12:49:24 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 972CB271D7; Sat, 22 May 2021 06:49:19 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id B8FF227185 for ; Sat, 22 May 2021 06:49:16 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 16D455FD25; Sat, 22 May 2021 06:49:14 -0400 (EDT) Received: (nullmailer pid 1480419 invoked by uid 1000); Sat, 22 May 2021 10:49:12 -0000 From: David Bremner To: Felipe Contreras , notmuch@notmuchmail.org Subject: Re: [PATCH 0/2] ruby: enable garbage collection In-Reply-To: <20210517193915.1220114-1-felipe.contreras@gmail.com> References: <20210517193915.1220114-1-felipe.contreras@gmail.com> Date: Sat, 22 May 2021 07:49:12 -0300 Message-ID: <87y2c7t55j.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: HDBSZYVWLLWXS2C7VFLXRJHHXCNIG4DF X-Message-ID-Hash: HDBSZYVWLLWXS2C7VFLXRJHHXCNIG4DF X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Tomi Ollila X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621680565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=QHylRMcn3gCczEH3qg1jA1tJXCM7uiqU9rV3bBrB/SU=; b=gRpehtoQW74Oz/3jenO6/E1/nxx3yD004rpDxzvxmKtth2jXBnLJJUe32dETlF8q1qOPoO xjTYkMllPYx/Ba/fQGpW+oIoNZFiF7XygjPXPSJ791YJU4VpcM5Ds+ay1ccL4MQKlrhs47 AqBMu3MCQ87529BiusvqTN+sMrzUtXMegISh4hvoekdvZWCy6UNCBMPb6kNqb85353AB2D qWORnqQetMwX0Pv4vjTney9ehx7n04LX0GgjgM8jYQhfdx3EmBSKescE5sRifU04KIKshF jaGh6UqJkqpIQIn+x1AAwo8Dksy0BkYU4eOQzIz1xpNUFWHdL/YWL1NVUfpMMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621680565; a=rsa-sha256; cv=none; b=i5WUvHeYcE4ra3uL+kx9tUc8zBxf+nWZM+qTU0mBpUhyfadJGFJz2pZ4Pk5pT+9L0ShWxC U/y43Bxq2Z35pLS1+S6SqTQjG3qjidxLPmCgIzNPhV0dWpqiTDrnRI824huVqKxhLnHhzj U2N9FbMZxTcp82TQR44/HkjoqracIoXcVRmD8qDQayVhlHNR7+Q/sRf5+49rSMPlOTrQGB 3MyzL3LAxqoW+0GniIkcBF/Km2cD574ffp5VPIoiQxnOzO2ERy4w8iWnVFlIkMyu3aX0Lg wgqrsEPFdA+bYTGBc0/ZY1z6d0tEwpSOLkiU7TiqcI/EZoVj++GhWBC35bQpXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.07 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: A6B0028AF0 X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: N8DGFk+DzSUH Felipe Contreras writes: > Ruby is a gc language, we shouldn't be doing workaround to free memory when Ruby is perfectly > capable of doing so. > > The problem is that talloc wants to be smart, and Ruby and talloc both fight to free memory. We can > let Ruby win by stealing all the objects from talloc control. > > Thanks to the previous cleanup patches it's now possible to easily do this. > > In order to test this series I've used the following script: I still haven't had a chance to look at the series, but how about making this script either a test or a performance-test, as appropriate? d