From nobody Tue Apr 9 21:57:22 2024 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 4VDfvQ3XK7z5G5l1 for ; Tue, 9 Apr 2024 21:57: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 4VDfvQ2NMqz57rx for ; Tue, 9 Apr 2024 21:57:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712699842; a=rsa-sha256; cv=none; b=tQRO7ft0kfstua3BkW22nLCwpWFWHSUUQroi05Pa+ea/i4Zfzr+A6mCPBTZO8BQ8gX3dV3 b+XQURGJhf6xxMngmgAYd8+Ul+DOC6Dd1HelHUSTwo1lIpRyawMM5qZqvkRaDDxyYiPtgr yHemAZ1j/v/lCh90E8ScDLoz+y9SAVpd0/IOwK3F3K7uTcv24d3oyo9RRx/oiv0e8KVTZH 6Gf6f8R/dlyyd//7lv6KXNZCB/6NiyZYHs6WLumHhAQYMVG+Db6pCRoYnuiHSTqh89DCrV vxcnJJsH/H9l1aUEEBWLSSXs0e00bOOq/76L1oalhtG7jKv+8ybmXcTlH++q1g== 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=1712699842; 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: in-reply-to:in-reply-to:references:references; bh=KcCpcxxRQSxR45hVpNlSdpxAty64VZqZU1ADlrJ8fiA=; b=SuySaHPykXrlgNOTikrGhkC4qsLSPPX5b7PwgdF/62vzB2RYvDJPUr+QzVGWExa9+olvaH U8M1Hm4WBRPcr5X2iRBM1/CytkcT5tBi/4/RfC3V0gjy/17/A9ReDENoOjaE+3v9k0d8kQ SWqDZFLslkSYBvDW6rIOyZ70AJHDcK0pc7+zCb1tEnEmj6+q6LfWkQkqzFxPOJGS+B6vMd 0HZvDjMyxQPP9GFzcf4zgzJ5qArNhH6lASoUQCJe+c8rW3wScGoDCcC8ucKjpiwDlfYbF+ nWwMXr01Djqt7jxH7bEL3PpkF7KUFXBxdUizsiQYZ2yZgBqE1kGSRs95HMlJzw== 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 4VDfvQ1sv4z19GC for ; Tue, 9 Apr 2024 21:57:22 +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 439LvM97012914 for ; Tue, 9 Apr 2024 21:57:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 439LvMoJ012913 for bugs@FreeBSD.org; Tue, 9 Apr 2024 21:57:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 275965] periodic: add a daily zfs trim Date: Tue, 09 Apr 2024 21:57:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@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: Message-ID: In-Reply-To: References: 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: freebsd-bugs+owner@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275965 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D493908c4b45c7b75e4a6b4aea3b5b63ea= 5c268d5 commit 493908c4b45c7b75e4a6b4aea3b5b63ea5c268d5 Author: Lexi Winter AuthorDate: 2024-04-09 21:49:56 +0000 Commit: Warner Losh CommitDate: 2024-04-09 21:55:11 +0000 periodic/daily/801.trim-zfs: Add a daily zfs trim script As mentioned in zpoolprops(7), on some SSDs, it may not be desirable to use ZFS autotrim because a large number of trim requests can degrade disk performance; instead, the pool should be manually trimmed at regular intervals. Add a new daily periodic script for this purpose, 801.trim-zfs. If enabled (daily_trim_zfs_enable=3DYES; the default is NO), it will run a 'zpool trim' operation on all online pools, or on the pools listed in 'daily_trim_zfs_pools'. The trim is not started if the pool is degraded (which matches the behaviour of the existing 800.scrub-zfs script) or if a trim is already running on that pool. Having autotrim enabled does not inhibit the periodic trim; it's sometimes desirable to run periodic trims even with autotrim enabled, because autotrim can elide trims for very small regions. PR: 275965 MFC after: 1 week Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/956 share/man/man5/periodic.conf.5 | 11 ++++- usr.sbin/periodic/etc/daily/801.trim-zfs (new +x) | 59 +++++++++++++++++++= ++++ usr.sbin/periodic/etc/daily/Makefile | 3 +- usr.sbin/periodic/periodic.conf | 5 ++ 4 files changed, 76 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=