From nobody Wed Sep 6 17:20:22 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RgpzV2dxHz4sGbV for ; Wed, 6 Sep 2023 17:20:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RgpzV081kz3YjC for ; Wed, 6 Sep 2023 17:20:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694020822; a=rsa-sha256; cv=none; b=sJB5gWAksnspSk3CEQGl/5v1O5BxNZXO2DLm9fztds2RoLl3ibFA7hCrDFfe2ev5laTIKQ OAISJb8ACDtUtPIsiBJBHAAWKNE46uydSUFdFPYpQCBQIyO3aqIQ/xGnTdpYmQU5Zg8dz2 05v2j38zFhoGZbv2KN5dGDbYRe4d7K+tQgnL1LGnPt2hq8Pf98nnRMSEV7ca4NXlKqJIEv prhevFsNQcsKXGyf7ZBAHWlaAKTNw9VRKh8VWWz48D7GODoz6KxyFQrjcW/s/eZqW/G3uy oxpFyWH6yxcUtXpSeuY5ktEEbgA96EEX+b99FZKDsDfKvKmsN+awv0ooKGjt2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694020822; h=from:from: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; bh=LzrN41kU1fO4e8jSdhEx1SbL3kjSCPiyKznbhH/IEfY=; b=jvmsYQw0T+vIud6IGNDLIE7TYHW8egpOKULk5v2Jqw0yPSBEL7O8fz2gx0LazodMfbJZdG hyFL2paZAohEeUxIlo/PEPkX2AQ1ijP1VngcJFKulJkfWCRWfDH63Hj+YUqPxmcDmd4+Qa la0L8ow97wYv3QXEcCPwZ8qsApYM3uM7wyDUCfygsen8S9cCo4lHoy9lNVKFGo2zALUHIO aKdyoarSA9FjW/9DGJ7x6C5XdHbZ2MoEy2x2akPfNhBhUp9wJj0jqBo8QyTbh/FXa3zsro E5D136qCanwaLZNJy4OkIT8munT//F4eyXSX6RCkFOHAw8+gLJDPgbNYWKR8ig== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RgpzT6DN2z9qX for ; Wed, 6 Sep 2023 17:20:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 386HKLPL029999 for ; Wed, 6 Sep 2023 17:20:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 386HKLb8029998 for bugs@FreeBSD.org; Wed, 6 Sep 2023 17:20:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 273601] freebsd-update fills up /var/db/freebsd-update/files and never cleans them Date: Wed, 06 Sep 2023 17:20:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: theraven@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273601 Bug ID: 273601 Summary: freebsd-update fills up /var/db/freebsd-update/files and never cleans them Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: theraven@FreeBSD.org There's a long forum thread about this going back almost 10 years: https://forums.freebsd.org/threads/is-it-safe-to-clean-var-db-freebsd-updat= e-files.45204/ FreeBSD update downloads files to /var/db/freebsd-update/files, which the m= an mage documents as the working directory for temporary files. It is *probab= ly* safe to delete them (seems to be consensus on the forum, but freebsd-update never does). Deleting them is non-trivial because it downloads a *huge* nu= mber of tiny files here.=20=20 I've seen UFS-based installs die because they run out of inodes for all of these files. ZFS installs don't, but on a small VM with an 8 GiB disk (tha= t's small now, yay for living in the future), I ran out of disk space with this= .=20 After pruning it a few months ago, it's grown to 1.2G. At the very lest, it would be great for someone to document *when* it is sa= fe to delete these things. Ideally, we'd use tmpfs for most of them (they're downloaded and then extracted immediately) and store the ones that are need= ed after reboot somewhere that persists and delete them after they're installe= d. I believe that they might be kept for freebsd-update rollback, but since 12.something freebsd-update has created ZFS boot environments (thank you whoever added that feature!) and so the rollback feature is not necessary on ZFS systems (and has never worked for me when I've tried it, but maybe I was just unlucky). --=20 You are receiving this mail because: You are the assignee for the bug.=