Skip to contentSkip to conversation

TRIM Support?

DISCUSSION Gordan Bobic 3 participants 3 messages May 25, 2010 – May 26, 2010 2 messages not in the archive NILFS2 filesystem

lore
Share & tools
lore
#0 lore raw

Hi,

I notice that the pitch for NILFS is that it is particularly suitable for flash based media. Does it have any sort of support for TRIM command? If not, is there at least an equivalent of dumpfs that could be used to get the list of free blocks that could be passed to hdparm to issue TRIM commands to the SSD?

TIA.

Gordan
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

hi

At Tue, 25 May 2010 19:16:50 +0100,

Quoted 8 lines · Gordan Bobic

Hi,

I notice that the pitch for NILFS is that it is particularly suitable for flash based media. Does it have any sort of support for TRIM command? If not, is there at least an equivalent of dumpfs that could be used to get the list of free blocks that could be passed to hdparm to issue TRIM commands to the SSD?

You may want to specify discard mount option for the purpose. see Documentation/filesystems/nilfs2.txt

And if you want to see the usage of blocks, you can use combination of lssu and dumpseg to see which block numbers are in use.

thanks,

regards,

Quoted 10 lines

TIA.

Gordan
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Jiro SEKIBA <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 87ljb7bftn.wl%[email protected]

#4 lore raw
Quoted 7 lines · Jiro SEKIBA

hi

At Tue, 25 May 2010 19:16:50 +0100,

Quoted 3 lines · Gordan Bobic

Hi,

Quoted 8 lines
Quoted 5 lines

I notice that the pitch for NILFS is that it is particularly suitable for flash based media. Does it have any sort of support for TRIM command? If not, is there at least an equivalent of dumpfs that could be used to get the list of free blocks that could be passed to hdparm to issue TRIM commands to the SSD?

You may want to specify discard mount option for the purpose. see Documentation/filesystems/nilfs2.txt

FYI, the trim support ("-o discard") was merged at linux-2.6.34.

Cheers,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html