Re: [gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-13 Thread Stefan G. Weichinger
Am 12.10.2011 00:26, schrieb Stefan G. Weichinger: What is the benefit of running fstrim manually over mounting with discard? discard seems to slow down the fs by trimming all the time. I only report what I read. No tests done so far. Shouldn't discard be set to make TRIM work anyway, even

Re: [gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-12 Thread Stefan G. Weichinger
Am 2011-10-12 01:17, schrieb Alan McKinnon: You asked the drive firmware for a favour - to please check if anything can be discarded and if so to discard it. cue Mafia voice a la GodFather The firmware checked that it *could* discard X bytes and then figured well, maybe it will, maybe it

[gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-11 Thread Stefan G. Weichinger
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

Re: [gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-11 Thread Neil Bothwick
On Tue, 11 Oct 2011 22:56:31 +0200, Stefan G. Weichinger wrote: 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

Re: [gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-11 Thread Alan McKinnon
On Tue, 11 Oct 2011 22:56:31 +0200 Stefan G. Weichinger li...@xunil.at wrote: 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

Re: [gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-11 Thread Stefan G. Weichinger
Am 12.10.2011 00:05, schrieb Neil Bothwick: This seems in accordance with the fstrim man page: fstrim will report the same potential discard bytes each time, but only sectors which had been written to between the discards would actually be discarded by the storage device. Didn't see this

Re: [gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-11 Thread Stefan G. Weichinger
Am 12.10.2011 00:05, schrieb Alan McKinnon: Yes, you misunderstand how fstrim works. It's not up to you to say what it does exactly, it's up to the drive firmware and possibly the kernel. It's actually fully described in the man page right there in the part for option -v :-) So it only

Re: [gentoo-user] SSDs, ext4, fstrim, discard ...

2011-10-11 Thread Alan McKinnon
On Wed, 12 Oct 2011 00:28:03 +0200 Stefan G. Weichinger li...@xunil.at wrote: Am 12.10.2011 00:05, schrieb Alan McKinnon: Yes, you misunderstand how fstrim works. It's not up to you to say what it does exactly, it's up to the drive firmware and possibly the kernel. It's actually fully