[LU-14396] cache llapi_search_mounts() result Created: 25/Sep/18 Updated: 02/Feb/21 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | Lustre Manual Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
Both llapi_open_by_fid() and llapi_layout_get_by_path() call llapi_search_mounts() for each call, but will typically be called with the same parameters each time. It would be useful to have an in-memory (LRU, maybe even a single entry) cache for the results for a given query to avoid the overhead. |