Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2023 05:50:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275436] tmpfs does not honor memory limits on writes
Message-ID:  <bug-275436-227-L7wp6rmDWY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275436-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275436

--- Comment #11 from Konstantin Belousov <kib@FreeBSD.org> ---
So what would happen if swap is added or removed?

This cannot handle situation when a program allocates anon memory.  And by
default we do not enforce any limits on anon memory use (swap accounting).
We do not even disable overcommit.

I do not object (strongly) against the patch, but for me the introduced
restriction looks very arbitrary.  I might go as far as to propose to add
a verbosity to kernel to announce this limit in
tmpfs_set_reserve_from_percent().

If you intend to commit the patch, please put it on phab, I have several
trivial notes about code.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275436-227-L7wp6rmDWY>