From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CNPOI7Y/e2AaEAAAgWs5BA (envelope-from ) for ; Sat, 17 Apr 2021 22:06:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KNelHrY/e2DuZgAAB5/wlQ (envelope-from ) for ; Sat, 17 Apr 2021 20:06:14 +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 1102A193B4 for ; Sat, 17 Apr 2021 22:06:14 +0200 (CEST) Received: from localhost ([::1]:35240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXrCn-0004rp-9F for larch@yhetil.org; Sat, 17 Apr 2021 16:06:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXrCc-0004rU-2P for bug-guix@gnu.org; Sat, 17 Apr 2021 16:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXrCb-00054D-RY for bug-guix@gnu.org; Sat, 17 Apr 2021 16:06:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXrCb-0001k5-Ls for bug-guix@gnu.org; Sat, 17 Apr 2021 16:06:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47846: Feature Request: Add ability to disable having cache or generations Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 17 Apr 2021 20:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47846 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: bo0od , 47846@debbugs.gnu.org Received: via spool by 47846-submit@debbugs.gnu.org id=B47846.16186899096634 (code B ref 47846); Sat, 17 Apr 2021 20:06:01 +0000 Received: (at 47846) by debbugs.gnu.org; 17 Apr 2021 20:05:09 +0000 Received: from localhost ([127.0.0.1]:44725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXrBk-0001iw-Og for submit@debbugs.gnu.org; Sat, 17 Apr 2021 16:05:09 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:28785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXrBi-0001il-Gy for 47846@debbugs.gnu.org; Sat, 17 Apr 2021 16:05:07 -0400 Received: from nijino.local (194-96-9-9.adsl.highway.telekom.at [194.96.9.9]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4FN3vy3N0Dz3wV3; Sat, 17 Apr 2021 22:05:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1618689902; bh=R1+CXUAwlncGJDQXs8aOkvCpnM5gWDRyzj6j3snV9z8=; h=Subject:From:To:Date:In-Reply-To:References; b=MMvRUkdVkP6CV6CVjXTnRRPQjiaeH9hsIyOY+kHSLto5U8/6drQBkI1oG1CNQcfEG HmwbpCWIDbBA813e5Yp+TSJxkeV9Ykqkb+Kw0taCJBZWWtV4N4RIk2ByQKiUnm3cN5 ojiTMga4eUH3akagEvaARRxlXO7+wYafd6kXpKlQ= Message-ID: <34dd59bee8f503432a3eea3c55dde95a23ecc7f1.camel@student.tugraz.at> From: Leo Prikler Date: Sat, 17 Apr 2021 22:05:00 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618689974; 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: content-transfer-encoding:content-transfer-encoding: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=R1+CXUAwlncGJDQXs8aOkvCpnM5gWDRyzj6j3snV9z8=; b=CjRcTlPWlyQ+uOb+b0Guuz4gIoa8B+hDYIosPx1xtOds7MSME0odgJpXCw76EA+J1Nk2T/ rQbTiPHzkCfnS/oHxKdKIjkHEL0N1iCPbUYm9kGjJgfP6jxWQIHUecp8ap6g3q1AlBTaeJ IGL8iFK4anUpeh/BCtKWbvtNZ2QoEsEmTrE/HvyZX9mdRzcn6WrBUCWLG+4SadX8QaHwGr z/8mTcysFkbIAVdP1MDHbk3JArFLpHz6n41f5z+4fAiS8qaD/BZeGdqzV5ynLXnnjJxtKU FMML233zDQLVLzWlukTuJCAviDPThVAMsYFevNtZUI0vapqxFjv5e9PEUpUMUw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618689974; a=rsa-sha256; cv=none; b=XHmU8gpT66A4HQ6ANcfXBWSlyNOhYGlmGOqZDbt9oVm5muqAcfRIA7qn/X27OJqlU1tVMp PD3h2x1JedYBXvVERLB28Tc6+d6hy+A3Rr4t42YFAqqro/huTxwBJLy0ZVLkXJdN3viJZL fdnMPIj91zyuVvGrZBGeqkJC4j6Kz/cTP7EPpBQ6m2h0K5dia0bXbxrebCCV0gwYMavEEN 72045UF78lMCXk7n9T6iGCU/JjFCcbhCVWf5c2lO9Xls4h+tJE7NjB5tgFENYj2Tw293vw p7pSlviLrEi5JfIJqpynS4EqjXzitNjg9j+/+HERcBa6ZtWxwycFkLDreVsxqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=MMvRUkdV; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=MMvRUkdV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 1102A193B4 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9fR3NGXbz7Dh Hi, Am Samstag, den 17.04.2021, 18:29 +0000 schrieb bo0od: > Hi There, > > Current situation with the guix distro upgrade is:(as i understand) > > A) User Packages: whenever there is an upgrade to package A version 1 > to > new Version lets call it A version 2 , So the process is ADD A2 → > SWITCH > to A2 → Cache A1 and so on. > > B) System Packages: Same process but it will be saved through > generations There is no active caching going on. Besides potentially building software, the process of "upgrading" one generation of your Guix profile or system is simply the act of letting a symbolic link point elsewhere. Nothing more, nothing less. Each generation is itself a "root" in GC terms from the moment it is built. > This causes unpleasant actions to some users: > > - Bloating the disk size That's debatable. Now, yes, it is no secret, that Guix uses more disk space than your traditional software, as keeps copies of your old data around, but on a desktop with 500MB storage, you can keep several months of that around if you want to. Things might be a bit different on smartphones and embedded systems, which may want to GC more often, but it's not like minimal setups are impossible. > - Having old unnecessary files/packages Which is bad how? > - Questionable security of the saved old versions. As it depend if > they > have access to suid or not (i didnt investigate this, but if they > have > then thats big problem but this is not the ticket to discuss it) You would have to explicitly run those old, insecure versions, for them to be an attack surface, which I'd hazard you won't unless you're still actively using them anyway. Note that for the case, that the mere existence of those is a threat, you must assume your attacker to have arbitrary shell code execution already. > I know someone would jump in and say but roll back is great feature > and > its useful and....i know that but like i said might be not suiting > all > users (specially with limited space). Because it is. There are things larger than package generations. My current profile weighs 8.5GB according to du, much of which can be shared between generations. A typical anime episode encoded with x264 at 1080p weighs 1GB or more. So one season of your favourite show is literally more data than all of your software. > Current manual solution is to delete this extra mess using 2 > commands: > > guix gc -d 1s && sudo guix system delete-generation > > This should be run whenever there is no space left, Or to get rid of > the > old stuff Just FYI deleting all that so often only puts unnecessary stress on your disk, because native inputs will have to be redownloaded and you're not even freeing up that much space. > My suggestion is to have the ability to make Guix automatically just > having the latest up to date packages without extra consumed storage > (no > cache no generation no nothing more than having the latest packages > available in the distro). That's not very functional. Again, you're putting more stress on your hardware by actively asking it to remove stuff. Regards, Leo