From patchwork Mon May 4 04:26:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yafang Shao X-Patchwork-Id: 11524963 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9BD4B1668 for ; Mon, 4 May 2020 04:26:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5E11D20721 for ; Mon, 4 May 2020 04:26:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BT+9E/3c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5E11D20721 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6FA028E0005; Mon, 4 May 2020 00:26:43 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6AABD8E0001; Mon, 4 May 2020 00:26:43 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 59A6A8E0005; Mon, 4 May 2020 00:26:43 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0221.hostedemail.com [216.40.44.221]) by kanga.kvack.org (Postfix) with ESMTP id 3EE5D8E0001 for ; Mon, 4 May 2020 00:26:43 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E30C419471 for ; Mon, 4 May 2020 04:26:42 +0000 (UTC) X-FDA: 76777750644.14.part46_3a99df55bea3b X-Spam-Summary: 2,0,0,78b334c37777e6f4,d41d8cd98f00b204,laoar.shao@gmail.com,,RULES_HIT:41:355:379:541:988:989:1260:1345:1437:1534:1538:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3350:3867:3871:3872:3874:5007:6119:6120:6261:6653:7901:7903:9413:10004:11026:11658:11914:12050:12297:12438:12517:12519:12895:13069:13311:13357:14384:14394:14687:21080:21444:21451:21627:21666:30054,0,RBL:209.85.215.182:@gmail.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: part46_3a99df55bea3b X-Filterd-Recvd-Size: 3221 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Mon, 4 May 2020 04:26:42 +0000 (UTC) Received: by mail-pg1-f182.google.com with SMTP id q124so7934652pgq.13 for ; Sun, 03 May 2020 21:26:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=0ff+6u+dMB24Pd95jwkA9vwoP4nCFCugmt+K2Zq0l6U=; b=BT+9E/3clLIuhDo6tWYASnwBPNRn7pvj9xOHHUrOSFGMgzCbT6fl4pE+QFE80GCo4H OMutUKW8gOBiMSYXuUP1dywC99KXDbGszexaMdyk5ORa205yNghOMea2irxp9HpySdmz 7i6CeZ2mXql9ZRs9YuFB97E438mE/cp52eZ5BdfkLwCIcW8JuXm4qOv40Pw5bMjGNoE5 TpNHM49LMD7XLf6itD2o6QJG29uSSgLRs6gfpRPntOFpbkV5baDAqT05/8NgRJwH6dpo Fvly90iQDWwQLFr5sjcUlxOhfoeG4nqDre0kxvHVrAjW7e8nPgKPYP5IogOzYCqviXja F/1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0ff+6u+dMB24Pd95jwkA9vwoP4nCFCugmt+K2Zq0l6U=; b=pJ+lGRWVGOj7xl8qDaMA1m/De0dwx5k5Vb84QOZp7r2lQv1EkKH/yyVY+fOic00AUv D33KDX4PsjsMvdgCDArixczP3ujxWsCxZYt5NfL9HVOeNaIFjpjbZfBeKjqkbITPnPW/ uiuCCgdzu4SVGf2kJrvFirKFRnaU/32vB3vS3Wavj62K/jGr9Yp/EWhO88PsChz1B2NK nPKSa7AZvWv9FtUw2UD89Jducp9Sx9q9f13s3/+lmmDxvXnlC941djIUa6tpr8prCJ1c jrGL8QH8iU0A/3YY9Yf6ivODpYjNgPvbdpO5Szwq+xaNmFoTC0ZcGlCbKt1CB1xl7mwf Meeg== X-Gm-Message-State: AGi0PuYnDGYkjJGK3rdTlAcI2TRZxX0AVghAHXeSdyN4z9OVvQSIo+V8 FtXQzgD1eM4JpKP9l93cViM= X-Google-Smtp-Source: APiQypJcBXhyiPDY11R9HajA+9x9vU0cVq19bkgRvwmkf1svIJikzJxfeMzNvxa8vY/TBopJtNU5Cg== X-Received: by 2002:a65:4947:: with SMTP id q7mr15483495pgs.23.1588566401704; Sun, 03 May 2020 21:26:41 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id y8sm8012878pfg.216.2020.05.03.21.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 21:26:40 -0700 (PDT) From: Yafang Shao To: akpm@linux-foundation.org, shakeelb@google.com Cc: hannes@cmpxchg.org, mhocko@kernel.org, guro@fb.com, gthelen@google.com, linux-mm@kvack.org, Yafang Shao Subject: [PATCH v2 0/2]memcg oom: don't try to kill a process if there is no process Date: Mon, 4 May 2020 00:26:19 -0400 Message-Id: <20200504042621.10334-1-laoar.shao@gmail.com> X-Mailer: git-send-email 2.18.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000149, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: ecently Shakeel reported a issue which also confused me serveral months earlier that it still try to kill a process even if there is no process. If a memcg is not populated, it is useless to try to kill a process. mem_cgroup_out_of_memory() is renamed to mem_cgroup_oom_kill() for better understanding. Yafang Shao (2): mm, memcg: rename mem_cgroup_out_of_memory() mm, memcg: don't try to kill a process if memcg is not populated mm/memcontrol.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)