-
Notifications
You must be signed in to change notification settings - Fork 207
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
WIP fscache: blob gc feature for fscache with inuse and cull #518
base: master
Are you sure you want to change the base?
Conversation
When reclaiming the data blob files, we should also reclaim the associated chunk map state file. |
If we only reclaim unused blob, is it necessary to reclaim the chunk map state? Does the chunk map state contains unused blob?
|
@yawqi , Your pull request has been updated. A new test job has been submitted. Please wait in patience. |
@yawqi , Test job has been submitted. Please wait in patience. |
@yawqi , The CI test is completed, please check result:
Congratulations, your test job passed! |
The chunk map is used to track chunk readiness for blob files. If the stale chunk map if left over and when the blob is used again, the fscache driver will send READ request as expected, but the nydusd won't fetch data from remote and write data to the new blob file because the chunk map file says all chunks are ready. |
Filesystem |
IMHO, It won't. I use |
OK, I will fix it first. |
Sorry to bother you, but I wonder whether it is ok if I just delete the corresponding |
Actually, Should I just delete the |
I think I'm gonna add a |
blob.meta is a const file, should be small, and affect container startup time. So it would be better to keep it. |
I am thinking that adding another flag
Or should I go with the nydus-snapshotter way? |
I like this way:) |
Add blob gc for fscache by using `inuse` and `cull`, this implementation reference the implementation of the `cachefilesd`, but since we use ondemand mode, so it's sightly different. The gc watermark for now is 95% used blocks or 95% used files, in the future, we need to change it configurable. Signed-off-by: Qi Wang <[email protected]>
Signed-off-by: Qi Wang <[email protected]>
@yawqi , your pull request has been updated. A new test job will be submitted. Please wait in patience. |
@yawqi , your test job has passed, and no need to test again. |
Seems something gets wrong with CI,could you please help to retrigger the CI? |
Signed-off-by: Qi Wang <[email protected]>
I am currently occupied by the school affairs, is it ok if I close this PR temporarily? After these two months when I have passed the mid-term of my graduation project, I will have more time to work on this. Much thanks! |
Let‘s just keep it open:) |
@yawqi Hi, how about your dealing with this problem? |
@adamqqqplay Sorry about that, I kinda forget about this PR, is this feature still needed? It seems there is a discussion about this feature last year, so I didn't work on it since then. I apologize for my delay. Should I keep on working on this feature or close it? |
@yawqi I found a similar PR #894, but I'm not sure if it has the same feature. Could you please confirm it if you have time? |
It seems that this feature has been implemented in the nydus-snapshotter, maybe this PR should be closed? |
why we need to bother with whether close it or not? |
This patch is still working in progress, hasn't been tested at all, very likely to have bugs or even errors.
Does anyone have suggestions on how can I test it?
Add blob gc for fscache by using
inuse
andcull
,this implementation reference the implementation of the
cachefilesd
,but since we use ondemand mode, so it's sightly different.
The gc watermark for now is 95% used blocks or 95% used files,
in the future, we need to change it configurable.
#454
Signed-off-by: Qi Wang [email protected]