forked from daos-stack/daos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOS-14073 dfuse: Move writeback caching from kernel to dfuse. (daos-…
…stack#12729) Have dfuse implement write-back caching rather than relying on the kernel. Having the kernel do this means that the kernel assumes that it is the single point of truth for both file size and mtime so it will disregard any updates from dfuse which makes working across multiple clients very difficult. This change removes the kernel flag allowing it to perform writeback caching but rather if enabled at the dfuse level then dfuse will acknowledge writes to the kernel before daos/dfs has acknowledged them on the backend. This gives better performance in the (default) writeback case as it means the kernel does not make a setattr call to update the mtime after every write and it re-instates same semantics where the kernel will handle updates from other clients correctly. The kernel writeback cache would also perform write coalescing of smaller writes into larger ones, and dfuse no longer gets the benefit of that, this is something we need to add back into dfuse as part of future work. Signed-off-by: Ashley Pittman [email protected]
- Loading branch information
1 parent
fb332b2
commit 4568c2d
Showing
6 changed files
with
102 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters