Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1132802imm; Wed, 1 Aug 2018 10:43:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdI6dhPHLhjwydJPlmyRsavE5/U0GLv3biWU3ZRc83w/JP+EiuwjunZVqD1sIwXysJ2bzPe X-Received: by 2002:a65:6110:: with SMTP id z16-v6mr26095761pgu.412.1533145416082; Wed, 01 Aug 2018 10:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533145416; cv=none; d=google.com; s=arc-20160816; b=xZLOHUlY8DQPg3KcldcW14O/giDA632jxfTUnU0KptVh6+AcDsr40NKphTZXDiP96p uxVnsk6yVek043zd5RXd4zo8mu+wVbDT3O4KCvho16oJh0FJZ19VJnwpWPgwBCQY/VhX a1wveCGRgTRrNx6K0KWPOS8oY+409TGOsYNvXjrAGKBSU8Ctjo26UIq7uYlxOoGZhxKu JZ8189kbsRWVRBJu7E31/Bwv3f5VngMolhEt+SClUx8CSe4pljh5MvGjnLOLM+bU/BH+ lWENcmdo4JOOUsrLKhBnUX8EQX9gGdSxzMkPz9O2f7eoV4nIdc04n9M0vfwa13mgjD0N CUwA== 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:dkim-signature:arc-authentication-results; bh=x7IBBbge8UGVC2hAhuLJB7s1DADr52Epb3KeW/cnCYk=; b=hRQF1CHPed0xRKQDLgtaA16LKagGdT0+h47D7zjUaMt0tcmqPbeSGJdwyu1vMlYHc6 1z85v9mJSbv3PRAydSF+aF8YBbDq16+bxNSf6ZfbRrmGkr9cpf4F7rDgv94jsPKi89Os YWS7wCmmdy3XfLynP7WKs69eLn6knIPvaGNW6I/e/ox3RS9cy2JCHB0AVgDq8ze974GF IXRzh2P6ek38Z/3wSAju5B1r7hA9Q4YccTyTyoSVpJmmjmcAozBv9JFC2lqN+RdmDFWx O2y7iB6Al/pxL2kclhaKC8Pro7kA4i+yiUZxe++aQENo/hHFilAeU5zBo9eMdW+dFC32 lnsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=o9Iv8jvc; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17-v6si17420654pgk.135.2018.08.01.10.43.21; Wed, 01 Aug 2018 10:43:36 -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; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=o9Iv8jvc; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404872AbeHAT3X (ORCPT + 99 others); Wed, 1 Aug 2018 15:29:23 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:34414 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407105AbeHATPz (ORCPT ); Wed, 1 Aug 2018 15:15:55 -0400 Received: by mail-qt0-f194.google.com with SMTP id m13-v6so20779023qth.1 for ; Wed, 01 Aug 2018 10:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=x7IBBbge8UGVC2hAhuLJB7s1DADr52Epb3KeW/cnCYk=; b=o9Iv8jvc0s9OueyKSgyAU9Cl/5JN0SkPMTmIZpV2peCN5NB7sA+rIsCl1FEulcdlG4 W1ZHzzRtxVsblWYFNifeHfiz5ymb/eg4y9POolqiS/nFwLgJsihPlbTxzPFJ75N15C4C HxMZvEh4tUHSIJaLwWIVyVCVV8DR8AvvpM0zJItcynWSKYpc0DVxYi+RACGKKQp0Kg0G Xjuo4EsS3x7bkAaIDSpUeX1xmoJAi/BIWVWjq4XvINrkZ9yv1+TjcVxxdWuIYz5gkMFS cra2ICH3U6vt8GUEfZe0wvf7lKRXzGf1Hj6Ty2ex86ll9JhWYi41NzNGsIsX38flvbYi cgGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=x7IBBbge8UGVC2hAhuLJB7s1DADr52Epb3KeW/cnCYk=; b=kbAPkvJGyNr7jec4h6b+UmGUpDgZ2YKPVOXHM3dd1KpTwmzvCEUEPQcmQL5ebD82Gt jQfaxKpRns4/G9o6tOr5F/CcFYDXoApDirDiP79oO/H1JdqBDGOQ3D8xDLRmiSjsVGad Tuf68IBh9wsa/CrdyCAK44VW1hd/yPt7vbKtxCKpAFnkEYam+GhIL/Em5oWJXZVUsYUA BjLn3iREHHCR4wGbAQc8c4nw5aC2MCZ+jpurzRqhC/F2DLXLamx2juf27AGX9Wcu/bzr 55teBs1SeXK3B6WUanlvCLo4tw8SIMl/7FQ1+HZcnxfeRBgIka4hMMFYtVVL5dGSXqWB 2ayQ== X-Gm-Message-State: AOUpUlH0M4RArEf2N+eB/+Y0BwKvDx2NWxtjKlzqg+h08c8uKKqHuIJ+ 6dLReOyR855QM7L3+azsFVeIUA== X-Received: by 2002:aed:237a:: with SMTP id i55-v6mr26437206qtc.263.1533144551850; Wed, 01 Aug 2018 10:29:11 -0700 (PDT) Received: from localhost (216.49.36.201.res-cmts.bus.ptd.net. [216.49.36.201]) by smtp.gmail.com with ESMTPSA id b83-v6sm12490429qkc.20.2018.08.01.10.29.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Aug 2018 10:29:10 -0700 (PDT) Date: Wed, 1 Aug 2018 13:32:06 -0400 From: Johannes Weiner To: Roman Gushchin Cc: linux-mm@kvack.org, Michal Hocko , David Rientjes , Tetsuo Handa , Tejun Heo , kernel-team@fb.com, linux-kernel@vger.kernel.org, Vladimir Davydov , Michal Hocko , Andrew Morton Subject: Re: [PATCH 2/3] mm, oom: refactor oom_kill_process() Message-ID: <20180801173206.GB11386@cmpxchg.org> References: <20180730180100.25079-1-guro@fb.com> <20180730180100.25079-3-guro@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180730180100.25079-3-guro@fb.com> 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 Mon, Jul 30, 2018 at 11:00:59AM -0700, Roman Gushchin wrote: > oom_kill_process() consists of two logical parts: the first one is > responsible for considering task's children as a potential victim and > printing the debug information. The second half is responsible for > sending SIGKILL to all tasks sharing the mm struct with the given victim. > > This commit splits oom_kill_process() with an intention to re-use the the > second half: __oom_kill_process(). > > The cgroup-aware OOM killer will kill multiple tasks belonging to the > victim cgroup. We don't need to print the debug information for the each > task, as well as play with task selection (considering task's children), > so we can't use the existing oom_kill_process(). > > Link: http://lkml.kernel.org/r/20171130152824.1591-2-guro@fb.com > Signed-off-by: Roman Gushchin > Acked-by: Michal Hocko > Acked-by: Johannes Weiner > Acked-by: David Rientjes > Cc: Vladimir Davydov > Cc: Tetsuo Handa > Cc: David Rientjes > Cc: Tejun Heo > Cc: Michal Hocko > Signed-off-by: Andrew Morton This is pretty straight-forward. Acked-by: Johannes Weiner