Skip to content

Commit

Permalink
force cleanup is RAM is filled more than 90%
Browse files Browse the repository at this point in the history
  • Loading branch information
activesoull committed Apr 27, 2024
1 parent 3d80cfe commit 58c255a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeplake/core/storage/lru_cache.py
Expand Up @@ -418,7 +418,7 @@ def _free_up_space(self, extra_size: int):
"""
while self.cache_used > 0 and (
extra_size + self.cache_used > self.cache_size
or psutil.virtual_memory().percent > 95
or psutil.virtual_memory().percent > 90
):
self._pop_from_cache()

Expand Down

0 comments on commit 58c255a

Please sign in to comment.