From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 IIlMCkacFmaSmwAAqHPOHw:P1 (envelope-from ) for ; Wed, 10 Apr 2024 16:03:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IIlMCkacFmaSmwAAqHPOHw (envelope-from ) for ; Wed, 10 Apr 2024 16:03:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=f4KCg0dL; 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=1712757830; 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=UUi8VkWL/E4PAaDVyL/xVFbBPkirRwLRHduQsnnkBT4=; b=tQoGfxuAU4QUWSetaEqVlvTcvgtYFOhu5lC9iabj3BqffbmbQWcFEdOeuY4fYaNj8ZMyDU 1ESw+5mTSMT0v1BzdMcCb9AX7r+PGbGi6LFbiapKHk6wYpFSL+45C3Sstsd1L2POGdZWp6 jQ5wj1y77K0EsTgV985+EWrpQSF6ybsrgs+AwIYu6fS1oZd+Mbeh+Oe/nVd9s3VQndxhNK 13KxInhXMf0qFlwcjFthxuY6oHX3jDj42jmURF5e0o9ls+7kMohN/0da9KwC+z4nwiZ08c N2PL/sgk4CFpB5+IZw3anxPKr54gKK0w3vStnAcqAJIiwTwxF3yhVYAG3TPmBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712757830; a=rsa-sha256; cv=none; b=hfXMCoNAzRAUEXma85ePzWOzABadpjojDm+eM1jhhDzXFYt5o5hopkD8vs9tSb7M+v3D31 C2s40/e8xzTa33KUuRRP0tt4RHy7qdcIEtCR5H7L3GR6UwZENYLuAXTDn6q3lki7XJzIjw jwPOwgt+6JkJwZr9FTvylsi+EBehbZrjtfIxaHAZ3QO9U1MpxThZ7SGoH8TzvncWn+RPBD VGOBE6swvWTT2R4DOLR6afbAObyh2kYgQ5S3UJVWa7rs3cMJh7LvvKCs+ftAdmtZR6XXV5 KgsT3EMtMvYdkbtJBjT48qiMl92n8KantUCLVIFr9+0uqNdbxXT5qAHdPvfgfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=f4KCg0dL; 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 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 EBD3152CD1 for ; Wed, 10 Apr 2024 16:03:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruYXT-0007PZ-K3; Wed, 10 Apr 2024 10:02:59 -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 1ruYXP-0007P3-Hi for guix-devel@gnu.org; Wed, 10 Apr 2024 10:02:55 -0400 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 1ruYXO-00069S-LY; Wed, 10 Apr 2024 10:02:54 -0400 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=UUi8VkWL/E4PAaDVyL/xVFbBPkirRwLRHduQsnnkBT4=; b=f4KCg0dLBHYQx7k1P5gM fBXac1WjgDtUOsxvQqsfJbaulLIq6Qr0QCnCEAfHFxnvL3V3BTDC8haeT5wIgog3uEvIgw+iMPFkd ucQsEo/3qXFHSQIDvwsbhzK/dUJu3BOy0KxVaFVqlcZDjaG1RJQBdOeEgYnaW/dVoT508IxLlXkOX Z4tcEEQdXMnhH4jq6dJwy6LVJiuArJu5dSwUdw2zgGoVAfubo/L0Dt/yQVwuDFT2rIKuLLIb+X5AO aC9vmOEWchYkogLap4A+5b9al5pOJpNrVi+QgI4oi7Eyh+gMF2KeeO1nuMEWLnCZZB7+OCyMjpbG7 c+3150VssdofAw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Edouard Klein Cc: Maxim Cournoyer , guix-devel , Csepp Subject: Re: guix --container is RAM hungry In-Reply-To: <87zfubv6xr.fsf@rdklein.fr> (Edouard Klein's message of "Tue, 02 Apr 2024 22:33:18 +0200") References: <87v85fp8bj.fsf@rdklein.fr> <871q7uj5n2.fsf@gnu.org> <87edbszbvz.fsf@gmail.com> <87zfubv6xr.fsf@rdklein.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 22 Germinal an 232 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour de la Romaine 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: Wed, 10 Apr 2024 16:02:51 +0200 Message-ID: <87r0fdl3hw.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-Spam-Score: -9.63 X-Spam-Score: -9.63 X-Migadu-Queue-Id: EBD3152CD1 X-Migadu-Scanner: mx13.migadu.com X-TUID: ZNXjtO0UsUKA Hi, Edouard Klein skribis: > 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 residen= t' >>> 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 ke= eps >>> 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. Did what? I don=E2=80=99t think execing is possible in this case, unless we let the u= ser=E2=80=99s process run as PID 1 inside its namespace (which isn=E2=80=99t recommended). See #:child-is-pid1? in =E2=80=98call-with-container=E2=80=99. I submitted a patch set to help a bit with that and related issues: https://issues.guix.gnu.org/70132 (I shouldn=E2=80=99t have said in the cover letter that it=E2=80=99s a bori= ng patch series: I got zero comments. :-)) Thanks, Ludo=E2=80=99.