From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OEPIDD1JKWeTDAEA62LTzQ:P1 (envelope-from ) for ; Mon, 04 Nov 2024 22:22:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OEPIDD1JKWeTDAEA62LTzQ (envelope-from ) for ; Mon, 04 Nov 2024 23:22:53 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=YJA2hxaa; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730758973; h=from:from:sender:sender: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:dkim-signature; bh=yiq+hG3W0ROHHZkd6Ezz1DBXw8wIMNK3XQMe+GPhD+E=; b=VmpaByMWnONnyimdG7wm7Fn4IDL7S2cRjKPieI+FIMwGGQYa0MBD42+TI7ZTr8YsxjNuHb BwXcf0S9MtdsnuF3Z6zaGHzFtYmOXJ1ak00ptRUwTtVEkbhAKG1xB86X91qggk6muizVz0 AVvjgjtWTQIfuREJkXmlW6gx6sovQ3NeInA+7padav0HuSt5+Mbt8QtNk3mNCshsF3wQop q4pjV8Yqo5K6esu2y+fJPACOAcfREuP0pKbw3NEldrI+OIxMFySbnGQ/DzvyB4wEltzBiX 1UTBvP2edgDPmgYZmWCcGmEydkktk45Z+I8j9MbkeltiW1zcNNYRiZGwnd8Qxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=YJA2hxaa; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730758973; a=rsa-sha256; cv=none; b=OkMoOT2FLhR6p0WRz2jQP2fp3WVYHClYCuKjfm/wuUl5du2ZbcqyDd0hVFarHkHtBGQ4eO nb30Zj6WkSVfFJR+xk0nwL/1aAmgMqSzNyhYbo5XJA4P5EBRBXFUblQvMQOTmsS3U6qxsN kfvO7p+ExNZhKLHnfvRdZrxtOIaaiCx/KXapZZqTNA4AG4X2q59Hh2BSJXfC9vUgjE7qaz yG7bvrzhMTyJxzf4slK9j9+er9cUOA4PJxGrgcbp7l8EbWNpEMaYIkvxlL3R3EeauvTne7 6ZSIpJgIy0qH5W2pxPmUESQA+4DprKDIE6R10lquR7E1COeUrRL0ljAWbhuj/A== 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 C699686F2F for ; Mon, 04 Nov 2024 23:22:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t85Sb-0005ic-Rd; Mon, 04 Nov 2024 17:22:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t85SY-0005iE-NT for guix-devel@gnu.org; Mon, 04 Nov 2024 17:22:06 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t85SY-0003oy-BO; Mon, 04 Nov 2024 17:22:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=yiq+hG3W0ROHHZkd6Ezz1DBXw8wIMNK3XQMe+GPhD+E=; b=YJA2hxaaOqaiCFE1Ist2 8gMqNUIXcJnn8dj0D3m91Ho6PRY8YVUwvKte8+LWAtoN6MIJF9Chpmbf1S3uY2/WJSDAD4D4CNi7M HkyU85GqSGstkki1ES4M36cXa4RYwEQIWv8urF5qCERsv5buduNBOGFJpi1ac0wC0bgtc5hOpfx8y su3dLMRUf1I5+dBI7fC+DyFhMwDLoCEeSl5sWeCSL3XGyoLdIJBSCoLVgwpwYnv3k1ORAzXanV6DJ i5+u2g1P8/gw/XJY9XtcDkMqoWgJLLGvRKnZnyTu2S5msVT8jtzWFXBnkk0aaRm3PsDbKhjb/z5qc B6NRpknhOACHbQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "Thompson, David" Cc: Evan Cooney , guix-devel Subject: Re: Possible useful guix package performance data In-Reply-To: (David Thompson's message of "Fri, 1 Nov 2024 09:14:22 -0400") References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 14 Brumaire an 233 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de l'Endive X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 04 Nov 2024 23:22:01 +0100 Message-ID: <87ikt23aie.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.33 X-Spam-Score: -1.33 X-Migadu-Queue-Id: C699686F2F X-TUID: jGUbe1R+AIbw Hi, "Thompson, David" skribis: > What are you trying to measure, exactly? The data collected is about a > single thread of a Guile process, but `guix package -i` involves > interaction with the Guix build daemon, waiting for downloads, etc. > These things are outside the scope of what statprof is tracing. > Anything that involves reaching out to the internet is going to make > for an unreliable benchmark. I'm not actively working on Guix tools > but I don't see anything immediately actionable from the collected > data. I think getting some more clarity around the goal is necessary > in order to know what to profile and how. Unless you=E2=80=99re specifically looking at performance of substitutes, I recommend looking at profiles when using =E2=80=98--no-substitutes=E2=80=99= ; I would also pass =E2=80=98--no-grafts=E2=80=99, to make sure you=E2=80=99re really= looking at the core of the whole package-to-derivation mechanism. You may also want to check the =E2=80=98GUIX_PROFILING=E2=80=99 environment= variable, from the (guix profiling) module. That can give a useful overview such as the number of remote procedure calls (RPCs) made to guix-daemon and the hit rate of the =E2=80=9Cobject cache=E2=80=9D: --8<---------------cut here---------------start------------->8--- $ GUIX_PROFILING=3D"gc rpc object-cache" guix build hello -d --no-grafts --= no-substitutes /gnu/store/79dhya6sngg4rf53m1cyxlhn8y4pnw2n-hello-2.12.1.drv Object Cache: fresh caches: 16 lookups: 5042 hits: 4596 (91.2%) cache size: 445 entries Remote procedure call summary: 382 RPCs built-in-builders ... 1 add-to-store/tree ... 3 add-to-store ... 48 add-text-to-store ... 330 Garbage collection statistics: heap size: 72.27 MiB allocated: 100.29 MiB GC times: 13 time spent in GC: 0.42 seconds (45% of user time) --8<---------------cut here---------------end--------------->8--- Keep in mind that the figures we=E2=80=99re looking at here are largely dependent of the package graph being processed (that of =E2=80=98hello=E2= =80=99 here). So it also makes sense to look at the size of the package graph in question first (in the case of =E2=80=98hello=E2=80=99, it=E2=80=99s probab= ly fine, but let=E2=80=99s say when Rust packages are in the loop, the graph might be much bigger than needed/expected). HTH, Ludo=E2=80=99.