OOM problem?
Warner Losh
imp at bsdimp.com
Sat Dec 9 00:44:54 UTC 2017
On Fri, Dec 8, 2017 at 5:28 PM, Don Lewis <truckman at freebsd.org> wrote:
> On 8 Dec, Larry McVoy wrote:
> > On Fri, Dec 08, 2017 at 12:15:43PM +0200, Konstantin Belousov wrote:
>
> >> A process waiting for a page in the fault handler must receive the page
> >> to get out of the handler, even if the system is in OOM.
> >
> > I may be confusing you because this is not the normal page fault on a
> file
> > code path (at least I think it is not). The process is indeed faulting
> > in pages but they are pages that were allocated via whatever malloc calls
> > these days (in SunOS it mmapped /dev/zero, before that it was sbrk(2),
> > I dunno what FreeBSD does, I couldn't find malloc in src/lib, I see that
> > it's jemalloc but /usr/src/lib/libc/stdlib/jemalloc has no files?)
>
> /usr/src/contrib/jemalloc
>
For software we include from another source, we put the main sources in
src/contrib/<mumble> and use .PATH and other tricks to reach over into the
tree to compile it. Only the FreeBSD specific parts are in the main tree,
and in this case that's just a Makefile.
Warner
More information about the freebsd-hackers
mailing list