Skip to content

Cache folder size keep increasing even max-cache-size exceeded #1389

Open
@nguyenminhdungpg

Description

@nguyenminhdungpg

Mountpoint for Amazon S3 version

mount-s3 1.16.2

AWS Region

No response

Describe the running environment

N/A

Mountpoint options

N/A

What happened?

I have max-cache-size is around 400000 MiB. My traffics to read file is too high so when cache folder size exceeds the max-cache-size, it keeps increasing.
I guess the cause is in the logic: "By default, Mountpoint will limit the maximum size of the local cache such that the free space on the file system does not fall below max-cache-size, and will automatically evict the least recently used content from the local cache when caching new content." If the item evicted is smaller than the new cache content, the cache folder continue to increasing its size.

I wonder what will happen if the cache folder size exceeds available size of the disk? Will the mount-s3 crash or mal-function in that case because of cache failure?

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions