Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Dec 2017 17:44:51 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Don Lewis <truckman@freebsd.org>
Cc:        Larry McVoy <lm@mcvoy.com>, Konstantin Belousov <kostikbel@gmail.com>,  "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: OOM problem?
Message-ID:  <CANCZdfoaC7mvSoX5_aAhEJ6D5_POwfmew0UqivKOxKr7o4RXvQ@mail.gmail.com>
In-Reply-To: <tkrat.64a19a64aa4403e7@FreeBSD.org>
References:  <20171208011430.GA16016@mcvoy.com> <20171208101543.GC2272@kib.kiev.ua> <20171208150121.GH16028@mcvoy.com> <tkrat.64a19a64aa4403e7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 8, 2017 at 5:28 PM, Don Lewis <truckman@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



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