Open kklash opened 6 years ago
@kklash: as explained here under the "Local disk usage policy" section, we keep up to 20 GB of blocks, depending on the free space of your drive. If you use more of the drive, we will shrink that cache automatically if KBFS is running.
We cache all blocks you've even seen, including from team and public folders, and past blocks from old versions of the files in some cases.
I think we should re-consider the block storage. I have Kebyase on my laptop, I uploaded some files and deleted them. Now I have only like 400MB file but kbfs_block_cache eats almost 6GB on my hard drive. I'll try @strib solution to clean is up manually but sure it should remove blocks from the files what don't exists anymore. Btw. it's Windows 10 machine.
@adi-dev recently we did add something that cleans up the blocks from old files that have been deleted, and old versions of files. But I think it only works going forward I think, not for old blocks from before that version was released. So it might be the case that a single manual cleanup will fix things for you.
Old .ldb's not being cleaned up. I made a backup, removed the old ones, relaunched keybase and everything still running normally.
As a sidenote, why are these DBs so big when I only have 17mb of files in my KBFS? (currently, had more before)
If there's any extra debugging information I can provide, just let me know!