Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1403006imm; Thu, 5 Jul 2018 22:40:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcIfhuT3NRg0Gpw874xu3qdnlVaRN0W5P8NVarzZnQEdHs+aex20X5Y8ZxCSVC3dyeEt4c9 X-Received: by 2002:a65:5ac9:: with SMTP id d9-v6mr8184371pgt.238.1530855635648; Thu, 05 Jul 2018 22:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530855635; cv=none; d=google.com; s=arc-20160816; b=qLYGlA7KoL+noyA2OKrZ0d1vOsjkDa6aReXxjE0dG8k9TMKd1LXYEqBnIUvQ01kbcE vipqp3ybSxoR5aUQdeEFAehGIvTU0XOVzdVfIteZ2Bv4nIOsf835270LtXCQUoAw1sHu vqnoXYZUEOEgNJvsY88emQaG8bFHPPVslFpXxM1qatilzq7VYC8H9AoPD36gYlNKbyjO cmYueZmbn4X9xGlMEUJoHtM2ktcdFG+7SxIzb9Em9nnoJG5i/91Uf2PCaI3rLngxf+jD 0OaXnmSKWQLqDCXQjdxy3TUUs5yfImeCE44w+r0VXQ0EsPb12CrAZIRHB+nhXh7KtfMZ aOTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ZGGj/1laZO1ALUvpzUtAYA4T9iUG1ySaXYAaKTJqLm4=; b=BmHzN5hFOL1r+lH3UPWhDDU/iI99h87fwBNhsMS0ThK8qVUb++xLuWgnYGytcMHntp NEWc9jUWWOaW2zhc2cyCvqi8LPgRFVnTHGTX3nMac/+xwO7Prboq9UBGhZqOIKN9PHXL rnjvRB3XD9qJD4KaQa00FP0MAC4XlCoOi+g+VKZ/IcZSiHQmvrE9+a06JwD5BOhY+bhj x+GFPwLYxwSSoP6P9BgHkYVW5Nf2Rb68evBl528CSJSPwfpVFVWWJXmNvucJyD9ozgL6 LNLexQSnCwjFDPXhRj/ZcyUztMI9jbFUw7swgTUsBnLdsFqWsZy8y0yrc9S4ZAhb5PWB 0Cpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 85-v6si8139437pfm.264.2018.07.05.22.40.21; Thu, 05 Jul 2018 22:40:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932502AbeGFFjD (ORCPT + 99 others); Fri, 6 Jul 2018 01:39:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:56814 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932199AbeGFFjC (ORCPT ); Fri, 6 Jul 2018 01:39:02 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 85D7AAD37; Fri, 6 Jul 2018 05:39:01 +0000 (UTC) Date: Fri, 6 Jul 2018 07:39:00 +0200 From: Michal Hocko To: Andrew Morton Cc: David Rientjes , kbuild test robot , Tetsuo Handa , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch v3] mm, oom: fix unnecessary killing of additional processes Message-ID: <20180706053900.GE32658@dhcp22.suse.cz> References: <20180705164621.0a4fe6ab3af27a1d387eecc9@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705164621.0a4fe6ab3af27a1d387eecc9@linux-foundation.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 05-07-18 16:46:21, Andrew Morton wrote: > On Thu, 21 Jun 2018 14:35:20 -0700 (PDT) David Rientjes wrote: > > > The oom reaper ensures forward progress by setting MMF_OOM_SKIP itself if > > it cannot reap an mm. This can happen for a variety of reasons, > > including: > > > > - the inability to grab mm->mmap_sem in a sufficient amount of time, > > > > - when the mm has blockable mmu notifiers that could cause the oom reaper > > to stall indefinitely, > > > > but we can also add a third when the oom reaper can "reap" an mm but doing > > so is unlikely to free any amount of memory: > > > > - when the mm's memory is mostly mlocked. > > Michal has been talking about making the oom-reaper handle mlocked > memory. Where are we at with that? I didn't get to mlocked memory yet because blockable mmu notifiers are more important. And I've already posted patch for that and it is under discussion [1]. Mlocked memory is next. [1] http://lkml.kernel.org/r/20180627074421.GF32348@dhcp22.suse.cz Btw. I still hate this patch and making any timeout user defineable. It is a wrong approach and my nack to this patch still applies. -- Michal Hocko SUSE Labs