From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kDQRAq/9z2ToeQEASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 22:08:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gLkeAq/9z2SeCAAAauVa8A (envelope-from ) for ; Sun, 06 Aug 2023 22:08:15 +0200 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 A4A2C367E6 for ; Sun, 6 Aug 2023 22:08:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=DoaSSi1V; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691352494; a=rsa-sha256; cv=none; b=b32uQtYUxCQD64xPc8hK4HWee+FCNoTBDKtPIX5WnSWSYUQA3r9NwTrBf8F1wLs9b9eu4z qvyZU9CoffQQFen3MTDv4BcTt7DWkntEmMbuz/vJgfp3T7QglIv07MsAyp008gnhfXNaM5 xMir4/CvTqOCnk6Bubc4N0L1MeG3p/LWF+kA+5hJwMedHsLachP3yXz1EvDy4QFAIhlf2F DP6o7X8eB6qd/OOkqAumFcR3Y1IJ+U99sLT1ApBPtJwcODm4anmSh/KDhA3ocE3EKvQqu7 deDyzHWOttf8XtntBCfpP8/iqzxvHm1LqGMbkMItVrpXl9KHWlFiOUs8qfce9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691352494; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=T1BjhwnTGohgLcMj4+GE5b5TuISnPfFHQ1cwZ0ivRy8=; b=Ka2xTfvuFXDIg1I8SFVxrxHqE2Y1K57WFR2BwcycRxbN/iho5hUll2lh8i5c9m8jlVSo0/ 9bdz3cYUKNpvjD+sWhinl/adPz43i4EYm1VBhdDy0LPbCK6tXbTIh3rLefqlQK3H9qCgyF 2b4D7IepTIgjw/aISSWTjvl6HEuFMTbD2OD3vB4mi6JUccJBuv9wJYAk7nMx4KncBQD+Bg HFKD/0RJcWTC6OkFgRb1AszGzmjfKYipnzQRyFmPDN8rvGvu9rlvHLKPCwfPsUtWu7S/rn RbLPCNzGNPCbIL/+zFgKM00WbFWIiqhGshvHOD1bTEwEVUVrTvqX1XgWWPsN+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=DoaSSi1V; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSk2o-0003HE-5s; Sun, 06 Aug 2023 16:08:06 -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 1qSk2k-0003Gx-Ox for bug-guix@gnu.org; Sun, 06 Aug 2023 16:08:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSk2k-0008O0-G0 for bug-guix@gnu.org; Sun, 06 Aug 2023 16:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSk2k-000493-Ax for bug-guix@gnu.org; Sun, 06 Aug 2023 16:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64775: /run should be cleaned on boot Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 06 Aug 2023 20:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64775 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Hilton Chain , 64775@debbugs.gnu.org Cc: Saku Laesvuori , Csepp Received: via spool by 64775-submit@debbugs.gnu.org id=B64775.169135242515828 (code B ref 64775); Sun, 06 Aug 2023 20:08:02 +0000 Received: (at 64775) by debbugs.gnu.org; 6 Aug 2023 20:07:05 +0000 Received: from localhost ([127.0.0.1]:60075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSk1p-00047D-56 for submit@debbugs.gnu.org; Sun, 06 Aug 2023 16:07:05 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:58522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSk1n-00046i-1u for 64775@debbugs.gnu.org; Sun, 06 Aug 2023 16:07:04 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 8F21C1ACA2; Sun, 6 Aug 2023 13:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1691352413; bh=q6jfY52QKNcArtSRfXlUeQdKUD/pPinZBFHz3TFoKt4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=DoaSSi1VhZSY4YkhE54rjkveU+9weyH/OovH/R/ZQdL8L45RGqztQF4GcRUXpl/ua 7G1BQZgOJnJaw3nyCCYFtwaNlVWelXrilRrJlCrlgGf82SZiJlBlbn/ky8UKUH/xL6 yPBKLIQXqvdroe+P05lJMyOqo7ltvT+oZtMie9aKrifZQX43kiMUhMo0JeVErW7piK YGRxlfc4R0g8o5hso9LTXR0UIB5oVjnJ6NKGebJa561JCTfLKhNHcI/j6xmS/+gkjx m02Rgikars44AbhI/2r7fPk66vvxqeqTk5dqeg0pDa6BnnCWtkucrdconKW+LsS0bM gj0RSZxqCsADA== From: Vagrant Cascadian In-Reply-To: <87wmy848d0.wl-hako@ultrarare.space> References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@riseup.net> <875y6dyr4l.fsf@wireframe> <20230721202417.6kfmen37cc2h25ko@X-kone> <87wmy848d0.wl-hako@ultrarare.space> Date: Sun, 06 Aug 2023 13:06:37 -0700 Message-ID: <878raoylyq.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.25 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: A4A2C367E6 X-Spam-Score: -5.25 X-TUID: YGkt6TBvRYDz --=-=-= Content-Type: text/plain On 2023-08-06, Hilton Chain wrote: > On Sat, 22 Jul 2023 04:24:17 +0800, > Saku Laesvuori via Bug reports for GNU Guix wrote: >> >> [1 ] >> > > I vote for TMPFS, since that would also reduce flash wear. >> > > Honestly I don't get why it's not already using TMPFS. >> > >> > One argument could be how much ram it takes: >> > >> > $ du -sc /run/* >> > 12 /run/blkid >> > 0 /run/booted-system >> > 0 /run/current-system >> > 1312 /run/setuid-programs >> > 524 /run/udev >> > 1848 total >> > >> > That is with no explicit setuid programs configured, on a machine with a >> > fairly minimal configuration. >> > >> > Not a *huge* amount of ram, but not nothing, either... >> >> I'd say it's effectively nothing for almost all devices capable of >> running Guix. On my laptop the size of /run is 4804 (4.7M). In a quick >> test one terminal window with only zsh running in it took almost 10 >> times as much ram. >> [2 signature.asc ] >> No public key for 257D284A2A1D3A32 created at 2023-07-22T04:24:17+0800 using RSA > > I'm currently using tmpfs for /tmp, /run and /var/run on my Guix > Systems. > > If you are interested, this is my base file systems: > --8<---------------cut here---------------start------------->8--- > (cons* (file-system > (device "none") > (mount-point "/tmp") > (type "tmpfs") > (check? #f)) > > (file-system > (device "none") > (mount-point "/run") > (type "tmpfs") > (needed-for-boot? #t) > (check? #f)) > > (file-system > (device "none") > (mount-point "/var/run") > (type "tmpfs") > (needed-for-boot? #t) > (check? #f)) You probably want to restrict permissions on /run and /var/run, as the defaults for tmpfs are world-writeable, allowing any user or process to create files or directories in potentially harmful ways... For /tmp, these defaults are appropriate, however tricky a world-writeable directory is... Although I rarely have enough spare ram on a system to have /tmp be tmpfs for Guix System because builds happen there by default, and occasionally I need a lot more space than available ram in some cases. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZM/9TQAKCRDcUY/If5cW qqILAQDuw5mBcUClgZnzly9bjaOpcOZjJzCwPwoV+VjXCl+tlQEAht8Snx+h7LpV LIP51+eJgrP5038zMj5W5gbuPt2u2Qs= =B3Di -----END PGP SIGNATURE----- --=-=-=--