Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu, btrfs: kbfs.block_cache.disk_max_fraction not working. #26260

Open
DiagonalArg opened this issue Feb 19, 2024 · 0 comments
Open

Ubuntu, btrfs: kbfs.block_cache.disk_max_fraction not working. #26260

DiagonalArg opened this issue Feb 19, 2024 · 0 comments

Comments

@DiagonalArg
Copy link

DiagonalArg commented Feb 19, 2024

I've got a btrfs RAID1 device on Ubuntu 22.04, with only ~49GiB free.

$ sudo btrfs fi show /
Label: none  uuid: <...>
        Total devices 2 FS bytes used 407.45GiB
        devid    1 size 476.92GiB used 428.03GiB path /dev/mapper/luks.root.1
        devid    2 size 476.92GiB used 428.03GiB path /dev/mapper/luks.root.2

kbfs is using 20G for the cache:

$ pwd
/home/user/.local/share/keybase/kbfs_block_cache
$ du -sh .
20G     .

That's a lot more than 10% of the free space. To try to get some of that back, I:

keybase config set -f kbfs.block_cache.disk_max_fraction 0.05

and then restarted keybase, to no effect. Even setting it to 0.01 had no effect. I'm using constrained mode:

{
    "current_user": "xxxxx",
    "kbfs": {
        "block_cache": {
            "disk_max_fraction": 0.05
        },
        "mode": "constrained"
    },
    "mountdir": "/run/user/1000/keybase/kbfs",
    "mountdirdefault": "/run/user/1000/keybase/kbfs",
    "users": {
        "xxxxx": {
            <...>
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant