From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yDUNHcaK4V/tYQAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 05:57:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wP/MGMaK4V+nPQAAbx9fmQ (envelope-from ) for ; Tue, 22 Dec 2020 05:57:26 +0000 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 B6A9894014B for ; Tue, 22 Dec 2020 05:57:25 +0000 (UTC) Received: from localhost ([::1]:57476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krafk-00084a-K3 for larch@yhetil.org; Tue, 22 Dec 2020 00:57:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krafc-00084T-Fv for guix-devel@gnu.org; Tue, 22 Dec 2020 00:57:16 -0500 Received: from mout02.posteo.de ([185.67.36.66]:51617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krafZ-0004MT-2i for guix-devel@gnu.org; Tue, 22 Dec 2020 00:57:16 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AFB062400FC for ; Tue, 22 Dec 2020 06:57:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608616628; bh=R1LwmTAZa9GyZs4Ce53Mvuuf5VyH02ZN+t8fGhDBCrE=; h=Date:Cc:Subject:From:To:From; b=CrOFnNcjing2aK9jV7t97kCoCCLlzObBTAXWqye5IlhSHgwx/uIzQV5jSKbEQm5I/ lFfaSqgkJvdPkfkt8U/+F4j7p32nxhWE1ZEL3LGyxy872ISYLHdnk6EXiMPrp5A4Aa 5R3QLsgc/KR9FiWzyEhslril3SSDV8B7vX8qCgpkJU5kCtCgr7IzO3ZTb9X6GGDiGt AY/EmryUCD3GmcpWoBvJaLpjqY4LIaXzZzDBu9UPV/oz/+JTp6ciWXwTPSl8R4hmnr 2WrPVfWQc3x4TIca3/r3/rDXq9fyuM048Uf/Na9GN2l1Tl9szAPRQ/geCPv18c6k5/ rC7fIfoFd5SMw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D0Qb73fW5z6tm6; Tue, 22 Dec 2020 06:57:07 +0100 (CET) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 In-Reply-To: <87mtygvhgy.fsf@gnu.org> Date: Mon, 21 Dec 2020 21:57:06 -0800 Subject: Re: Provide an option to specify the tmpfs size of the container From: "Robert Smith" To: =?utf-8?q?Ludovic_Court=C3=A8s?= , "luhux" Message-Id: Received-SPF: pass client-ip=185.67.36.66; envelope-from=robertsmith@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 1.28 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=posteo.net header.s=2017 header.b=CrOFnNcj; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: B6A9894014B X-Spam-Score: 1.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: NP71oItUyva1 Hi Ludo, On Mon Dec 14, 2020 at 10:56 AM Ludovic Court=C3=A8s wrote: > Hi, >=20 > luhux skribis: >=20 > > I am using guix environment --container to containerize my programming = environment and runtime environment, but I found that the container / creat= ed by this command uses tmpfs and cannot be resized. > > > > When a file in the container outputs a lot of logs to the tmpfs of the = container, the memory usage of the host will be very high (this is usually = something I did not expect) > > > > So can provide an option to specify the size of tmpfs? >=20 > Sure, why not. Would you like to give it a try? This feature caught my interest and I wanted to investigate a bit :) tmpfs defaults to half of the available RAM, with the 'size=3D' option to the mount command we can increase this limit but I believe that the upper bound is the sum of the available RAM + swap space. Would it be worthwhile to allow for the container filesystem to be stored in a non-temporary filesystem, for example allowing the user to specify the parent directory of the container root? This would let the container fs grow as large as the computer storage allows. -Robert