Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp73923pxj; Thu, 20 May 2021 04:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA8/HZxKL++OKHroJt8zpzncrFAkbRwnO4pH/WemXuzgPsqcSqf4cHXKw7NO3Q/BeJGy7K X-Received: by 2002:a17:906:fc0c:: with SMTP id ov12mr4276863ejb.301.1621511660012; Thu, 20 May 2021 04:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621511660; cv=none; d=google.com; s=arc-20160816; b=LroJIiq+ia5Q1UjhicGJSxlxjvVspfWrBEjIop749ZMna/jChzfClTZ1LheeDABufe k69aNYLUum1wQQmFb+GQcegdEAxgCmWBvch53S6bIVo5ZfVCr1iyqFR0ormzVGVsN7n+ UUD+ZlvnyqElc17Sp0kbrCVaz+uyJOvMF9RUDUp+AaPtbmWgoW0C3GH99Iy0T/zyEBJw jlses8dTVBuW52yHnfOPSbcTSK3QorLZDaARZ4XZghhCuAopurGyIzk0wt9yTks4JjPc NPPkaDBNaXCZMGzGeyc/KnyDTa4pNwPxFOtj4lbXlOt5y4UznHQfSofZSqjTRSY0IQUi IQwA== 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=JpfMFQcb7AirTe17RSUZLi9Pz4fcJVglBdNk+Vh+nI4=; b=DA8hqRaPcYyFDUyqLiBxJl3qXA2cT3d2m/W+vb2zzXKqbsEnFdepPoblBRnh6ejLq7 AD/K5t+sYFj4I7I9R9uaAw92Yj/EZbL4jlbbL+beTEzBYKOsh/3m1gdnsPJKM476JnC1 MWHQfjw9ZgDkQuyuxbNJ/3DLeefPBmSKAZjEuqWIOF0CpSt8Bn5DQUgbQSUkkn814Vxy WMPTWUPMlIMdkTUisnoZ7176ZT9WkyHRKFSoNyXiOyVf4D6QT71h4e/KO9QD32FRzs25 oSQT978dzBDRFit7qI6sNDElYtisSaIVRPytReEuJ4hO/dKRnW6LzVocpu7AnFvOyi6v eAQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HJ43+Daq; 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 p2si1672949edy.83.2021.05.20.04.53.55; Thu, 20 May 2021 04:54:19 -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=HJ43+Daq; 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 S242235AbhETLwG (ORCPT + 99 others); Thu, 20 May 2021 07:52:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:49200 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243033AbhETLo0 (ORCPT ); Thu, 20 May 2021 07:44:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621510985; 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=JpfMFQcb7AirTe17RSUZLi9Pz4fcJVglBdNk+Vh+nI4=; b=HJ43+DaqP35WwTcHZhWYnx/cASC9etecqUGfK49r+xlmwKTom7QwXb8RuZ+iLrl2QF1Q55 K+SKdLTD/XlLfLgKkacg/g7I0yq+8EG1C2qkqmzORMgNAb/vSn8lmZ6tkWx6W3qWJJjaHC berfRGa0I5TQdVn+VQ/Dw7hTrZoUUNk= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-389-FzfxsE8uOQSuXfW3X_s_lw-1; Thu, 20 May 2021 07:43:01 -0400 X-MC-Unique: FzfxsE8uOQSuXfW3X_s_lw-1 Received: by mail-wr1-f71.google.com with SMTP id 7-20020adf95070000b02901104ad3ef04so8541230wrs.16 for ; Thu, 20 May 2021 04:43:01 -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=JpfMFQcb7AirTe17RSUZLi9Pz4fcJVglBdNk+Vh+nI4=; b=Vn9a+ypu4T65EpiS2G6fZmVWuZf09FPuNCYDuNZFQA5rEBpJmp+dl5xMJQloDmGV4G LCBTrww4u6etWxWZ88nVCr6Eyx3cZRhefZ8FDXIVUXWA2hhQHrlhx7THReMfZOOBFvxw 0JAirDjyDMvcQPlFk9pUFW0mk6g2N1Yo5rOfD3FcvDi850P72Qd7NUIruO+VcWJNYU18 kfYD37GPiM1R6yCsuRNrdR9StpnkenQbRREKAsh3HlxM6r6/G7DAPwrKUYJhzoMRS6Pj 7PCbBAMPN0Bb2IbnASLD/t+JwVUJ5f6feyw5NPjAM6qPRyWYpxr5C4Uh5jeiiYSpMAAx hJyQ== X-Gm-Message-State: AOAM5319aGw9K/8yVWlcgp6myV9dVrncohLoGCTlJ9e4X2a7P1ue4dFM tx6gPBpF0xQRS74xQFXSI9LUEuPJUJyLpGroxtY0OGbWQXqffzHAD0oEEU5/u2601Hk1Od0KgkQ oMc5+AB4W+SF2BJeGA6ALnkQ= X-Received: by 2002:a5d:498c:: with SMTP id r12mr3855237wrq.31.1621510979336; Thu, 20 May 2021 04:42:59 -0700 (PDT) X-Received: by 2002:a5d:498c:: with SMTP id r12mr3855226wrq.31.1621510979140; Thu, 20 May 2021 04:42:59 -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 f16sm2950825wrm.47.2021.05.20.04.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 04:42:58 -0700 (PDT) Date: Thu, 20 May 2021 12:42:57 +0100 From: Aaron Tomlin To: Vlastimil Babka Cc: Andrew Morton , linux-mm@kvack.org, mhocko@suse.com, willy@infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mm/page_alloc: bail out on fatal signal during reclaim/compaction retry attempt Message-ID: <20210520114257.huqhkqsdrhohn3u5@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: <20210519201743.3260890-1-atomlin@redhat.com> <20210519213455.97ff95f0124b4120787f8314@linux-foundation.org> <9b11dcd8-bc3b-aae9-feb1-43543bf9e22f@suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="p5hnecwugz7gnprh" Content-Disposition: inline In-Reply-To: <9b11dcd8-bc3b-aae9-feb1-43543bf9e22f@suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --p5hnecwugz7gnprh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2021-05-20 12:20 +0200, Vlastimil Babka wrote: > On 5/20/21 6:34 AM, Andrew Morton wrote: > >=20 > > What observed problems motivated this change? > >=20 > > What were the observed runtime effects of this change? >=20 > Yep those details from the previous thread should be included here. Fair enough. During kernel crash dump/or vmcore analysis: I discovered in the context of __alloc_pages_slowpath() the value stored in the no_progress_loops variable was found to be 31,611,688 i.e. well above MAX_RECLAIM_RETRIES; and a fatal signal was pending against current. #6 [ffff00002e78f7c0] do_try_to_free_pages+0xe4 at ffff00001028bd24 #7 [ffff00002e78f840] try_to_free_pages+0xe4 at ffff00001028c0f4 #8 [ffff00002e78f900] __alloc_pages_nodemask+0x500 at ffff0000102cd130 // w28 = =3D *(sp + 148) /* no_progress_loops */ 0xffff0000102cd1e0 <__alloc_pages_nodemask+0x5b0>: ldr w0, [s= p,#148] // w0 =3D= w0 + 0x1 0xffff0000102cd1e4 <__alloc_pages_nodemask+0x5b4>: add w0, w0= , #0x1 // *(sp += 148) =3D w0 0xffff0000102cd1e8 <__alloc_pages_nodemask+0x5b8>: str w0, [s= p,#148] // if (w0= >=3D 0x10) // go= to __alloc_pages_nodemask+0x904 0xffff0000102cd1ec <__alloc_pages_nodemask+0x5bc>: cmp w0, #0= x10 0xffff0000102cd1f0 <__alloc_pages_nodemask+0x5c0>: b.gt 0xffff= 0000102cd534 - The stack pointer was 0xffff00002e78f900 crash> p *(int *)(0xffff00002e78f900+148) $1 =3D 31611688 crash> ps 521171 PID PPID CPU TASK ST %MEM VSZ RSS COMM > 521171 1 36 ffff8080e2128800 RU 0.0 34789440 18624 speci= al crash> p &((struct task_struct *)0xffff8080e2128800)->signal.shared_pe= nding $2 =3D (struct sigpending *) 0xffff80809a416e40 crash> p ((struct sigpending *)0xffff80809a416e40)->signal.sig[0] $3 =3D 0x804100 crash> sig -s 0x804100 SIGKILL SIGTERM SIGXCPU crash> p ((struct sigpending *)0xffff80809a416e40)->signal.sig[0] & 1U= << (9 - 1) $4 =3D 0x100 Unfortunately, this incident was not reproduced, to date. Kind regards, --=20 Aaron Tomlin --p5hnecwugz7gnprh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEeQaE6/qKljiNHm6b4t6WWBnMd9YFAmCmSzsACgkQ4t6WWBnM d9YBLBAAoJRnCKOIc23LwajJoo5uFmSIWFNDG9YM0/iHSaiWQNA5zBCqa3VtINlS ORjeBzihiNP/juBqX6YRUQ1C+BjA+Rcw7tSyFLhoxmmgE9Zha+saLlCZUOTruqCz oTbAcLi8D3vGW4NP6MMLjl5RFPsmiqHluUOpMXUQ2J2UEeJzfU2IUZl32HgP8TA5 ofQHyCvaKrLnmMmioxNuuxzXsNH0kpd5oRhDABTEjokOlCmKcXeB7npEQP1rf3xB dGdGF4Nra3W5m+eNolpomdoYGNDaCJ3k/UFnomXyPk0hFknJ6Ijy5tpVT2eqmS8v 1Qo6UTwLoPu6cjtXD5mccCTX85RVxUYSNAA8I4omR8uQyN3OgSt8LEKUjSb3j9YM CkoEKPzb6hLUt9za2PMGmaCd54rYX4irwvXVJgzWE70bQw6g6FFRwQLIKc4sSQzD Jg7t2QN5BPsMyAwJg4wdYdrKq/WthdcmldU3cJ104/BJSFOomyZiTI911X7T3QvY tG7/uvStfw/3vWI5YeX4p2DrjSzoU+flE95rgTd6z/hWCk4F4ELdwSJoCPgsWa6t 1lpA5OAG1RElhtqcfeCU2xM1v3Yc3TpkD6KzI0RqlybEMCRQdkFlQzCZGPd5RfSq s6Z/MKHyi/rlW6DFe+CK2+6v7Tw3GR02wr1acAfhcAI3DO1hhdU= =r3HN -----END PGP SIGNATURE----- --p5hnecwugz7gnprh--