Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache statistics #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Cache statistics #52

wants to merge 1 commit into from

Conversation

xmas79
Copy link

@xmas79 xmas79 commented Jul 7, 2015

Branched from 1.4.1 tag.

I implemented some stats for the upper filesystem block usage. For the entire filesystem (Yes! it will consume a lot of memory, 36 bytes per block in this implementation) we now track how many times each block has been read, and how many time it has been written. We also track the "cumulative" time between reads and writes, so in the output we can average them and gather some usage patterns.
I added also "collisions" and "replaces" in the hashtable implmementations.

TODO: Dump the usage stats (only used blocks just to shorten the output) and the hash collisions stats (better in another FUSE file?)

I implemented some stats for the upper filesystem block usage. For the entire filesystem (Yes! it will consume a lot of memory, 36 bytes per block in this implementation) we now track how many times each block has been read, and how many time it has been written. We also track the "cumulative" time between reads and writes, so in the output we can average them and gather some usage patterns.
I added also "collisions" and "replaces" in the hashtable implmementations.

TODO: Dump the usage stats (only used blocks just to shorten the output) and the hash collisions stats (better in another FUSE file?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant