OpenAFS 缓存何时清除?
假设我有一群用户,他们都访问同一组文件,并且具有权限系统:anyuser。 User1 登录并访问一些文件,然后注销。当 User2 登录并尝试访问相同的文件时,缓存会为这些文件提供服务,还是会在用户之间清除?
Let's say I have a bunch of users who all access the same set of files, that have permission system:anyuser. User1 logs in and accesses some files, and then logs out. When User2 logs in and tries to access the same files, will the cache serve the files, or will it be cleared between users?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
缓存应该为文件提供服务(在上面的示例中)。
文件在 OpenAFS 缓存管理器中保留的时间取决于客户端的配置方式,变量包括配置的缓存大小、是否启用 memcache 功能以及客户端的“繁忙”程度。
如果启用 OpenAFS memcache(存储在 RAM 中的缓存块),则缓存将在重新启动时清除。使用更传统的磁盘缓存,缓存可以在重新启动后持续存在。除此之外,文件仍遵循相同的基本规则保留在缓存中。缓存是一个固定大小的堆栈,最近访问的文件保留在缓存中,当请求新文件时,旧文件将根据需要清除。
更多详细信息请参阅 OpenAFS wiki:
http://wiki.openafs.org/
The cache should serve the files (in the example above).
How long a file will persist in the OpenAFS cache manager depends on how the client is configured, variables include the configured size of the cache, whether or not the memcache feature is enabled, and how "busy" the client is.
If OpenAFS memcache (cache chunks stored in RAM) is enabled, then the cache is cleared upon reboot. With the more traditional disk cache, the cache can persist across reboots. Aside from that key difference files persist in the cache following the same basic rules. The cache is a fixed size stack, recently accessed files stay in the cache and older files are purged as needed when newer files are requested.
More details are available in the OpenAFS wiki:
http://wiki.openafs.org/