Re: Re: TRIM support for ext4

2013-08-11 Thread Luk Claes
> On Mon, Mar 12, 2012 at 12:04:52AM +, Miguel Figueiredo wrote: >> Hi all, Hi >> Add the mount option 'discard' for ext4 filesystems so, during >> partitioning, TRIM can be activated for SSDs in the installed >> system. > > I enabled that on ext4 on my SSD, and had two lockups in 24 hours. >

Re: TRIM support for ext4

2012-03-12 Thread Lennart Sorensen
On Mon, Mar 12, 2012 at 12:04:52AM +, Miguel Figueiredo wrote: > Hi all, > > Add the mount option 'discard' for ext4 filesystems so, during > partitioning, TRIM can be activated for SSDs in the installed > system. I enabled that on ext4 on my SSD, and had two lockups in 24 hours. No lockups s

Re: TRIM support for ext4

2012-03-12 Thread Joey Hess
Floris Bos / Maxnet wrote: > Hmm, and to make things more complicated. > The RELEASE-NOTES that come with the e2fsprogs source say that the > default is what you put in mke2fs.conf That's for an older version. int discard = 1;/* attempt to discard device before fs creation */

Re: TRIM support for ext4

2012-03-12 Thread Joey Hess
Miguel Figueiredo wrote: > On 12-03-2012 04:55, Joey Hess wrote: > > >I had the impression that there was going to be some sort of automatic > >detection in the kernel of appropriate devices and that trim would be > >automatically enabled for them. Is it not going to play out that way? > > Just a

Re: TRIM support for ext4

2012-03-12 Thread Miguel Figueiredo
Hi, On 12-03-2012 04:55, Joey Hess wrote: I had the impression that there was going to be some sort of automatic detection in the kernel of appropriate devices and that trim would be automatically enabled for them. Is it not going to play out that way? Just adds the mount option to partman.

Re: TRIM support for ext4

2012-03-12 Thread Floris Bos / Maxnet
On 03/12/2012 07:58 AM, Floris Bos / Maxnet wrote: On 03/12/2012 07:51 AM, Joey Hess wrote: Floris Bos / Maxnet wrote: In addition to that, it would also be nice if the "-E discard" option is passed to mkfs.ext4, so that it TRIMs the entire disk partition prior to creating the file system struc

Re: TRIM support for ext4

2012-03-11 Thread Floris Bos / Maxnet
On 03/12/2012 07:51 AM, Joey Hess wrote: Floris Bos / Maxnet wrote: In addition to that, it would also be nice if the "-E discard" option is passed to mkfs.ext4, so that it TRIMs the entire disk partition prior to creating the file system structures. -E discard is the default, according to mkfs

Re: TRIM support for ext4

2012-03-11 Thread Joey Hess
Floris Bos / Maxnet wrote: > In addition to that, it would also be nice if the "-E discard" > option is passed to mkfs.ext4, so that it TRIMs the entire disk > partition prior to creating the file system structures. -E discard is the default, according to mkfs.ext4(8) -- see shy jo signature.a

Re: TRIM support for ext4

2012-03-11 Thread Joey Hess
Miguel Figueiredo wrote: > Add the mount option 'discard' for ext4 filesystems so, during > partitioning, TRIM can be activated for SSDs in the installed > system. I had the impression that there was going to be some sort of automatic detection in the kernel of appropriate devices and that trim wo

Re: TRIM support for ext4

2012-03-11 Thread Floris Bos / Maxnet
On 03/12/2012 01:04 AM, Miguel Figueiredo wrote: Add the mount option 'discard' for ext4 filesystems so, during partitioning, TRIM can be activated for SSDs in the installed system. I assume the patch only adds discard as mount option to /etc/fstab? In addition to that, it would also be nice

TRIM support for ext4

2012-03-11 Thread Miguel Figueiredo
Hi all, Add the mount option 'discard' for ext4 filesystems so, during partitioning, TRIM can be activated for SSDs in the installed system. -- Melhores cumprimentos/Best regards, Miguel Figueiredo diff --git a/debian/partman-basicfilesystems.templates b/debian/partman-basicfilesystems.templa