From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gAWHND96B2ZLXAAAqHPOHw:P1 (envelope-from ) for ; Sat, 30 Mar 2024 03:34:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gAWHND96B2ZLXAAAqHPOHw (envelope-from ) for ; Sat, 30 Mar 2024 03:34:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="Ukl9/RM0"; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711766079; 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=IY/pP7+mH2UwD7XiqtWLukZtmexu4vscZy0Aer0ez/Q=; b=bi9DrNnhfKi5b9Za4y8TWL4MXdf5lEfMreVGi3bB8bhtqPWA3xOs2QqUk1XkScbYG3bVqt 3BD/Obf5IQavymGIZdevcoILXiZ+wjuCdgbRQpZsjzGKx91wcc4zp+Ca/nHD2JhizhHFmd p0S+j4EMh59OJiMczyRafszdMneiGTFk22ZwAZMGgIQdgj1nRjghrSk5PT5YI8IwEqXO9k gJKKI4z+QssH1wHrJysR9O2q1ldWBiClEaHMCN29NYBOnr0Eztu84UMB6bZpdbDBE9X+Uk zk/dAWEL0qJpPQKHref2wDkPvNjqF/2dyOz9J+XEUDjNB91pPlQsrJJNjsS0dw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="Ukl9/RM0"; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711766079; a=rsa-sha256; cv=none; b=EGADDZVoxqcAG2RGF9NVPRWEMWdN4jhV4fPUre84jX7DPQFrj0xQUIwtCEpJs0Ec65D2iW NFJUxV31a3zO/QQbL7ch+MPnl891PqtmsR9lFAG0oHxxRa034ktVftND7lMeamw+MhWx9J HgFv5zE9VmkQDBYuaahx0Vlb/L1fL5iacyxD4lrQm7vARGtm/nltanKbHztQ8g6kZ6+7lL WnDBsieh6kDnrm1L3ZaqQTmzWSfCOrMygUfmVJrcPeEMbgigeNRmL6xJ1U8UNGfStG82OU IWuUViP3mTKT8cyjJu5yj+6FEhHl0nri9ce/A6WetD7lr/7ODkmxr6rqXT949A== 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 8D4D03BC67 for ; Sat, 30 Mar 2024 03:34:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqOXh-00044B-Op; Fri, 29 Mar 2024 22:34:01 -0400 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 1rqOXg-00043k-41 for guix-devel@gnu.org; Fri, 29 Mar 2024 22:34:00 -0400 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqOXe-00073f-64; Fri, 29 Mar 2024 22:33:59 -0400 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-5a529a1f69aso1462917eaf.3; Fri, 29 Mar 2024 19:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711766035; x=1712370835; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IY/pP7+mH2UwD7XiqtWLukZtmexu4vscZy0Aer0ez/Q=; b=Ukl9/RM0bjL6PmBnIKiXRxHwI/k3VT9M5NBCIE8rLdG+QuWqhR+kAJuTn8UJ/YkGb0 3/Wz5cOY+pt1F8FCYteyh+yZgC+L9GLWucE1tFJoWb0gI6/NQmRJI+3y8Gj/PsAgSS2z Nudkjp8IXxKcfKHE+TICX3dtpGDD4cWRvg17Q8ISKUJ3y2Vn7ADMs6bCOXozQqwmYj+p qEKIdgaoWyz0VKGmT3ZE8BT7AWhXQlS8IiL/yjSqtctKADZZaRxD2ZhxQrHojqn8O0+/ vFrrkzLED/2YtdL/wPfjmtd0tAa1va3bT323k6xDm3Yjm7A82i5RZx/GBylZqKlguNbv NFyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711766035; x=1712370835; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=IY/pP7+mH2UwD7XiqtWLukZtmexu4vscZy0Aer0ez/Q=; b=g7X9ElqZGqu4xqQJ/ClUrzbUKd36V5SMXY+RZbtlH7xO2XPIsq+f/H+PCpvpUN9Y4J esDoSKAXLVAm5XdgO1L/QIcMPuHmkeqk1UgxVuYAxvMD5sspVm0XZeSODxfzxNa+H/5B IcL/yqZoEX3CaFJpS8XUi+OQZdpUwOt5nMOz/A/iFsjju8AQL3tCfdLZ34eEy5G0DAxR 2QXsqbxB1V8Tn8E8lAIZM1tiXhwAlp7q6TM3pc92uBeGKRxtiJqDSoSGTgzV5cidASaw EyRsmM6o/zvsnm80fe3UqfPYAdSMyeRm+udb0bpB1qB2DbtO0sGwoco3OesQuu2N18Gk HnuQ== X-Forwarded-Encrypted: i=1; AJvYcCUNH0GVKl2voqs0rpo0Y05eIgJnsqplh10HdACkW+6J+mtnOC4cUQcqWbXbEq92eLqGzGzent/nAQHmXSMqCDgOa48= X-Gm-Message-State: AOJu0Yxr++ZRyFSeBDHjbsQ0kAuNLbWHkVLTxabf6N82McxRNRCcah9D T/SgkLfaMFQ5dCZL8CUBqNhEmC4r/gqhNnacvEF6+jBAdPP6fgV9aXj+VEGiBMU= X-Google-Smtp-Source: AGHT+IE/6Vt4W+LVXFCeUW3qPrqA2f4LYwpbY1MhyfaTxEuGfT6nvFKcItJLGq2BJOaSY3xuDkZ/hA== X-Received: by 2002:a05:6870:231d:b0:22a:9ea4:c18 with SMTP id w29-20020a056870231d00b0022a9ea40c18mr4341631oao.15.1711766035207; Fri, 29 Mar 2024 19:33:55 -0700 (PDT) Received: from hurd (dsl-10-141-225.b2b2c.ca. [72.10.141.225]) by smtp.gmail.com with ESMTPSA id hg3-20020a05622a610300b004313b4ccfa6sm2182160qtb.13.2024.03.29.19.33.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 19:33:54 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Edouard Klein , guix-devel Subject: Re: guix --container is RAM hungry In-Reply-To: <871q7uj5n2.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 29 Mar 2024 00:30:57 +0100") References: <87v85fp8bj.fsf@rdklein.fr> <871q7uj5n2.fsf@gnu.org> Date: Fri, 29 Mar 2024 22:33:52 -0400 Message-ID: <87edbszbvz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::c2b; envelope-from=maxim.cournoyer@gmail.com; helo=mail-oo1-xc2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Queue-Id: 8D4D03BC67 X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -8.02 X-Spam-Score: -8.02 X-TUID: pSWhpyxZxaiX Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi Edouard, > > Edouard Klein skribis: > >> I'm a huge fan of guix --container, and I created a system to use those >> by default for network services. But the VPS these services run on has >> only 2GB of RAM, and I just realized that a container, by default, >> requires at least 200MB. > > Ouch, confirmed: > > $ \time -v guix shell -C coreutils -- uname 2>&1 |grep 'Maximum resident' > Maximum resident set size (kbytes): 283048 > $ \time -v guix shell coreutils -- uname 2>&1 |grep 'Maximum resident' > Maximum resident set size (kbytes): 56588 > $ guix describe > Generation 297 Mar 24 2024 23:12:25 (current) > guix 28bc0e8 > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 28bc0e870b4d48b8e3e773382bb0e999df2e3611 > > > As raingloom and Ricardo wrote, there=E2=80=99s a Guile process that keeps > waiting. Is there a technical reason for this? Couldn't we replace the current Guix process with 'exec', as hinted by Edouard? If possible, that'd be the most direct way to avoid any of the memory cost incurred by Guile/Guix. --=20 Thanks, Maxim