From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RDjOO-0008Hy-K4 for garchives@archives.gentoo.org; Tue, 11 Oct 2011 20:57:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 086DD21C13F; Tue, 11 Oct 2011 20:57:29 +0000 (UTC) Received: from postler.lichtfels.com (postler.lichtfels.com [78.46.92.195]) by pigeon.gentoo.org (Postfix) with ESMTP id 3E97A21C0E8 for ; Tue, 11 Oct 2011 20:56:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by postler.lichtfels.com (Postfix) with ESMTP id 95DA41429B for ; Tue, 11 Oct 2011 23:00:42 +0200 (CEST) Received: from postler.lichtfels.com ([127.0.0.1]) by localhost (postler.lichtfels.com [127.0.0.1]) (amavisd-maia, port 10024) with LMTP id 28663-05 for ; Tue, 11 Oct 2011 23:00:42 +0200 (CEST) Received: from hiro.oops.intern (mail.oops.co.at [213.129.238.225]) by postler.lichtfels.com (Postfix) with ESMTPA id 0A0C914297 for ; Tue, 11 Oct 2011 23:00:41 +0200 (CEST) Message-ID: <4E94AD7F.7050405@xunil.at> Date: Tue, 11 Oct 2011 22:56:31 +0200 From: "Stefan G. Weichinger" Organization: oops! User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] SSDs, ext4, fstrim, discard ... X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.2a X-Archives-Salt: X-Archives-Hash: fe2005c6d2224a4ad9d8549bd812edaf As mentioned in the systemd-posting I migrated back to an SSD today (on my main rig, the thinkpad uses an SSD happily for a long time now). A feature in a local magazine updated my knowledge of how to make use of the TRIM-command. It told me not to use the mount-option "discard" anymore, but run fstrim on the mountpoint frequently. OK, I learn ;-) But, AFAI understand, after trimming sectors/bytes on the filesystem/partition, they should be trimmed. I expect X bytes to be trimmed at first and if I repeat the command, I expect 0 (or something pretty low) bytes to be trimmed then, ok? This is what I wonder about: ~ # fstrim -v / /: 6195433472 bytes were trimmed ~ # fstrim -v / /: 6195433472 bytes were trimmed ~ # fstrim -v / /: 6195433472 bytes were trimmed I tested it with "discard" on and off. / is ext4, yes, and on an SSD, yup. Do I misunderstand things here? Thanks, Stefan