From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EG01EWJK0GQhJwAASxT56A (envelope-from ) for ; Mon, 07 Aug 2023 03:35:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yDkBEWJK0GQPcwEAauVa8A (envelope-from ) for ; Mon, 07 Aug 2023 03:35:30 +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 9D5904AA54 for ; Mon, 7 Aug 2023 03:35:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=Lk96EqR5; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691372130; h=from:from:sender:sender:reply-to: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=6Y8Ucg/1bVdnhDKFPPVVqzhUPo6fwX/Z3nwhYVhln40=; b=Rrz2iqU4Y8IATZrKUDGyMsa9M6VHslKSPcvtkIt5exQVqwWyVHKbSJDCzu2Wu9nDn/kP5N eAGD1NmJo4XpBaRpaZc0i/iFrGXs85xd0qgwiL0BS8foTxmWst+RJpNl4D7vC8gErz4/9c Gqf9j8FDvkCpwGWV97oYrsSm4ZoCRz+PorN8oTFy4oz1xdQK+ZNa/q2+K04IIEYgJNfW1g /iXclG5LlJzc7rbT4idpK1PNTL/8WdEqNQE+LMfPXWWFco8J528fYEakfqWr6tblHRX3LY GmGLCwcIY8yhkdtQmAeT9q4iLBX4slifmdp2nHjZgYnoM/hsWhuzWwGpvyaW0g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691372130; a=rsa-sha256; cv=none; b=NKiFmgO6Ly04DkgRMp3GYTO5Hnc5YlVG2Ac0CjZC3uiPBvc7KrvtJidBvQXP4eSILFGREm URqj/ED7VRRzflNYhre4fzWx++w3e7DXi5NYA2FWeFHnkBa0EpTQTL7SyYkOYZP7orDaPZ +6Xf3Blg45vP+sSZIc0mAkWhwcActbEx6DS6P6vzzw6RL+pZVgtLbnVnrNXRMnT9GkAWgL e8Zz9ejHG6+6zumNB1J87zxMU7QQpQZq1fl73lp67RauciRtg9wg+b29fOvCH5637Su0zC 9gd3a9M12QRRcx+0MF8b3IOE/kYrCvlh4FAUjiPezwjpCOHYA9FCLMJfG4pXOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=Lk96EqR5; 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=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSp9E-0007ZV-U1; Sun, 06 Aug 2023 21:35:04 -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 1qSp9C-0007ZD-NL for bug-guix@gnu.org; Sun, 06 Aug 2023 21:35: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 1qSp9C-0008CP-EI for bug-guix@gnu.org; Sun, 06 Aug 2023 21:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSp9C-0003n7-0K for bug-guix@gnu.org; Sun, 06 Aug 2023 21:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64775: /run should be cleaned on boot Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 07 Aug 2023 01:35:01 +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: Vagrant Cascadian Cc: 64775@debbugs.gnu.org, Saku Laesvuori , Csepp Received: via spool by 64775-submit@debbugs.gnu.org id=B64775.169137205014508 (code B ref 64775); Mon, 07 Aug 2023 01:35:01 +0000 Received: (at 64775) by debbugs.gnu.org; 7 Aug 2023 01:34:10 +0000 Received: from localhost ([127.0.0.1]:60215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSp8M-0003lw-0Z for submit@debbugs.gnu.org; Sun, 06 Aug 2023 21:34:10 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:60322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSp8J-0003lo-Sg for 64775@debbugs.gnu.org; Sun, 06 Aug 2023 21:34:09 -0400 Date: Mon, 07 Aug 2023 09:33:13 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691372032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6Y8Ucg/1bVdnhDKFPPVVqzhUPo6fwX/Z3nwhYVhln40=; b=Lk96EqR5m8Xgg+aC3bBRi1zXjXq93OiXE81sRHkuis59UWCAMqkc3N3raNS0zeYQX32vQp 4xXl/k5Egtm30K6x+C2A9UyXpF06U+WrjN5XraN14oJIIbqh1DLwdO16AiS0hoK85WtdHQ AemQmpUXxdJ2dkhlIelQVNc3qA3xDPhfVnoByfRT20eXiYN3Iujn7ZML1WG6t5LJF4OGjA RIm3vbDaQahjkOkUlQ6sDHs24Pp4HPCIFy9Ve0vKFErsaoLgenz5YYlFplLRS7AveLWZt9 QAOqUhWf1DVE4fguW7emGBzsTkjrVXBgmEPgcYzd2GNf6IktaF2DHAD1zjpeAQ== Message-ID: <875y5rws9y.wl-hako@ultrarare.space> In-Reply-To: <878raoylyq.fsf@wireframe> References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@riseup.net> <875y6dyr4l.fsf@wireframe> <20230721202417.6kfmen37cc2h25ko@X-kone> <87wmy848d0.wl-hako@ultrarare.space> <878raoylyq.fsf@wireframe> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / 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: , Reply-to: Hilton Chain From: Hilton Chain via Bug reports for GNU Guix 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-Queue-Id: 9D5904AA54 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.15 X-Spam-Score: -5.15 X-TUID: mEOepq4CjCnM On Mon, 07 Aug 2023 04:06:37 +0800, Vagrant Cascadian wrote: > > [1 ] > 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... I have set the mode and size limit on them. Thank you so much! Otherwise I won't notice that... > 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. I have enough RAM for builds I currently do on my laptop and it's the builder for other systems, so tmpfs is fine for me. Thanks