开发者

When is OpenAFS cache cleared?

开发者 https://www.devze.com 2022-12-21 07:03 出处:网络
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 ac

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?


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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号