[LU-17426] parallel cross-directory rename of regular files on single MDT Created: 16/Jan/24 Updated: 04/Feb/24 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.14.0, Lustre 2.16.0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | Lai Siyao |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | performance | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Severity: | 3 | ||||||||||||||||||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||||||||||||||||||
| Description |
|
It should be possible to allow cross-directory rename of regular files (strictly, any non-directory) on the same MDT without holding the BigFilesystemLock (BFL), as file renames cannot change the directory hierarchy. That should improve the performance for these rename operations, and reduce contention between local MDT file renames in different parts of the directory tree. That would leave directory and cross-MDT renames needing the BFL, which should be an increasingly small fraction of all rename operations. |
| Comments |
| Comment by Oleg Drokin [ 16/Jan/24 ] |
|
the case of renaming a file into itself just because the source and target directory are the same due to a race condition need to be considered I imagine. |
| Comment by Gerrit Updater [ 18/Jan/24 ] |
|
"Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53726 |
| Comment by Gerrit Updater [ 19/Jan/24 ] |
|
"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53738 |
| Comment by Gerrit Updater [ 04/Feb/24 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/53726/ |