From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cEx1LeCq/GUyKQAAe85BDQ:P1 (envelope-from ) for ; Thu, 21 Mar 2024 22:47:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id cEx1LeCq/GUyKQAAe85BDQ (envelope-from ) for ; Thu, 21 Mar 2024 22:47:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=VnvARB3G; dmarc=none; 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"; arc=pass ("zohomail.eu:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1711057632; a=rsa-sha256; cv=pass; b=N28lWcKsGyzRy5N+B7qjXw6+kLKB9OXOViLZQ+7dgE3db8voTzmhfgcfkD5O7OIj/2Xqja eJZGoMQF0T+VD/afQP6UU0wQ/hWcRf/tGeZEXOz79XZgc9tbBE2aT9ta8+fKf0rcHrXqJK R8Q+i1YNWx6ZdjLUbL8JDnXf91rYk04wEH8P6QBmn6xLqxheGk6arIrcrPE0pWx6q/CXUV 8Whe63xdvVDKn8Cc3AaxulgbGj0NWkpm7wndmrie9NmdJFAIAksqtPE8R6LXnZk5Y6x9+Y WYUtVX9Imt4YzAepp+SVUVQzt6UWM9VnO/U433BSvRPHsvuMyW4hUUjrGuBDHQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=rdklein.fr header.s=zoho header.b=VnvARB3G; dmarc=none; 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"; 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=1711057632; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HETkBbX6gmiBRbHUvZaGZje2cJBXDeGWzMPEyqrwzs4=; b=lDgjI3mTkLTyxk3Ikmb66fS/6asggn4dr/9BMx+kuWomc98KXvYtuxyqBmdEMEtP4/96Zr kewUnd8BxHXb+DtDwLMKu2ETGez12thOQjrT815AjSWgLyORooEYPGSvM3bEo7DNUr2wwz JtHWNKavGLr7MHdF734l2dH8mgQM+JbuDCyij5ZsqqHPv1an9EnATaQ9d005FVz+ymUcN2 JKLfDLqVmJ6SXhYdEzr0Uel1tO5rV9CSUpz5I82DuoFJxEUdN2jjC9eAq9X45W+l3/pNJ6 n5uQ9cW6McrVYDi1B05T8nYbmiwqG5d8tbIG0KMlAf9upe5Xibn8k1W4G2MtDA== 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 6C29DBD29 for ; Thu, 21 Mar 2024 22:47:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnQFH-0005bq-GF; Thu, 21 Mar 2024 17:46:43 -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 1rnQFE-0005bO-BE for guix-devel@gnu.org; Thu, 21 Mar 2024 17:46:40 -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 1rnQFC-00054T-4R for guix-devel@gnu.org; Thu, 21 Mar 2024 17:46:40 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1711057593; cv=none; d=zohomail.eu; s=zohoarc; b=Kmw+AEo3fQesKZeKHwj/mdI/pSdP2OVtR8kNvCDNCtptiyb/2gvaYeBt+7vSgI0EBFe7reXl0aZB0c9Al4INJzSqHSPIpIiw6Z9KbP92Si2h6Rgi/d+f0xvKpO70oH2peRP1JlN0hBKHyIpeONq/5uKjEEqpY64S8Ip+ceUE40c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1711057593; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=HETkBbX6gmiBRbHUvZaGZje2cJBXDeGWzMPEyqrwzs4=; b=YhlssO+CBJTnKLAufnQufZkXyI1QJVB7xIXUFpDhqjtHrVEMZCg42u99tx9c9oweIhJCH7Fz2j3Y6dQkL9zIbFEoNwr8qhIg3lSKcfO6PpuwHS2w2hRAES/1l2C7fsba9t02TYodl63P3N1FR7kQdhKiltULnGhC7WN0AFOLvu0= 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=1711057593; s=zoho; d=rdklein.fr; i=edou@rdklein.fr; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=HETkBbX6gmiBRbHUvZaGZje2cJBXDeGWzMPEyqrwzs4=; b=VnvARB3GC7AvOvFsOPMLTIQh1aVPi/xPTd0XnzwyBF51CdGLObjPpvvyVsq7Js+X UA5snFRAWGII5XbDj8uk0DiSnF0XuWSseHYHAcavXYxNtwEe/yjOjiNFiYx1H1gQkjS GSMVmhoJ7F62BlKzNEfD/sOxMMQKFWPGySZbRDCzEUyiWNQ48G9Om4cUy3dfpn1EWuQ m0bRv5b8eXFe9a47AMwh4pRzgCs4WogWzmIjcGKRCTniGsToXqNHqxgXkhhVvZo7AGt yr2FWNZGSr11TzOA6Qbowv/8o0svxGuCjb+ZsECLI7L5vz8tPztZZLHWE2cu7b/ZFHC OhYK4tELjA== Received: from schwarzy (lfbn-idf3-1-667-244.w86-252.abo.wanadoo.fr [86.252.237.244]) by mx.zoho.eu with SMTPS id 1711057591839192.3907331405211; Thu, 21 Mar 2024 22:46:31 +0100 (CET) User-agent: mu4e 1.10.2; emacs 28.2 From: Edouard Klein To: guix-devel Subject: guix --container is RAM hungry Date: Thu, 21 Mar 2024 22:44:41 +0100 Message-ID: <87v85fp8bj.fsf@rdklein.fr> MIME-Version: 1.0 Content-Type: text/plain 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.07 X-Spam-Score: -5.07 X-Migadu-Queue-Id: 6C29DBD29 X-TUID: MWRdWLeoI+MS Dear Guixers, 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. Try it: guix shell time which -- bash -c "$(which time) -v guix shell --container" Then Ctrl-D, and look for this line: Maximum resident set size (kbytes): 291300 291MB of RAM to run bash. By contrast, removing the --container option from above yields: Maximum resident set size (kbytes): 64496 64MB, still a lot, but I can live with that. I tried various calls to unshare, but got no significant increase of RAM. >From an outsider's point of view, the --container option is a wrapper for unshare, and the dependency resolution is done by guix shell with or without the --container option, so I don't understand where the RAM explosion come from. I mean no implication that '--container' is simple or trivial to implement, I just wrestled with namespaces for a few weeks and I know they're a pain, to stay polite. I'm thankful for the tool and would like to use it more, but I can't in its current state. Any ideas ? Thanks in advance, Edouard.