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

Can't evict chunks from cache #3122

Closed
mharvey-jt opened this issue Dec 1, 2022 · 2 comments
Closed

Can't evict chunks from cache #3122

mharvey-jt opened this issue Dec 1, 2022 · 2 comments
Assignees
Milestone

Comments

@mharvey-jt
Copy link
Contributor

mharvey-jt commented Dec 1, 2022

Context: We have a process that runs on each CVMFS client that reads a database file that is changed on every repo update. When the client has been idle for some time, and repo updates have been frequent, the useful cache contents get pushed out by accumulated database chunks. We'd like to explicitly evict these as soon as the processing is complete to prevent cache poisoning.
It appears that its is not possible to explicitly evict a chunked file via the cvmfs_talk socket interface.

# cvmfs_talk -i REPO cache list  | grep '/.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite'
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite
Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite

# cvmfs_talk -i REPO  evict '/.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite'
No such regular file

# cvmfs_talk -i REPO  evict 'Part of /.cvmfs/snapshots/generic-2022-11-30T19:57:13Z/metadata.sqlite'
No such regular file

Desired behaviour:

cvmfs_talk -i REPO  evict '/file'

evicts all Part of /file chunks from cache

@jblomer
Copy link
Member

jblomer commented Dec 2, 2022

Indeed, that was never implemented. Should be easy to add. The manual eviction is hardly ever used, I think. Is it part of your regular workflow? If so, we may rather want to tune the automatic cache eviction.

@mharvey-jt
Copy link
Contributor Author

See PR #3129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants