sbrk(2) broken

Dag-Erling Smørgrav des at
Fri Jan 4 01:33:02 PST 2008

Robert Watson <rwatson at> writes:
> The right answer is presumably to introduce a new LIMIT_SWAP, which
> limits the allocation of anonymous memory by processes, and size it to
> something like 90% of swap space by default.

Not a good solution on its own.  You need a per-process limit as well,
otherwise a malloc() bomb will still cause other processes to fail

> Since that won't be happening before 7.0, I believe the consensus is
> to simply not MFC the changes for 7 and proceed with the release.

Thank you :)

Dag-Erling Smørgrav - des at

More information about the freebsd-current mailing list