From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B693DC43217 for ; Wed, 19 Oct 2022 13:06:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA9226B0071; Wed, 19 Oct 2022 09:06:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E329A6B0073; Wed, 19 Oct 2022 09:06:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CD2126B0074; Wed, 19 Oct 2022 09:06:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B71236B0071 for ; Wed, 19 Oct 2022 09:06:30 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 81C9D120396 for ; Wed, 19 Oct 2022 13:06:30 +0000 (UTC) X-FDA: 80037722940.19.094192E Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf16.hostedemail.com (Postfix) with ESMTP id 114E718002B for ; Wed, 19 Oct 2022 13:06:28 +0000 (UTC) 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=ltxh6lxhvT92TP0SNmx2VMAM1oTzzEXuHTECeCwVWiQ=; b=JE56Tqv1TqmJwtoAXQRLbpFOry ZGMXaNEMq8pUUFjt/I7CnQ6keu4uQFUVe+trgltKz6Y6IvlVvWp1wfosHU6tdxUB5J0HqcY/i1BM1 DiFy6NVN1KYvxoQiYkWyAGFIcip958/MoWR4LX2CaFdUktd2gys9L6MoQz5U3V1jMDXWpeAotHLDR xdHu0nFh/QjkEaAAckkYuyUkOTuORV85I4JEyhHGcVee3tJZWOTcTG904nlEl80FZoM+VbUu9k4cU f97YyMKAa+98SD7n+uraWWoWLLZVF7HZEkq5kdeZG00r9Epyy7KDnJAXU1wrpJMK0Zt3FurOQulm2 67cw3CTw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol8m7-00BZ12-Cj; Wed, 19 Oct 2022 13:06:23 +0000 Date: Wed, 19 Oct 2022 14:06:23 +0100 From: Matthew Wilcox To: Zhaoyang Huang Cc: Dave Chinner , "zhaoyang.huang" , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, ke.wang@unisoc.com, steve.kang@unisoc.com, baocong.liu@unisoc.com, linux-fsdevel@vger.kernel.org Subject: Re: [RFC PATCH] mm: move xa forward when run across zombie page Message-ID: References: <1665725448-31439-1-git-send-email-zhaoyang.huang@unisoc.com> <20221018223042.GJ2703033@dread.disaster.area> <20221019011636.GM2703033@dread.disaster.area> <20221019044734.GN2703033@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666184789; a=rsa-sha256; cv=none; b=ENm2fPKrSZDubwRER1Zpt8XJhw5JRB9/luackaOYB3pnRXJPulhsxa1KOUS1wP6WS/4mu8 WvkrHHk8foU9qhf6bznp2haQAxcT7uPedHuYemp43CyKsRbSLuDxrXqz55ksKMb27IK28W tzFZBI7gP7L51RkLaEnCYOs8DwSWAdI= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=JE56Tqv1; dmarc=none; spf=none (imf16.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666184789; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ltxh6lxhvT92TP0SNmx2VMAM1oTzzEXuHTECeCwVWiQ=; b=bbjgLvtt1P5snFjP/Z2EjEmXLPuSki3oGT3mJ9uEyaIx/HtIN9aDSHO+EZhuqnbCZT4FQw VPHIXeQbFYPw7xaSpOb4kAMLV40KpCOGznga8K2UDhidHdDgU4Jdt3vUwuS1sjZ5+0t7os arAlmeVkwnlAQJxx6nFofKlv5X0UksU= X-Rspamd-Server: rspam05 X-Rspam-User: X-Rspamd-Queue-Id: 114E718002B Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=JE56Tqv1; dmarc=none; spf=none (imf16.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org X-Stat-Signature: y4zrd9bqkqnz681617pasn5k9xuyxbq5 X-HE-Tag: 1666184788-928387 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000106, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Oct 19, 2022 at 01:48:37PM +0800, Zhaoyang Huang wrote: > On Wed, Oct 19, 2022 at 12:47 PM Dave Chinner wrote: > > I removed the mapping_set_large_folios() calls in the XFS inode > > instantiation and the test code has now run over 55,000 iterations > > without failing. The most iterations I'd seen with large folios > > enabled was about 7,000 - typically it would fail within 2-3,000 > > iterations. > hint from my side. The original problem I raised is under v5.15 where > there is no folio yet. But 5.15 does use 2MB pages in shmem. You haven't really provided any information, so I don't know whether the inode that you're having problems with is a shmem inode.