Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1619516lkv; Wed, 19 May 2021 14:12:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfjo/IAJtGNzO2SK0Qfis8LUC7b25IU2IolWPR8uE83b6CV9hSIxTdufmofuJzsqn+gZ90 X-Received: by 2002:a05:6e02:156d:: with SMTP id k13mr1102814ilu.149.1621458772365; Wed, 19 May 2021 14:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621458772; cv=none; d=google.com; s=arc-20160816; b=GQSn7TOUaXbjZ+z3IIPCw29Vgg4xMIVoN0Stdk5LVVSma1DF1kGaNETw1NVPKGt6sc Mn1g/q4F2pCBr1GjT3v+vNlC3yxDJ0XJRSq59UKM3mSZ+NxIVoLxIelMLGEJ8cKGke1n aqalHmk+eSB+yhk011tpxGejz9O52CEaiMdNH6Dqvr7r97fXEcnVG9Wsmxi1BZu4fCnq QtiN/wAc+321i/DHmcIFkRznydy5NSSaD8rMiiK9IMUwdvUsv48yUDgROQISRfdzJVSo TL21jVlOKKXw2ixW/9M681609r5QxmTKOIfiT4NcgdF+zgffP71Fucl6Pa7fDGiZwxgT /1fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xqzvhqKhh1nFQM60OV9hcT/mMJVDvQ3rAokoQfYzmz4=; b=xkY+v+4pB3VJSU1rTCB/1MRvtCw4nrKhAbsZDfxPcSGkzeKzv1y2tOzBumkvktWyGH Lp9unBycivOZDD6TNyUSOql5W1uGzaAl5d5p0ZeBiz1iI7ZAScXwL/IvK1xqVBYpqNuQ p9iIOKbiloX+yW+ldWUPUnOPzUdwnEdXkitnxUkvyidKA28xDOgh8NSYb1ymAiJqK4Gt Ot5G2PqYHfeVNEIkxMhJIU1bpCXDyWVkiJzzJDg+1ftpMr1V5UuhLCqbDFI/PEZWdR2M CvdF2+yUs47AO/VHQoSoJcQUs7oM3WbcF6G0M07jEQQI97qMKD3CX5wzEIG6v+vI1APG Mjsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ckzUFq7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a11si534407jat.23.2021.05.19.14.12.40; Wed, 19 May 2021 14:12:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ckzUFq7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S244885AbhESNHj (ORCPT + 99 others); Wed, 19 May 2021 09:07:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:51923 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231434AbhESNHe (ORCPT ); Wed, 19 May 2021 09:07:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621429574; 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: in-reply-to:in-reply-to:references:references; bh=xqzvhqKhh1nFQM60OV9hcT/mMJVDvQ3rAokoQfYzmz4=; b=ckzUFq7gmIf0T+2h7tVlUshE9TKbHSUYU6m56fZIpPru5HaZ3wcrTAYb8hdvAebnykc24t vNPtEqSHvSssj0Hd1VouVkzvluK9ZUTJlyj40yPMSfYY4w+ylVb5j4EA8f7i4P0eyoLl09 jwwwX83akG3vpingPt6MoX+UCJ8rDro= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-36-BthQQSlnNA-e0WNPFJsJqA-1; Wed, 19 May 2021 09:06:12 -0400 X-MC-Unique: BthQQSlnNA-e0WNPFJsJqA-1 Received: by mail-wm1-f71.google.com with SMTP id f8-20020a1c1f080000b0290169855914dfso1506859wmf.3 for ; Wed, 19 May 2021 06:06:12 -0700 (PDT) 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; bh=xqzvhqKhh1nFQM60OV9hcT/mMJVDvQ3rAokoQfYzmz4=; b=NdVhfAubHcQgWGGqhpwz1rtlsgpVt4JOBQ53Q+vEogUMuJQK/ElYYoYzULDiqo1dj4 ac4MWdqUIdyQx4Pa6vRr7p3DkeCS3ftiTUrsfm7IwZfZ2cqAkyFf1baOQvUhv++XBMkG EEoQByppmbCSI/49O8slrIahaINOXJkwJAfD7kNDDcaHAl/m/BafeC5vNoNpnBjvN10o KwL3/NcrmCGoi0MvpUy/ja11pRpxcAqlYeCwF5KQjoZz2w53Pq5Jfgbgf8uw7f1O6xG5 0SmfUk6sKHDTxEKdyKd12qgs909R0d6MIgiyIxIokghA6vALVr3uctqUCUmmaDhMJ2h4 Smxg== X-Gm-Message-State: AOAM532jeHB3KxQ0GCgIojhXRFzk+dStDaKZ3S2HEN5InM7HNh+LmCSk UXJe1yILjY6kCLvutlwP2bpfT55r7GW476Y5OVXJOD/vEC7qljl6CvKTICtA5z84oOwcRpdqA+X r03LL83hHaub63NXejiegC7k= X-Received: by 2002:a5d:64aa:: with SMTP id m10mr14731769wrp.291.1621429571653; Wed, 19 May 2021 06:06:11 -0700 (PDT) X-Received: by 2002:a5d:64aa:: with SMTP id m10mr14731738wrp.291.1621429571451; Wed, 19 May 2021 06:06:11 -0700 (PDT) Received: from localhost (cpc111743-lutn13-2-0-cust979.9-3.cable.virginm.net. [82.17.115.212]) by smtp.gmail.com with ESMTPSA id s11sm3277535wmf.14.2021.05.19.06.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 06:06:11 -0700 (PDT) Date: Wed, 19 May 2021 14:06:09 +0100 From: Aaron Tomlin To: Michal Hocko Cc: linux-mm@kvack.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Vlastimil Babka Subject: Re: [PATCH] mm/page_alloc: try oom if reclaim is unable to make forward progress Message-ID: <20210519130609.r3ml6ohb2qsrfq2t@ava.usersys.com> X-PGP-Key: http://pgp.mit.edu/pks/lookup?search=atomlin%40redhat.com X-PGP-Fingerprint: 7906 84EB FA8A 9638 8D1E 6E9B E2DE 9658 19CC 77D6 References: <20210315165837.789593-1-atomlin@redhat.com> <20210319172901.cror2u53b7caws3a@ava.usersys.com> <20210325210159.r565fvfitoqeuykp@ava.usersys.com> <20210326112254.jy5jkiwtgj3pqkt2@ava.usersys.com> <20210518140554.dwan66i4ttmzw4hj@ava.usersys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Michal, On Wed 2021-05-19 13:10 +0200, Michal Hocko wrote: > > Looking at try_to_compact_pages(), indeed COMPACT_SKIPPED can be returned; > > albeit, not every zone, on the zone list, would be considered in the case > > a fatal signal is found to be pending. Yet, in should_compact_retry(), > > given the last known compaction result, each zone, on the zone list, can be > > considered/or checked (see compaction_zonelist_suitable()). If a zone e.g. > > was found to succeed then reclaim/compaction would be tried again > > (notwithstanding the above). > > I believe Vlastimil would be much better fit into looking into those > details but it smells like pending fatal signals can lead to a unbound > retry indeed. Understood. I will post a trivial patch to hopefully address this particular condition in the compaction retry code path, shortly for further discussion. Kind regards, -- Aaron Tomlin