Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache

From: Miklos Szeredi
Date: Thu Aug 09 2018 - 04:30:27 EST


On Thu, Aug 9, 2018 at 9:31 AM, åçç <liushuoran@xxxxxx> wrote:
> Thank you for the prompt reply.
>
> I tried this config, but still can get balance_dirty_pages triggered.

I think it may be due to BDI_CAP_STRICTLIMIT used by fuse. If you
remove that setting from fuse in the kernel you should not be getting
the balance_dirty_pages() as often.

Not sure if that's the realproblem, though, that depends on how much
time is spent in balance_dirty_pages(). You can try profiling the
kernel to find that out.

My guess is that the real cause of the slowdown is some other place.
There's for example a known issue with selinux related getxattr
thrashing. Disabling getxattr on your filesystem may significantly
improve performance.

Thanks,
Miklos