Community
cancel
Showing results for 
Search instead for 
Did you mean: 
IS2
Novice
3,312 Views

Trim command with SSD 400GB P3600

Jump to solution

Hello,

I have an Intel SSD DC P3600 PCIe device. I use ext4 fs and kernel 3.16.0-34 from ubuntu 14.04.2

I would like to ask two questions:

1. What is the preferred way to enable trim on this device -- with the "discard" mount option or using the scheduled "fstrim" command?

Or both?

2. If I issue the "fstrim" command, it returns almost immediately. I suppose the SSD device continues discarding after the "fstrim" returns.

How long (upper limit) can it take to trim 320GB or data, assuming that I did modified this data between discards?

$ sudo fstrim -v /mnt/intel_ssd/

/mnt/intel_ssd/: 322074972160 bytes were trimmed

Thank you

P.S.

Device details:

$ sudo isdct show -intelssd

- IntelSSD Index 0 -

Bootloader: 8B1B0129

DevicePath: /dev/nvme0n1

DeviceStatus: Healthy

Firmware: 8DV10130

FirmwareUpdateAvailable: Firmware=8DV10130 Bootloader=8B1B012D

Index: 0

ProductFamily: Intel SSD DC P3600 Series

ModelNumber: INTEL SSDPEDME400G4

SerialNumber: CVMD4381005E400AGN

Tags (1)
1 Solution
jbenavides
Honored Contributor II
862 Views

Hello NFN,

We reviewed your inquiry and have confirmed that with Intel® NVMe SSDs, the discard option when making your Linux filesystem should be turned off. The default extended option is not to discard blocks at filesystem level, retain this. The discard option is not needed an may actually have a performance impact.

You can find more information about this in the https://downloadcenter.intel.com/download/23929/Intel-Solid-State-Drive-Data-Center-Family-for-PCIe-... Intel® Linux* NVMe* Driver Reference Guide for Developers.

The best option is to run fstrim, you can actually schedule a cronjob to repeat this process periodically. Here is an external link that provides a good explanation about this:

*NOTE: This link is being offered for your convenience and should not be viewed as an endorsement by Intel of the content, products, or services offered there.

http://www.howtogeek.com/176978/ubuntu-doesnt-trim-ssds-by-default-why-not-and-how-to-enable-it-your... http://www.howtogeek.com/176978/ubuntu-doesnt-trim-ssds-by-default-why-not-and-how-to-enable-it-your...

When the TRIM command is executed, it passes the "deleted" file list to the SSD controller. Garbage collection then frees the usable space on the drive.

This process should be quick, especially if little was deleted. This will vary but is normally measured in minutes or less (Approximate time < 1 min on 400GB).

View solution in original post

3 Replies
jbenavides
Honored Contributor II
862 Views

Hello NFN,

We will check further on this and will provide further information soon.

Some of the settings commonly used with SATA SSD's may not apply to PCIe NVMe drives, we will confirm the details in order to provide you with an accurate recommendation.

jbenavides
Honored Contributor II
863 Views

Hello NFN,

We reviewed your inquiry and have confirmed that with Intel® NVMe SSDs, the discard option when making your Linux filesystem should be turned off. The default extended option is not to discard blocks at filesystem level, retain this. The discard option is not needed an may actually have a performance impact.

You can find more information about this in the https://downloadcenter.intel.com/download/23929/Intel-Solid-State-Drive-Data-Center-Family-for-PCIe-... Intel® Linux* NVMe* Driver Reference Guide for Developers.

The best option is to run fstrim, you can actually schedule a cronjob to repeat this process periodically. Here is an external link that provides a good explanation about this:

*NOTE: This link is being offered for your convenience and should not be viewed as an endorsement by Intel of the content, products, or services offered there.

http://www.howtogeek.com/176978/ubuntu-doesnt-trim-ssds-by-default-why-not-and-how-to-enable-it-your... http://www.howtogeek.com/176978/ubuntu-doesnt-trim-ssds-by-default-why-not-and-how-to-enable-it-your...

When the TRIM command is executed, it passes the "deleted" file list to the SSD controller. Garbage collection then frees the usable space on the drive.

This process should be quick, especially if little was deleted. This will vary but is normally measured in minutes or less (Approximate time < 1 min on 400GB).

View solution in original post

IS2
Novice
862 Views
Reply