Re: [PATCH] fuse: enable large folios (if writeback cache is unused)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 13, 2025 at 1:20 AM Miklos Szeredi <miklos@xxxxxxxxxx> wrote:
>
> On Wed, 13 Aug 2025 at 01:02, Joanne Koong <joannelkoong@xxxxxxxxx> wrote:
>
> > My understanding of strictlimit is that it's a way of preventing
> > non-trusted filesystems from dirtying too many pages too quickly and
> > thus taking up too much bandwidth. It imposes stricter / more
> > conservative limits on how many pages a filesystem can dirty before it
> > gets forcibly throttled (the bulk of the logic happens in
> > balance_dirty_pages()). This is needed for fuse because fuse servers
> > may be unprivileged and malicious or buggy. The feature was introduced
> > in commit 5a53748568f7 ("mm/page-writeback.c: add strictlimit
>
> Hmm, the commit message says that temp pages were causing the issues
> that strictlimit is solving.  So maybe now that temp pages are gone,
> strictlimit can also be removed?

That sounds good to me but I think it's a bit unclear / ambiguous what
the limit for unprivileged servers should be (eg whether it should be
more conservative than that of privileged servers).
I think there's an argument to be made that strictlimiting wouldn't
deter a motivated malicious user, they could start up hundreds of
servers and pollute RAM that way.

Maybe one option is to disable strictlimiting by default but provide a
sysctl that admins can set to enforce default strictlimiting on all
unprivileged fuse servers?

Thanks,
Joanne

>
> Thanks,
> Miklos





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux