Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp135363pxw; Fri, 8 Apr 2022 03:31:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRmZeUtMqx3ly8hLSGIRb2eEtAdhwyZKh4x2L1OlnEEzwGXpysyC6fkVssR4io1f7H/h8M X-Received: by 2002:a17:906:82c9:b0:6e8:2f2d:696c with SMTP id a9-20020a17090682c900b006e82f2d696cmr8127922ejy.576.1649413879386; Fri, 08 Apr 2022 03:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649413879; cv=none; d=google.com; s=arc-20160816; b=pg3WMxW8hTCZlCxx5U1p6Tt8uGRZYTvg0P/C0TF1U4Oejiw65PrQyFmbjscMzdttL+ Wi6dqS9HQlwz0giX/ZLjVDf//UcyIrEN+y1xNKEBQHSwDme6Z0IGCSURbrhaimdkN7JN qVLMGzIhvGxbkj13veedz/BqSBI3Hu3OMskmKBR8b9cU0TJ5svLOgPP9/E8ZFkflpgUp N6GGOaXs7FdG3/MtIs6qrkAc/C/OlGtx3PzErOZHQOwNWc6TcBYWoaBE/9Y6VKKrtopG MgiM0pxFkoTPgxaBH4wKM+++mbnbXFq0vkhKFN8K2eJpmU3JFRlNWjyFBCM2gJpPkIh8 02+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=JYCqI2SE1+yxHN/rLqWe+JaeAZMuu0aWZKyvaN+2uVc=; b=w2rbxOuX2sMphijv2bi6BZIyUzPlRexYj6BT78U9ts/ewJma1NUvF5sBx/mTXYjz4x tlhXO2DHFsZZo+hRMTOQLoeArecTm9lnSGDX2M0l9BBpEhnUh0laFi+UYwsTaGHn4cn+ ZFMGju9mAANQvqjUHrJfH9CzgMZnyVsiYD0jF7SZCzFW7zBrCUKAHwHO5elKWyLdO4vA MK8cnPt3XJ5qssowUaue31qYvUTMDsVYU1t3S5U4jDvlic6cRC2xFLS44MzYHi23STPX yc/laQXjlISHPydyw2fUyDamULzs/ULsSVEWXauByZRCvIzKXN+4L3+pHww7azZmP7TR Kq2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KVKs6+pn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y40-20020a50bb2b000000b00418c2b5bdf6si543997ede.216.2022.04.08.03.30.53; Fri, 08 Apr 2022 03:31:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KVKs6+pn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233264AbiDHJmU (ORCPT + 99 others); Fri, 8 Apr 2022 05:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbiDHJmS (ORCPT ); Fri, 8 Apr 2022 05:42:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4AB8813F2B for ; Fri, 8 Apr 2022 02:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649410813; 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=JYCqI2SE1+yxHN/rLqWe+JaeAZMuu0aWZKyvaN+2uVc=; b=KVKs6+pn6rVWR51mHZWW0A0/EgoTaRIuA9V1eRCv3d8+ab0OZiLtp+Gm9ad2XZm4Cy8S+j b3vjK02i219nSyLYGDUPsfrdxXQOSMqv5NU5m80B9ZfZe9RXIBhXU+XyfrVINDgJCnXps3 WtMq8XcZdsxV+AXahMI4xPEQRFqUOvQ= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-553-Hzfi4zRzO3eA3p7PW3jUrw-1; Fri, 08 Apr 2022 05:40:12 -0400 X-MC-Unique: Hzfi4zRzO3eA3p7PW3jUrw-1 Received: by mail-qk1-f199.google.com with SMTP id bp31-20020a05620a459f00b00699fabcc554so3257442qkb.12 for ; Fri, 08 Apr 2022 02:40:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JYCqI2SE1+yxHN/rLqWe+JaeAZMuu0aWZKyvaN+2uVc=; b=kSbtj4gOa561n+qAqKD2hGoZqMgtsJInHtgADNKXvIcqOaE+QA5K/tsawgwpUJ+atN g2sU6ootGhgzYGCJP/ojzy305tEzYtfNibg8bwAu/H3kR5n1nG30xtEtvto6XERpit8C SSn8TeDUn6nWr02laHIJu5WHkgD+4Qswf3qM0+EDROFtqLrvCYXuZDWOgHA08h92I6W1 OSw5VJmrdRl4AEG0WjqyTXWt24nEqwC9rp0hHxyVt4Fxs4IhuzrdDGuVNIUYAuqvlMY+ 05yaRRu5JP1Rzzqarufj3mNvdhA+X31cZQgHfU07KliWODOn2HiE8ys+bjdfw6X4tk7J wCOQ== X-Gm-Message-State: AOAM533GfEQibpTu/kktk8oFAbMdKg1gMYQ7tjl7HctJeGXYcwwNyqbJ wIYcTTGLNS+Le6ZTDjl3M8TjTfoGJyCE8PxxxHpO2kfhTTFzBzYPlToNJhJyx/Wf/YB2tQJHXGo f5uLBAkvZeYDQavZrhxs2n2yN X-Received: by 2002:a05:620a:484:b0:67e:16fe:3689 with SMTP id 4-20020a05620a048400b0067e16fe3689mr11750576qkr.745.1649410811810; Fri, 08 Apr 2022 02:40:11 -0700 (PDT) X-Received: by 2002:a05:620a:484:b0:67e:16fe:3689 with SMTP id 4-20020a05620a048400b0067e16fe3689mr11750568qkr.745.1649410811614; Fri, 08 Apr 2022 02:40:11 -0700 (PDT) Received: from [192.168.0.188] ([24.48.139.231]) by smtp.gmail.com with ESMTPSA id b21-20020a05620a04f500b0067b4895472esm13405172qkh.5.2022.04.08.02.40.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Apr 2022 02:40:11 -0700 (PDT) Message-ID: <676fb197-d045-c537-c1f7-e18320a6d15f@redhat.com> Date: Fri, 8 Apr 2022 05:40:09 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v8] oom_kill.c: futex: Don't OOM reap the VMA containing the robust_list_head Content-Language: en-US To: Michal Hocko Cc: Thomas Gleixner , Peter Zijlstra , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Rafael Aquini , Waiman Long , Baoquan He , Christoph von Recklinghausen , Don Dutile , "Herton R . Krzesinski" , David Rientjes , Andrea Arcangeli , Andrew Morton , Davidlohr Bueso , Ingo Molnar , Joel Savitz , Darren Hart , stable@kernel.org References: <20220408032809.3696798-1-npache@redhat.com> <20220408081549.GM2731@worktop.programming.kicks-ass.net> <87tub4j7hg.ffs@tglx> From: Nico Pache In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/8/22 05:36, Michal Hocko wrote: > On Fri 08-04-22 04:52:33, Nico Pache wrote: > [...] >> In a heavily contended CPU with high memory pressure the delay may also >> lead to other processes unnecessarily OOMing. > > Let me just comment on this part because there is likely a confusion > inlved. Delaying the oom_reaper _cannot_ lead to additional OOM killing > because the the oom killing is throttled by existence of a preexisting > OOM victim. In other words as long as there is an alive victim no > further victims are not selected and the oom killer backs off. The > oom_repaer will hide the alive oom victim after it is processed. > The longer the delay will be the longer an oom victim can block a > further progress but it cannot really cause unnecessary OOMing. Is it not the case that if we delay an OOM, the amount of available memory stays limited and other processes that are allocating memory can become OOM candidates? -- Nico