Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2525275pxj; Mon, 31 May 2021 04:34:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUPHkGtX6NGPL6/+XSP1eZn4aA+4ztA5nyE5XzEyxjwYRsxfoioHuWTnSuZ35Pcta6uago X-Received: by 2002:a5d:914a:: with SMTP id y10mr16648439ioq.156.1622460866726; Mon, 31 May 2021 04:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622460866; cv=none; d=google.com; s=arc-20160816; b=yJqup55V21S4g463IDQ4mL2NXSCjBW/6ApWJrv1qPDSYg/wtKrWlEJRPntsfhe+Cfz aXiXVFck+y4in9rmFLsqi0ug2ERC+yCjlHHWMHutWAakFg9aM9blxeEK7eF1T00l/QPF BEZRpIowdPvyCivsmB+CSNwyA2CphipUfHOhhaaLkgqwsS0uQ632zhLNFPjE48EvAPKb xXfnbsnyAaGYF4p7mJhMNedKcALdO4rKBHHb7+zh6IIQs8nlF7hNhqLX/DXXQWZeHrDI p71ro9hIpe/6Xaxa5PP2yN7khoyuhXUZMI/tDInwTzvHidkiWX9A+oiJWg6gUcYqn6/X yBFQ== 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=r3QrY/uDAlxbmSiPcq2dTQZ/GOIjlE9Ied6yDBeJWZY=; b=i9UG7SlVvsqgyNrif+vdC5AgQZViTrV3lNNPJB/8RsQq/Den+BnyBS8Q7h0hKy+Eoc FNDQ37L9wyf3XCXIfdquSOddI6bHbADbS3YabP5yXppUQRsFWLuVNl2cU+zMIUENepFh +VU51WIutaqctOZLh7FcafeQjmk3zSjdO+rRoiUgF6MwcXRceHRcnmkgacueixRdpLQl 7FGlMR/L5SBT4z0fS66TNc0s/IAENHCai4136X2uAWjdKrK+/IYz/eNDwHSJ68gZNPqm SVte4sRPAANahsXsY8WoNaKaORkSetovziEBumzYd6pAyaQWms+T7Vzp6/kIyZD2YwVb QdtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KLXKf6jA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si10010776jat.103.2021.05.31.04.34.12; Mon, 31 May 2021 04:34:26 -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=@suse.com header.s=susede1 header.b=KLXKf6jA; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbhEaLfR (ORCPT + 99 others); Mon, 31 May 2021 07:35:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:36568 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231164AbhEaLfN (ORCPT ); Mon, 31 May 2021 07:35:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1622460813; h=from:from:reply-to: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=r3QrY/uDAlxbmSiPcq2dTQZ/GOIjlE9Ied6yDBeJWZY=; b=KLXKf6jASDzzfqDTufBEdIPJLOcQ00opaF4Ew8+hoFfymQILtLvpjdGFCQBsoMkyQBscIW +oK/mQc04nXjM0KXIYHq7eQlbKziYi2U6sAQ9h2mYlrZqVsS25cAyuqHAaoIvuXH/dyXeL 0jDefYqIikzS8rPXVV8Rni9kuoIevjk= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 06D08B4C1; Mon, 31 May 2021 11:33:33 +0000 (UTC) Date: Mon, 31 May 2021 13:33:32 +0200 From: Michal Hocko To: Aaron Tomlin Cc: linux-mm@kvack.org, akpm@linux-foundation.org, vbabka@suse.cz, willy@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] mm/page_alloc: bail out on fatal signal during reclaim/compaction retry attempt Message-ID: References: <20210520142901.3371299-1-atomlin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210520142901.3371299-1-atomlin@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 20-05-21 15:29:01, Aaron Tomlin wrote: > A customer experienced a low-memory situation and decided to issue a > SIGKILL (i.e. a fatal signal). Instead of promptly terminating as one > would expect, the aforementioned task remained unresponsive. > > Further investigation indicated that the task was "stuck" in the > reclaim/compaction retry loop. Now, it does not make sense to retry > compaction when a fatal signal is pending. Is this really true in general? The memory reclaim is retried even when fatal signals are pending. Why should be compaction different? I do agree that retrying way too much is bad but is there any reason why this special case doesn't follow the max retry logic? -- Michal Hocko SUSE Labs