yandex-cloud / geesefs

Finally, a good FUSE FS implementation over S3
Other
693 stars 45 forks source link

memory leak while using with disk cache #117

Open eminden opened 4 months ago

eminden commented 4 months ago

Using version 0.41.1 observed memory leak while using with disk cache, my use case is like ~100 large files, no write, read only, disk cache is required because it doesn't fit into memory, files are read sequencially multiple times so no need to download from server again and again.

Running the app like

geesefs --endpoint https://s3.eu-central-1.wasabisys.com --memory-limit 10000 --debug_fuse --log-file /var/log/fuse.log --cache /mnt/cache-geesefs --debug_s3 bucket /mnt/fs

Process is OOMed while using more than 50GB of memory even though --memory-limit was set to 10GB.

[82382.375200] Out of memory: Killed process 178857 (geesefs) total-vm:53257300kB, anon-rss:52534840kB, file-rss:256kB, shmem-rss:0kB, UID:0 pgtables:102980kB oom_score_adj:1000

Apart from the memory leak, I see that there is no max cache size and disk eviction logic implementation yet, is there any ETA for this?

Thanks for the amazing work.