[ltp] Re: SSD for a X220?

Martin Steigerwald linux-thinkpad@linux-thinkpad.org
Sat, 14 May 2011 09:04:12 +0200


--nextPart8542468.Dx1VMbJiqA
Content-Type: Text/Plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable

Am Donnerstag, 5. Mai 2011 schrieb Stefan Monnier:
> >> > My attempt to summarize: use TRIM when you're reformatting a
> >> > drive, otherwise it's an extra cost with no benefits for any
> >> > realistic usage pattern.
> >>=20
> >> Indeed, he advocates for doing trims in something like a weekly
> >> cron job.
> >> So the question now is: what tool can I use to weekly trim my
> >> ext3-on-LVM filesystems?
> >=20
> > Package fstrim in Debian, recently merged into util-linux-ng.
>=20
> Thanks.  I had found wiper.sh in the past (which doesn't seem to
> support LVM) but fstrim escaped me.  My quick test seems to indicate it
> still doesn't work for ext3-over-lvm with kernel 2.6.36.3 (I get
> Inappropriate ioctl for device).

As I had a Lifebook S751 with Toshiba SSD it didn't work with Ext4 boot=20
device without LVM and with BTRFS on LVM. But nice idea that it might be=20
the LVM layer in between causing that it doesn't work. But then I thought=20
Ext4 as of kernel 2.6.38 would support fstrim too. Well there has been a=20
different error message for the Ext4 case that I do not remember anymore.

> A related issue is "lvm-trim" (to trim the part of the disk that's not
> used by any logical volume).  As well as "swap-trim" to trim the unused
> part of a swap file/partition.

Quite some stuff to trim ;)

Ciao,
=2D-=20
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

--nextPart8542468.Dx1VMbJiqA
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEABECAAYFAk3OKW0ACgkQmRvqrKWZhMcoNgCePr2Y11Z5JEhEfo9BMbcxBjDw
OrgAoL1nprzb77WlQeq0vKbBtdwbcn8L
=18JP
-----END PGP SIGNATURE-----

--nextPart8542468.Dx1VMbJiqA--