public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] SSDs, ext4, fstrim, discard ...
@ 2011-10-11 20:56 Stefan G. Weichinger
  2011-10-11 22:05 ` Alan McKinnon
  2011-10-11 22:05 ` Neil Bothwick
  0 siblings, 2 replies; 8+ messages in thread
From: Stefan G. Weichinger @ 2011-10-11 20:56 UTC (permalink / raw
  To: gentoo-user


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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-10-13 21:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-11 20:56 [gentoo-user] SSDs, ext4, fstrim, discard Stefan G. Weichinger
2011-10-11 22:05 ` Alan McKinnon
2011-10-11 22:28   ` Stefan G. Weichinger
2011-10-11 23:17     ` Alan McKinnon
2011-10-12  7:59       ` Stefan G. Weichinger
2011-10-11 22:05 ` Neil Bothwick
2011-10-11 22:26   ` Stefan G. Weichinger
2011-10-13 21:12     ` Stefan G. Weichinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox