[LU-11404] improve fsync() and fdatasync() Created: 19/Sep/18  Updated: 11/Apr/23  Resolved: 11/Apr/23

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Upstream
Fix Version/s: Lustre 2.16.0

Type: Improvement Priority: Minor
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

workload like dd oflag=sync causes MDS_SYNC RPC on every write(2) syscall.

given the only things we store on MDS are file itself and layout it should be enough to send MDS_SYNC once (to sync file creation) and once for every layout change.

 



 Comments   
Comment by Alex Zhuravlev [ 03/Oct/18 ]

with https://review.whamcloud.com/#/c/33175/ :

SLOW=yes sh sanity-benchmark.sh the client got 6931 fsync() requests and 3362 (48.5%) were need to be sent to MDT.

Comment by Mikhail Pershin [ 20/Oct/22 ]

Is DoM a special case in that sense and need own handling?

Comment by Gerrit Updater [ 11/Apr/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/33175/
Subject: LU-11404 llite: only first sync to MDS matter
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1c8a49bedff274677594833cb4958027c6b338db

Comment by Peter Jones [ 11/Apr/23 ]

Landed for 2.16

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