Bug 236136 - [FUSE]: reuse cached inode entries
Summary: [FUSE]: reuse cached inode entries
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Alan Somers
Depends on: 235773 235775
  Show dependency treegraph
Reported: 2019-03-01 18:18 UTC by Alan Somers
Modified: 2019-03-01 18:40 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer 2019-03-01 18:18:56 UTC
FUSE includes a mechanism for the daemon to instruct the kernel to cache file attributes, inode values, or both.  Currently fuse(4) ignores the cached inodes.  We should make use of them, to improve the performance of VOP_LOOKUP operations on fuse filesystems.
Comment 1 Conrad Meyer freebsd_committer 2019-03-01 18:35:39 UTC
Some of this was implemented in r344183 and r344184, but shortcomings remain; tracked in:

1. Real timeout support: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235773
2. Using valid cached values: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235775
Comment 2 Alan Somers freebsd_committer 2019-03-01 18:40:40 UTC
You're right; I made a mistake in my test function when I wrote this bug.  Caching inode entries already works.  The only broken part is expiring old cache entires, and you already have a bug open for that.