Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp98421pxj; Thu, 20 May 2021 05:24:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxr9g7hVXeapcoieYCd2do/2wyFfCtsC5akwULFgWHqZlVRTaxcTgnqu0kgG+lyuph/P6P X-Received: by 2002:a17:906:cc9:: with SMTP id l9mr4425410ejh.454.1621513449430; Thu, 20 May 2021 05:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621513449; cv=none; d=google.com; s=arc-20160816; b=vVD22p2W5KNUb2stqAJIYFZlTrv8mH0mkZAsvDUR0qm7rXhrS18Q4laOBInwOWZ1IW HK64OTimjdX/mHyof4Mr7EQ/hWqCtcOaYZ+/VZVVq/lUfloM+2w1L0MjOYjNPTyAv7Cb 4K8ApC72PDd8mo8vJGC2mm6nBHJWMYTObaoBHMt3c5jGfIPpAWtiGEMjnyVMsEIAUUm9 bNUqhIzDZos6ZzCqs/fXluEHyQU6a05DLqSUSwPHgqHqMIcaKOu1MuHciUBKUVM0PcsB unv0mDjaH9TmU4DpiU7e2MQWBsIusDX0w8483pYFwhCJM+P7lpYJqaljez63hh0IadpG ncQg== 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=j85zMe0/ctQ/R4wCa7ZURwMwH0NuHucxQ3izqol7/hQ=; b=lHy8bnzTPvOrphTz6FhhK4tHz1BE2yX3y6lVRiwSBa3FxMHsd5Sm3zIzVrkH1cgxoH ROnOSm7MCBqkOUUU+cbmlniGOAzsT0koXQ7QJ/0EURbLj2Y1lXs5GIqPshiTJHDpLmlh ihNWJUCuOwEbocJbreJOGSlJWREH+UjL+ZU1DAVnSk4uaoChPAjFEJKQY556vlogixWY JZSsBGNGWjLgRKQ037ePnOM4U9vASh0y43ISAmub4KY+fbFBCQt7z0aQ3uX37jFtTpQB ibEBmEEUEMSSbpuVpGzBuhCOuydH8iQh/s5zpKdwAAzo0X1xLRKGX8cjpkMMfKzvtLkj e+aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=b13lzJOv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si2423571ejc.193.2021.05.20.05.23.44; Thu, 20 May 2021 05:24:09 -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=@infradead.org header.s=casper.20170209 header.b=b13lzJOv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232134AbhETMVY (ORCPT + 99 others); Thu, 20 May 2021 08:21:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbhETMVM (ORCPT ); Thu, 20 May 2021 08:21:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F19C02801D for ; Thu, 20 May 2021 04:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=j85zMe0/ctQ/R4wCa7ZURwMwH0NuHucxQ3izqol7/hQ=; b=b13lzJOvUZLlE9ImkNnV7t7Ojm C6Dpsc3b1B9xt8MsvW4vA3eK1DSLGl9BGHAd7RE+FlmyO7sGPvo2MK6aWn+CWO+C0Ozx1fO18vcj8 IDWCDX7ZbIuvdJIJA4+XKwlW/PWORLguwglaxh6J7iuP9tfp1/jl/DMj7rUPMJDWhdJJtQHtRwNNK 63fDsG9klLrQMcDBerhVgXm6YsAY7H8NdGT5q7aTR4sVbbMFRlb+4+26CZLHj3iAPMmKi2f+1Oh+c KhbnKTbZM4612Azh1JL7q0YBGd6GtNZNTI1NWYo2gyRNUlVyXPVqMXiJAaAqvBIQLST4wdSjvzZ1n RH2LAt7A==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1ljgYe-00FtLb-PS; Thu, 20 May 2021 11:11:06 +0000 Date: Thu, 20 May 2021 12:09:40 +0100 From: Matthew Wilcox To: Andrew Morton Cc: Aaron Tomlin , linux-mm@kvack.org, vbabka@suse.cz, mhocko@suse.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mm/page_alloc: bail out on fatal signal during reclaim/compaction retry attempt Message-ID: References: <20210519201743.3260890-1-atomlin@redhat.com> <20210519213455.97ff95f0124b4120787f8314@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210519213455.97ff95f0124b4120787f8314@linux-foundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2021 at 09:34:55PM -0700, Andrew Morton wrote: > On Wed, 19 May 2021 21:17:43 +0100 Aaron Tomlin wrote: > > > It does not make sense to retry compaction when a fatal signal is > > pending. > > Well, it might make sense. Presumably it is beneficial to other tasks. Apart from Vlastimil's point, if I hit ^C, I want the task to die, as soon as possible. I don't want it to do things which are beneficial to other tasks, I want my shell prompt back, not spending seconds trying to compact memory. Some other task can do that if _it_ needs large contiguous chunks.