From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SFgXKorXlGLuXgAAbAwnHQ (envelope-from ) for ; Mon, 30 May 2022 16:41:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IIkJKorXlGI9uQAA9RJhRA (envelope-from ) for ; Mon, 30 May 2022 16:41:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 63DD811BF1 for ; Mon, 30 May 2022 16:41:14 +0200 (CEST) Received: from localhost ([::1]:51410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvga1-0005DL-FS for larch@yhetil.org; Mon, 30 May 2022 10:41:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvgYt-0005CT-K5 for bug-guix@gnu.org; Mon, 30 May 2022 10:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvgYs-0001o5-Mg for bug-guix@gnu.org; Mon, 30 May 2022 10:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvgYs-0002PO-Fm for bug-guix@gnu.org; Mon, 30 May 2022 10:40:02 -0400 Subject: bug#55721: Low cache usage in the presence of grafts Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Mon, 30 May 2022 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 55721 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 55721-done@debbugs.gnu.org Mail-Followup-To: 55721@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 55721-done@debbugs.gnu.org id=D55721.16539215599169 (code D ref 55721); Mon, 30 May 2022 14:40:02 +0000 Received: (at 55721-done) by debbugs.gnu.org; 30 May 2022 14:39:19 +0000 Received: from localhost ([127.0.0.1]:45708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvgXw-0002N7-5U for submit@debbugs.gnu.org; Mon, 30 May 2022 10:39:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvgXs-0002MR-Ly for 55721-done@debbugs.gnu.org; Mon, 30 May 2022 10:39:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvgXn-0001as-EN for 55721-done@debbugs.gnu.org; Mon, 30 May 2022 10:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=1MBqjIrgQwEbyGn2bbZYnp/sXCgKC4EdigN5+XCk3cU=; b=YsV5Xa0/G1gPf2yhCQnS 4zQIg+xWJsAw/AV7iHgOpfjyXtJdmEtiAzypiAgmSM0qRZSGiBof+RuIlOcxwsayMJhSDykT82vcU tgAUs5VTVY5Q0aFCClWZ0B0z42MO5UkWWXTtBiemS7fw5lpOyjuGhSiEFDpUVVL/SX5NGGpzNvVF9 cl/ppGJftMZD6v4eTirym4h8Q+zxgjnfHiCwym2fodYhBNe9ZrtADRSMUjx87gzXcabQ0cflZwY8h V4qmBqWQhOzLQFP728uwQVgeIhLcumS2ehGiQM+1wDZhRgg2S2qpGoFk549qcgsSCQuVYVreZ0aEB mU7btap7borMSw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=36164 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvgXm-0001kB-HL for 55721-done@debbugs.gnu.org; Mon, 30 May 2022 10:38:55 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87y1yj5s1p.fsf@inria.fr> <87pmjv5pto.fsf@gnu.org> Date: Mon, 30 May 2022 16:38:52 +0200 In-Reply-To: <87pmjv5pto.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 30 May 2022 11:31:47 +0200") Message-ID: <877d633x1f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653921674; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1MBqjIrgQwEbyGn2bbZYnp/sXCgKC4EdigN5+XCk3cU=; b=suwQVob26oMWkDR+TGi3Lpn1/+kroT9/isCGkcgtFiAlCSmeM+ON1II8OJBJPDPrEml/v8 PHz48zZvlDhvBFvF97X87CAK0I+dpBSh4lH8AC4aXfg2CQfrSgMHV4wnKlYIygPAfSRgb+ 7SkcMlbBGdJNU/hJtBVvnAnVvWtJ2qOZJvEGkHkRwc+dZaDbI8Gl2kCt2dcd3secPLuVFV 4A8FtTyJ+hMIPoVZJQ3XGxCMntNAEinoVBxIjm2E1RIGRXx6YSBmA5246l2HhEBwII6MNf f3MkM5qLcS5eFDwPdlIvKJk5tqdBNSp7rugpmU8mLLI7Fq8RTgm6/xD6CP5N9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653921674; a=rsa-sha256; cv=none; b=YbiHYhDb03qyIJHudG94MBpKI7f7ydLJarHze2xHD45dAXs3apR2j7sBd9eJFy71PD7C8a Zn/bkolA77HydoRYQw42ZxaiGqu4DXPaAeZ/J4zUxFaNQX7OJluBflc4CvZ+BSXlpd9DRm aQIslY3CCjCUcWhz6Ukq6DDt/ZqjOw0TvKU7BEvKk9T9ypGa752Btf24DsYIQp4cPxJbsm 6qeUfcLgi8UijojiNcoTKL5ilCvYXN9vYjlpKspuorpC5TOejRB3ZHBZ3nD/9lxi7m8bWk 6jOBcsIfu1cf3fMaUB1XQ/PHr3umKDzcq08b/cBfJxlZUCXTtpIlVXgzr4t7vA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="YsV5Xa0/"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="YsV5Xa0/"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 63DD811BF1 X-Spam-Score: -4.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: qjDjbo7mzF35 I pushed a variant of the patch I sent as 1ae0e1dc29109cef20dbe9d26eb1c855694716b5. What I get now is: --8<---------------cut here---------------start------------->8--- $ guix gc -D $(guix build polkit --no-grafts) finding garbage collector roots... [0 MiB] deleting '/gnu/store/8vsfk8312m5p461wl4dq5lxjagfbwfhz-polkit-0.121' deleting `/gnu/store/trash' deleting unused links... note: currently hard linking saves 72523.68 MiB $ time GUIX_PROFILING=3D"rpc reference-cache derivation-graft-cache" ./pre-= inst-env guix system vm gnu/system/examples/desktop.tmpl=20 0.2 MB will be downloaded polkit-0.121 198KiB = 1.4MiB/s 00:00 [##################] 100.0% /gnu/store/cvfw1jlf9m60s4yjxhnjjv68rg59giag-run-vm.sh guix system: warning: only 4.7 GiB of free space available on /gnu/store hint: Consider deleting old profile generations and collecting garbage, alo= ng these lines: guix gc --delete-generations=3D1m Reference Cache: fresh caches: 1 lookups: 13997 hits: 13091 (93.5%) cache size: 838 entries Derivation graft cache: fresh caches: 5 lookups: 117280 hits: 103398 (88.2%) cache size: 430 entries Remote procedure call summary: 9286 RPCs built-in-builders ... 1 query-substitutable-path-infos ... 2 build-things ... 2 add-to-store/tree ... 56 valid-path? ... 59 add-to-store ... 373 query-references ... 906 add-text-to-store ... 7887 real 0m45.089s user 1m5.976s sys 0m0.433s --8<---------------cut here---------------end--------------->8--- We=E2=80=99re still getting a few extra =E2=80=98query-references=E2=80=99 = RPCs, but it=E2=80=99s much better. Ludo=E2=80=99.