[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: TRIM support with XFS



On Mon, Jul 1, 2013 at 12:05 AM, Stan Hoeppner <stan@hardwarefreak.com> wrote:
> Hmm...
>
> Last thing to try is rootflags.  To your kernel line in menu.lst add
>
> root=/dev/sdXX rootflags=discard ro

Thanks. I tried that as well but it still doesn't work.

Just to be sure I created a file with random data, read the sectors
with hdparm and then removed the file and did a flush. If discard was
active the sector should be zeroed out. It was however still there
after a sync, and also after waiting an hour just in case.

> If that doesn't do it maybe there's a bug here.

It sounds like that.

I took a look at the xfs source code in the kernel tree. It looks like
the discard code is simply never called except for when there's an
ioctl call. I guess that's what fstrim triggers. But from what I could
see there's no realtime support in kernel right now. I guess I should
go with ext4 for now.

John


Reply to: