cache: The system cannot find the file specified."}

log flooded with those errors, i have 150 gb free disk space

{“level”:“error”,“ts”:“2020-07-27T07:03:20.289+0300”,“msg”:“osOpen error”,“agent_id”:“DESKTOP-TF756HC_id”,“agent_name”:“DESKTOP-TF756HC”,“component”:“cache”,“subprocess_id”:2,“path”:“C:\Users\friuns\AppData\Local\UnityAccelerator\cache”,“error”:“open C:\Users\friuns\AppData\Local\UnityAccelerator\cache: The system cannot find the file specified.”}
{“level”:“error”,“ts”:“2020-07-27T07:03:20.313+0300”,“msg”:“not enough found to evict!”,“agent_id”:“DESKTOP-TF756HC_id”,“agent_name”:“DESKTOP-TF756HC”,“component”:“cache”,“subprocess_id”:2,“bytes evicted”:24553556,“files evicted”:9,“bytes left to evict”:27855611410}

The “bytes left to evict” of 27,855,611,410 indicates the issue, maybe. The default settings for eviction are to start evicting if free space drops below 5% or below 1,073,741,824 bytes and it will try to evict until 10% is free and at least 5,368,709,120 free.

If you have 150GB free and it wants to evict another ~25GB and, if it’s using the default settings, it wants to get to 10% free… 175GB is 10% of 1.7TB. I suppose if you have a 1.7TB drive and it dropped below 5% free, or ~88GB, that could trigger an eviction pass.

So, if you have large drive that is also shared by other programs that can fill and empty the disk, it might be causing this odd behavior.

I am just guessing based on the information I have though. But perhaps tweaking the settings you can get it to behave as desired. Here are the relevant config settings I can think of. You can see more with unity-accelerator config help

CacheMinFreeBytes             int      The minimum number of bytes to try to
                                       keep free. The cache will begin evicting
                                       items if the free space drops below this
                                       threshold.
CacheMinFreePercent           int      The minimum percentage of free space to
                                       try to uphold. The cache will begin
                                       evicting items if the percentage of free
                                       space drops below this threshold.
CacheEvictUntilFreeBytes      int      Once an eviction pass begins, this value
                                       will indicate when to stop evicting --
                                       when the free bytes meets or exceeds
                                       this value.
CacheEvictUntilFreePercent    int      Once an eviction pass begins, this value
                                       will indicate when to stop evicting --
                                       when the percent of free space meets or
                                       exceeds this value.
CacheMaxUsedBytes             int      The maximum number of bytes the cache
                                       should use. The cache will begin
                                       evicting items if the space used by the
                                       cache exceeds this threshold.
CacheMaxUsedPercent           int      The maximum percentage of disk space the
                                       cache should use. The cache will being
                                       evicting items if the percentage of
                                       space used by the cache exceeds this
                                       threshold.
CacheEvictUntilUsedBytes      int      Once an eviction pass begins, this value
                                       will indicate when to stop evicting --
                                       when the used bytes are less than or
                                       equal to this value.
CacheEvictUntilUsedPercent    int      Once an eviction pass begins, this value
                                       will indicate when to stop evicting --
                                       when the percentage of used space is
                                       less than or equal to this value.