Correct estimation of overhead of statCache entries #1526
gargnitingoogle
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Source of discussion: #1514 (comment)
Source code:
gcsfuse/internal/cache/metadata/stat_cache.go
Line 77 in 02b9f18
This is primarily about the average per-entry size of the statCache structure (
gcsfuse/internal/cache/metadata/stat_cache.go
Line 65 in 02b9f18
gcs.Object
structure pointed to by the entry structure.sizeof(entry) + sizeof(gcs.Object)
a good-enough approximation, or is more needed to be considered for this estimation?gcs.Object
structure and just have it atnil
. So, theSize()
function is overestimating for size for such cases. Is there any way to account for it?Beta Was this translation helpful? Give feedback.
All reactions