[LU-11355] Add Lustre trim support Created: 10/Sep/18  Updated: 04/Apr/20  Resolved: 30/Apr/19

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.13.0, Lustre 2.12.3

Type: Improvement Priority: Minor
Reporter: Wang Shilong (Inactive) Assignee: Wang Shilong (Inactive)
Resolution: Fixed Votes: 0
Labels: patch, ssdopt

Issue Links:
Related
is related to LU-137 ioctl passthrough mechanism for Lustr... Resolved
is related to LU-10410 Verify fstrim functionality on MDT Reopened
Rank (Obsolete): 9223372036854775807

 Description   

Similar idea of fstrim, use SSD as backend of Lustre filesystem might have performances
drop with gc running in the background.

We have mount option '-o discard'(etc) for ldiskfs to trigger discard automatically
whenever filesystem free some space, but as our benchmarking this could
introduce latency too, and also this is somehow out of control.

So it is desirable for administrators to do trim manually, for example
doing trim if system are idle.



 Comments   
Comment by Gerrit Updater [ 10/Sep/18 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/33131
Subject: LU-11355 lustre: add lustre trim device support
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 45cde02b17b77bcd230f2b083d6f91d5687717ca

Comment by DELBARY Gael [ 19/Dec/18 ]

Hi,

Nice job, agree it will be very useful to have this feature.

 

Comment by Gerrit Updater [ 11/Apr/19 ]

Wang Shilong (wshilong@ddn.com) uploaded a new patch: https://review.whamcloud.com/34636
Subject: LU-11355 lustre: add lustre trim device support
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e768efa6a77bff54cb60271b77d3c3e8cc0f5173

Comment by Gerrit Updater [ 30/Apr/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33131/
Subject: LU-11355 lustre: enable fstrim on lustre device
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: d5be104cc9b0c7a71b30aa5feb16873aa30803a9

Comment by Peter Jones [ 30/Apr/19 ]

Landed for 2.13

Comment by Gerrit Updater [ 11/Jun/19 ]

Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35196
Subject: LU-11355 lustre: enable fstrim on lustre device
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 83f29e0886f4bf4592ef1b4c21ecedae32bbc1ea

Comment by Gerrit Updater [ 25/Jun/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35196/
Subject: LU-11355 lustre: enable fstrim on lustre device
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: a1ccd957f0667398a1685dd1932bf35153a7f160

Generated at Sat Feb 10 02:43:09 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.