From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5ABEC47082 for ; Mon, 7 Jun 2021 20:44:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 55A3561159 for ; Mon, 7 Jun 2021 20:44:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55A3561159 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D232D6B006C; Mon, 7 Jun 2021 16:44:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CFA436B006E; Mon, 7 Jun 2021 16:44:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9A6F6B0070; Mon, 7 Jun 2021 16:44:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0114.hostedemail.com [216.40.44.114]) by kanga.kvack.org (Postfix) with ESMTP id 84FEE6B006C for ; Mon, 7 Jun 2021 16:44:22 -0400 (EDT) Received: from smtpin34.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 1AF59180AD802 for ; Mon, 7 Jun 2021 20:44:22 +0000 (UTC) X-FDA: 78228105564.34.0A60692 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf29.hostedemail.com (Postfix) with ESMTP id C57171CBC for ; Mon, 7 Jun 2021 20:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623098652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p14sNsrf29IyrlDe2puU05DlPkcSP+alqHwSenkYXkY=; b=hd1x5RvWqhsc2PFWmyikNMF1BBj+Uxv6OaYDvBunbIdhZfRAt6mEYi3+JfhUhTNCaySYiU TdkGjcUN3DOMhJpPpMXc7u5JERsjXbkkYLMFy8A/oCvm6L8WlgSLkjUkt88LTTWuVy6jb6 /WnXEZiaMoD+66oCvKXy5ZtGOVY5HOw= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-498-CFhvbS9WNOKyJ-78NIq3FQ-1; Mon, 07 Jun 2021 16:44:10 -0400 X-MC-Unique: CFhvbS9WNOKyJ-78NIq3FQ-1 Received: by mail-qk1-f197.google.com with SMTP id 2-20020a3709020000b02903aa9873df32so4028431qkj.15 for ; Mon, 07 Jun 2021 13:44:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=p14sNsrf29IyrlDe2puU05DlPkcSP+alqHwSenkYXkY=; b=Ub1CUUAgwid6yrBL3Ez791Z5hUYwEV2Qe70pRxVZOdacoZZRwLj1QpEVUwOKqE2PIg d/z8t/PA7ObIFiC5C445HA5Rgsc28QvX0AmFR9cNb7GDS2WZxnRoWQqt5bYt6DcAqpyD qHJrAvKSIZFGNgzY3kgE2TxSjdlxr0Gbl5WmZqSliu1CjiEj5xWIlmj08sbeocL1zxLV ZP4ZrDvnc/dcQ/1Pdln7LOghRdqvaU8XPhzJ1yONLVhfUWxoppdZGlHydDqmdPd8FXSC T0p+aQuql/ld6vvqaEImvOr95O9jQbxgnZXgV0IQFDM/iBWoE5OcqvnyB+6u4t1Lxosj vT2A== X-Gm-Message-State: AOAM53378WeVqTx1scOOWJ78h7VLFkKHfn+hTZfyJ20KOspDHcrtommb LeqQDei81u9P/i9JfekCvXx1r3ELHaUvTLtRImonAVWJsKG6eXjesFOk9xUg5WQVAV8C53dXFqF ah/hj61NXroE= X-Received: by 2002:a37:62d6:: with SMTP id w205mr11912916qkb.194.1623098650551; Mon, 07 Jun 2021 13:44:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK1WDso3vmPdDtpFovWOfgu2bFxxCdtZ8LEgH4YYixyaYGsL3i1AJn3TUMi8viuAD/dKzRCw== X-Received: by 2002:a37:62d6:: with SMTP id w205mr11912900qkb.194.1623098650386; Mon, 07 Jun 2021 13:44:10 -0700 (PDT) Received: from llong.remote.csb ([2601:191:8500:76c0::cdbc]) by smtp.gmail.com with ESMTPSA id m18sm4353002qtk.80.2021.06.07.13.44.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Jun 2021 13:44:09 -0700 (PDT) From: Waiman Long X-Google-Original-From: Waiman Long Subject: Re: [RFC PATCH] mm/oom_kill: allow oom kill allocating task for non-global case To: Michal Hocko , Waiman Long Cc: Shakeel Butt , Aaron Tomlin , Linux MM , Andrew Morton , Vlastimil Babka , LKML References: <20210607163103.632681-1-atomlin@redhat.com> <6d23ce58-4c4b-116a-6d74-c2cf4947492b@redhat.com> Message-ID: <353d012f-e8d4-c54c-b33e-54737e1a0115@redhat.com> Date: Mon, 7 Jun 2021 16:44:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=hd1x5RvW; spf=none (imf29.hostedemail.com: domain of llong@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=llong@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: C57171CBC X-Stat-Signature: gjgbxepq7k94srhzg1y86iruxupog71n X-HE-Tag: 1623098653-308500 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000049, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 6/7/21 4:03 PM, Michal Hocko wrote: > On Mon 07-06-21 21:36:47, Michal Hocko wrote: >> On Mon 07-06-21 15:18:38, Waiman Long wrote: > [...] >>> A partial OOM report below: >> Do you happen to have the full report? >> >>> [ 8221.433608] memory: usage 21280kB, limit 204800kB, failcnt 49116 >>> =C2=A0 : >>> [ 8227.239769] [ pid ]=C2=A0=C2=A0 uid=C2=A0 tgid total_vm=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 rss pgtables_bytes swapents oom_score_adj name >>> [ 8227.242495] [1611298]=C2=A0=C2=A0=C2=A0=C2=A0 0 1611298=C2=A0=C2=A0= =C2=A0 35869=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 635 167936=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -= 1000 conmon >>> [ 8227.242518] [1702509]=C2=A0=C2=A0=C2=A0=C2=A0 0 1702509=C2=A0=C2=A0= =C2=A0 35869=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 701 176128=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -= 1000 conmon >>> [ 8227.242522] [1703345] 1001050000 1703294=C2=A0=C2=A0 183440=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 2125824=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 999 node >>> [ 8227.242706] Out of memory and no killable processes... >>> [ 8227.242731] node invoked oom-killer: gfp_mask=3D0x6000c0(GFP_KERNE= L), nodemask=3D(null), order=3D0, oom_score_adj=3D999 > Btw it is surprising to not see _GFP_ACCOUNT here. There are a number of OOM kills in the kernel log and none of the tasks=20 that invoke oom-killer has _GFP_ACCOUNT flag set. Regards, Longman