Article View: de.comp.os.unix.linux.hardware
Article #10Re: TRIM bei LUKS
From: Christian Garbs
Date: Tue, 20 Oct 2026 08:26
Date: Tue, 20 Oct 2026 08:26
41 lines
2672 bytes
2672 bytes
Mahlzeit! Marco Moock <mm@dorfdsl.de> wrote: > Bei SSDs (und auch anderen Speichern wie Storage-Arrays oder > SMR-Platten) gibt es TRIM-Kommandos, um dem Speichercontroller > mitzuteilen, dass bestimmte Sektoren leer sind (damit im Storage-Array > der Speicher woanders genutzt werden kann oder bei SSDs das > Wear-Leveling funktioniert). > > Funktioniert das auch bei LUKS, ZFS und Co.? > Also geben die das durch bis an die untere Ebene? ZFS kann das entweder manuell oder automatisch: - https://openzfs.github.io/openzfs-docs/man/master/7/zpoolprops.7.html#autotrim - https://openzfs.github.io/openzfs-docs/man/master/8/zpool-trim.8.html Das Debian Root on ZFS HOWTO hat seit Debian 11 Bullseye die Option autotrim=true mit in der Anleitung stehen. Ich habe spontan zwei Systeme bei mir gefunden, bei denen autotrim aus ist und eines mit autotrim=true. Das muss ich mal konsolidieren, danke für den Anstoß :) Unabhängig vom autotrim am Pool enthält das Debian-Paket zfsutils-linux den Cronjob /etc/cron.d/zfsutils-linux, der am ersten Sonntag im Monat /usr/lib/zfs-linux/trim ausführt (effektiv "# TRIM all healthy pools that are not already trimming as per their configs."), d.h. bei mir wird überall getrimmt. Dazu kann ich vermelden "läuft seit Jahren ohne Probleme" auf Consumer-Hardware im privaten Einsatz. Das hier ist zwar etwas älter, scheint aber auch zum Thema zu passen: - https://utcc.utoronto.ca/~cks/space/blog/linux/ZFSOnLinuxTrimNotes - https://utcc.utoronto.ca/~cks/space/blog/sysadmin/ZFSTrimUsefullnessQuestion -- ....Christian.Garbs....................................https://www.cgarbs.de Error in operator: add beer
Technical Details
Message-ID:
<11b78jl$1ior$1@yggdrasil.dn.cgarbs.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.cgarbs.de!yggdrasil.dn.cgarbs.de!.POSTED.localhost!not-for-mailReferences:
<11b5d0g$1pi6p$1@solani.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.cgarbs.de!yggdrasil.dn.cgarbs.de!.POSTED.localhost!not-for-mail
From: Christian Garbs <mitch@cgarbs.de>
Newsgroups: de.comp.os.unix.linux.hardware
Subject: Re: TRIM bei LUKS
Date: Tue, 20 Oct 2026 08:26:29 -0000 (UTC)
Organization: ya mine owne server
Message-ID: <11b78jl$1ior$1@yggdrasil.dn.cgarbs.de>
References: <11b5d0g$1pi6p$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 20 Oct 2026 08:26:29 -0000 (UTC)
Injection-Info: yggdrasil.dn.cgarbs.de; posting-host="localhost:127.0.0.1";
logging-data="51995"; mail-complaints-to="mitch@cgarbs.de"
User-Agent: tin/2.6.5-20250409 ("Helmsdale") (Linux/6.12.113+deb13-amd64 (x86_64))
Cancel-Lock: sha1:0HCR9KGayGtsLS8vulq8I92pcDA=