Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp809136pxy; Thu, 22 Apr 2021 14:04:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjpQXh9Lk5AySxdzapJwSvu72H9zOJJtiWQNBOTqqlBeDat+DXS7Esbfvnty+IBgHZYOxh X-Received: by 2002:a17:906:1c98:: with SMTP id g24mr602758ejh.457.1619125456798; Thu, 22 Apr 2021 14:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619125456; cv=none; d=google.com; s=arc-20160816; b=w5q8WhihqRHg+afYol7LYz2Z9kkHV67VgKJXD6SAU0MLTDTy0dH6h63nSA6iM/x1bE bSquOz6/0RSJDkw+1ol7khkRmYTul2SVitsSfaFzeDPXRJRV5NEFMDzBv6ILILszeRlT uLGnrPBitO9UuDmurRCAy/1Z8ho8tbR4g/UF9IBrPvLFCZgf15r5xfjUo25IrXPqPX7t LbAE7t89xTs4Zt10+kjiJjFBVaUHP9rX8h3qBz2+omnNQ2wudv9u+YNDOdcTVnEUlm8F MDheEQlHFWV1SbDJcTdZSgImyt+xw39l1kXc+aHmB/2Z2PQO3m+os5++x+g/jHJ9x20z OC9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=PJGbFEDXgln2eoLCBhZvWhLvCrmB1qaZfC8GLc0ceRY=; b=04VNnM0AHpg0Cxm/kLZCSmekC1mckKLfipRoFWtmn8q5NeWFqU/hyqKwnRSZf9z9vh YfFBoB8s1NXlo5uTmyxAPaBBvmWjWd7yMWFKugGFzdsU7lalN7SNb6Vk59WrlchCLzdZ 35FcPjYBe88S5uuXCQHwQVL4T+uvJwqVH2rmyb/fT6UKZVuQwy3pMW7gYE1raWuJL3Mp jGIvgBIoHGUuGZrzmOmxfgZmirMJHzxp1F1NxLLUeuFDNUNhOy2Pu5izGrt0g7GhvWEU nJC3TR5lo/d1llhN702vlXk+rawjI75F2DNWlmzBD9KQ/ickjZj09ea1TEGDG8tcS2r9 fsqg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si3390702eje.44.2021.04.22.14.03.53; Thu, 22 Apr 2021 14:04:16 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236949AbhDVVDd (ORCPT + 99 others); Thu, 22 Apr 2021 17:03:33 -0400 Received: from mga05.intel.com ([192.55.52.43]:62972 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236877AbhDVVDd (ORCPT ); Thu, 22 Apr 2021 17:03:33 -0400 IronPort-SDR: 9n87g+KJ8fXCPgQEawcNEx5p/BKNvD94pXDBul/SOs/RYY8J9CNgD0mxF4HgnZoCVHgXzvisqb hxi5qFu1TTaQ== X-IronPort-AV: E=McAfee;i="6200,9189,9962"; a="281301341" X-IronPort-AV: E=Sophos;i="5.82,243,1613462400"; d="scan'208";a="281301341" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2021 14:02:58 -0700 IronPort-SDR: BwxzlXGV6rYqGB38hPzKe9g1Uto1iOH898kNrc+p0jorGkvST92B6KWznxaC3wfi80KzXV+44q Q0BjTIddDrEw== X-IronPort-AV: E=Sophos;i="5.82,243,1613462400"; d="scan'208";a="455951434" Received: from schen9-mobl.amr.corp.intel.com ([10.254.72.4]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2021 14:02:57 -0700 Subject: Re: [RFC] mm/vmscan.c: avoid possible long latency caused by too_many_isolated() To: Yu Zhao , Xing Zhengjun Cc: Andrew Morton , Linux-MM , linux-kernel , Huang Ying , Michal Hocko , wfg@mail.ustc.edu.cn, Shakeel Butt , Hugh Dickins References: <20210416023536.168632-1-zhengjun.xing@linux.intel.com> <7b7a1c09-3d16-e199-15d2-ccea906d4a66@linux.intel.com> <2ea3318a-b17c-ec4c-5425-cb93e079a994@linux.intel.com> From: Tim Chen Message-ID: Date: Thu, 22 Apr 2021 14:02:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/21 1:57 PM, Yu Zhao wrote: > On Thu, Apr 22, 2021 at 2:38 PM Tim Chen wrote: >> >> >> >> On 4/22/21 1:30 PM, Yu Zhao wrote: >>> >>> HZ/10 is purely arbitrary but that's ok because we assume normally >>> nobody hits it. If you do often, we need to figure out why and how not >>> to hit it so often. >>> >> >> Perhaps Zhengjun can test the proposed fix in his test case to see if the timeout value >> makes any difference. > > Shakeel has another test to stress page reclaim to a point that the > kernel can livelock for two hours because of a large number of > concurrent reclaimers stepping on each other. He might be able to > share that test with you in case you are interested. That will be great. Yes, we are interested to have the test. Tim > > Also it's Hugh who first noticed that migration can isolate many pages > and in turn block page reclaim. He might be able to help too, in case > you are interested in the interaction between migration and page > reclaim. > > Thanks. >