From owner-freebsd-hackers@freebsd.org Sat Dec 9 00:44:54 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 019C3E9398B for ; Sat, 9 Dec 2017 00:44:54 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C384E6B4A6 for ; Sat, 9 Dec 2017 00:44:53 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22d.google.com with SMTP id s37so4148031ioe.10 for ; Fri, 08 Dec 2017 16:44:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Hgg+s0k/UpZ084y5Pjcw1ReBfM+cPIkGnZ81o8yyJJ0=; b=xLFTEZ2+3az6L3GBL8VtenZiWStnzlyWDAjEQv0TWgAh4eHByR7eLmYmdTd6SD4QeW 20atRAYcjuA/YyTeQuwojZrq/rJRNxmQestbAGzuqRRHHFM/cRh58ZDTc8hfk5r7mEWX 45U8lH5prBSKqZOwzWAKyFNjH1E9G62LonaKcLemH6mP/odAJzHKzCHbpvnWbQZAIJlG mH5sUAFUOOd+8zXHguLfB4oO1wBpscd+Cko19SnDOdoNrKyIjBgvajwDs3FAkjHsLiyD Q40irbF2E6DvRxl6zoIIce5bw/YGuWsDEGYIWqp0WPW24dzGBu/Vj8j7jjIQRDVOpM1K Srjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Hgg+s0k/UpZ084y5Pjcw1ReBfM+cPIkGnZ81o8yyJJ0=; b=L6mf9RbKV4uD61nhnwvQnNBh0vori7+pYMFqR5qzQ8DI5zLN6rj/bTCIl9GRLDGYZs 5VUXlhjik2qmBFgD6dhY88HKsCMUasINcMpO9gMfVqQiR2eLbI1oem2i4TxHufZx5r38 upMJcyQAaEgowgsJpPy3QQUMbdr5Ujk+j3BT8lDBxM1sklaEH+jiJ+aoXrnNtTig/NTn NhC/vrAv0KXK5QdIckE1oiGOf8xdshpwlFAaSM7hKkoqb34GPQq+rtNoizzL6czesQU+ fKSwrAAqj620m4gFt/WXCypmDEdaTqCJg5miIeDJ9ege+WglJBtviv4RSX1KzNQ+sss3 SFtQ== X-Gm-Message-State: AKGB3mLXZfpmOryJqUCkhvkbjqa5QBFjJPq+Lf005wCZg39+PqR9BYVh /VEh7H0mbyCzQPdCZ407FWJZQ7P/aTe2A46kXzjz1A== X-Google-Smtp-Source: AGs4zMarkjMnR2j4+88PtGFKdovSn2noQRdl5UrYjyWAOTXtv4YiF+po6kd0doyve6PTf0vqTupDrgByMP3ft2jCJ4c= X-Received: by 10.107.52.140 with SMTP id b134mr17784853ioa.291.1512780292750; Fri, 08 Dec 2017 16:44:52 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Fri, 8 Dec 2017 16:44:51 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: References: <20171208011430.GA16016@mcvoy.com> <20171208101543.GC2272@kib.kiev.ua> <20171208150121.GH16028@mcvoy.com> From: Warner Losh Date: Fri, 8 Dec 2017 17:44:51 -0700 X-Google-Sender-Auth: B2ZE9W7Wxu1eoCfzqpZI_wtdPCI Message-ID: Subject: Re: OOM problem? To: Don Lewis Cc: Larry McVoy , Konstantin Belousov , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Dec 2017 00:44:54 -0000 On Fri, Dec 8, 2017 at 5:28 PM, Don Lewis 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/ 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