From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 2FU7GVlsDGbDQAEA62LTzQ:P1 (envelope-from ) for ; Tue, 02 Apr 2024 22:36:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2FU7GVlsDGbDQAEA62LTzQ (envelope-from ) for ; Tue, 02 Apr 2024 22:36:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=jm8FDCDb; 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=none; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712090201; 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=0+FNafipp/nqadQA6nTw3pZ7DfUOc70zTCRXbpRydzI=; b=mwMpfU9JsBr4XSGgJWsnuRKN/0ddKjkpfsTemSnAlHdR2aCgzKW+825RmnYJsai4Y5pUjY ICdGNhReoY+xz3SNeuEGl5u15mcJS2Uvau/kOuj4FkQCaf3joaeLhu7RCrtAtqdU+jQxnM x9w2cX05S8D7VdI6KkQQ5eSR3cj/B3p1pN3WzuWYpFou4lKyw0DM3arVWRRolhWz1D/mb2 4pFHtkej9to7R5JkAJf7h2xKSsvK96TxCuWyFTiPFRiuavbvpUbWIYk/ragsrHd/33IXer rrFywOQoEfHuGBe2wok48NNZdREzRk8NxVzk1lwGiOYfbBEfIKHKP/pyLsUuZg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=jm8FDCDb; 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=none; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1712090201; a=rsa-sha256; cv=pass; b=fl//46u6vtIJt5U3nM+dUAJNvOUpL6K5HsU/XJ+8VfDxqf/NfbkqS32iSi3oXs9bFvkpRg Lvg3G4NVTvd97ih6Et9HNiTtGOG9NazwbAeBOpN3ycTowwsK216QrBXPBdeejduiNln5R7 z4tOVsxkgJjjNTdzXdtWlXz8VXnIqhAM9HfeD6j6KL47kAJU/eEWQbo19p/QwkiITQ3L4K aJn2c3e2Nu+EFSoDcSO/9rG5u0iZi0XsBMYpaQ2apbw2uDMgIXrBx0DJACsh23ziCYeuxP ZrdjfFwinSh0So2AVPSJCw99CfnQdH2vOAoP0UYsR+/pGfhhWDThACevVbDOtw== 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 4A55251F42 for ; Tue, 2 Apr 2024 22:36:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrkrc-0006fO-Sk; Tue, 02 Apr 2024 16:36:13 -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 1rrkrW-0006dF-GZ for guix-devel@gnu.org; Tue, 02 Apr 2024 16:36:06 -0400 Received: from sender-op-o11.zoho.eu ([136.143.169.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrkrR-0002rj-R2; Tue, 02 Apr 2024 16:36:06 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1712090156; cv=none; d=zohomail.eu; s=zohoarc; b=Y7oHYjm8Do+VYur0E7dCfmAnnNVnxQ8X6eg/Ixvr2v8hJIqhXmgVT1bvvWBa/2wnUi/6wA1hd2N8AbL0q+fuoS0uSOU0u3lT51djxGVi/I6wMs1ioSlxmkcuGEA/8CUfK1cykp5ZI/uHYK0JZfiqAhLn13jIfuUvoXHF5OjssY4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1712090156; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=0+FNafipp/nqadQA6nTw3pZ7DfUOc70zTCRXbpRydzI=; b=czrRhC70vxVH+gI/ZDlX+N0dKndDuDWyoZShVQ4is7jv72bLhE9jyXPvBGZcNZ2sNIpVfeMsI02F9cWz3RakTFkueRHI0gEcqWfSc+ZClnVzetE9uU17I5B1EJSWyRaataywp0px/9IonBrbQkpPoNaUPTDkZQlcYntXL4H2x6c= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=rdklein.fr; spf=pass smtp.mailfrom=edou@rdklein.fr; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1712090156; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=0+FNafipp/nqadQA6nTw3pZ7DfUOc70zTCRXbpRydzI=; b=jm8FDCDbmgkdXzdLDB0z+rVdB1UStnHZAxF2rq4Hhh+IBCLjyKfQwYPkOYNmN4eR ibkgJTHCP2axYgRFwvtgtDQbwlvxrkjC5HCGSvXskQmk4PzyCo7+feYB2fwpe7TxgnD fqNXz7T7euQvAtPy0ReXQT9lH56bITcAD58nEoqBCJpehbsdByZlDaqYQv2DzHunDtX 9p2qgSjTKXXAcqh3uc+XQE4DU0PSu7VMdgWCy+b/AjjvfW7w+Bk4xcoefShzEtvEidZ PHe59DoVDBsQXBLEnA3DnLoQ/fe0PHotl12p/7f/qHAiuv6+4IfN3psyQpziSjv9SND eMoOSnRyhQ== Received: from schwarzy (lfbn-idf3-1-667-244.w86-252.abo.wanadoo.fr [86.252.237.244]) by mx.zoho.eu with SMTPS id 171209015373176.18633861160492; Tue, 2 Apr 2024 22:35:53 +0200 (CEST) References: <87v85fp8bj.fsf@rdklein.fr> <871q7uj5n2.fsf@gnu.org> <87edbszbvz.fsf@gmail.com> User-agent: mu4e 1.10.2; emacs 28.2 From: Edouard Klein To: Maxim Cournoyer Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel , Csepp Subject: Re: guix --container is RAM hungry Date: Tue, 02 Apr 2024 22:33:18 +0200 In-reply-to: <87edbszbvz.fsf@gmail.com> Message-ID: <87zfubv6xr.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.169.11; envelope-from=edou@rdklein.fr; helo=sender-op-o11.zoho.eu 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -5.89 X-Migadu-Queue-Id: 4A55251F42 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.89 X-TUID: 5yvD8TIFKi7T Maxim Cournoyer writes: > 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 kee= ps >> waiting. > > Is there a technical reason for this? Couldn't we replace the > current Guix process with 'exec', as hinted by Edouard? > Raingloom did, I just reported the problem without investigating the cause. > > If possible, that'd be the most direct way to avoid any of the memory > cost incurred by Guile/Guix. I stand ready to test any WIP patch, I'll take a look as well to see if I can guess where to replace a fork with an exec. Ricardo's breakdown of the calls will be helpful. Thank you all for having taken the report into account.