Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp240176lqp; Wed, 22 May 2024 03:13:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpJF/JEzfbuJgD4lAtibAkhMrvtGRG7KXZhB7v3dr4OAbJ+nAovf5M2wLtXlDC69MfS6gJpuxU4+QghehZwOVckXMu28yl6gO/OrTL9Q== X-Google-Smtp-Source: AGHT+IELBztIUhywMXr5IHuG6H4GptIdIr/cEobDk0uX8RsOTImu13YVd2HiTl7PiguThWBIpJXa X-Received: by 2002:a17:907:1008:b0:a59:ba2b:5921 with SMTP id a640c23a62f3a-a62281c7e99mr89104166b.72.1716372817326; Wed, 22 May 2024 03:13:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716372817; cv=pass; d=google.com; s=arc-20160816; b=Z7gFeQdxaDqYrYJGTUShK+YUixPb0YJE5BxXr/LAnINoKHXWcLoKyMJX64I6pZmXbW udItMxu18IP35OHQEQ9U1uVqV0a5Ps2ww+O2EPetinL3JUsSPQzM23AHFdl0YrzhPJm+ lUD8g0EhFyyTtqAZEYr7T1D21tdEGdzA6pBB3xKshDqqs5w/oPuZpoDV1/YMTUs8zxZ1 ayQ+2EjAVpej31TWjQU36hTy3+clk5o0mNISKXt6+dwgNqYHgbdblZn+X4kMovCBamHD 5i/AW7dg5j8TLPckkeZdMpFtpGk/2SpESMtxr0pPyFO2fqGnthMRYCbF0COJV/LD4wui JB7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:date:dkim-signature:message-id :dkim-signature; bh=vwogVyT1ERaJqCbtt35UMJYwBhprISHU+UzKOErpRZI=; fh=2U/TNI7aJQ1b9lE/v04BvhaJjv2g6GWaQXad90s/VEw=; b=Xf2Ax2foyWCG5G2Mc6IEahP2U/UaKQBAGSG1kDR8tGv54qVrZTeICrfdx4hV/Xc9yG sd1M2ZBcLY/hnEdFy3d1yLCnxWTt+vfWeuB2XKFFoHFd3NHpx5o+ZvIiqUDVrnnduA9M aV6KjWrbwb6m8spDtcC0QP1cCI+evxlzHr72kpUDXstBMfNQx+o1zUVstQR91jeU3KwL 7WcTRPsvHrefBFr4hamaltlq4Y74Y2hR2WqWKPDPDRfGMlDztqkHtHEuHQv3jOVDqJoV M0WTpjrJtK2YKx+otGvoW5CWkVogXAgiBHWSqz+oXZYYPOGqYDXriYwksrr5ueG0wjsI 45rw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marcinwanat.pl header.s=s2048 header.b=V2AzULBm; dkim=pass header.i=@marcinwanat.pl header.s=s2048 header.b=I6xvTTPg; arc=pass (i=1 spf=pass spfdomain=marcinwanat.pl dkim=pass dkdomain=marcinwanat.pl dkim=pass dkdomain=marcinwanat.pl dmarc=pass fromdomain=marcinwanat.pl); spf=pass (google.com: domain of linux-kernel+bounces-186040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marcinwanat.pl Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21c0fsi1507183266b.379.2024.05.22.03.13.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 03:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@marcinwanat.pl header.s=s2048 header.b=V2AzULBm; dkim=pass header.i=@marcinwanat.pl header.s=s2048 header.b=I6xvTTPg; arc=pass (i=1 spf=pass spfdomain=marcinwanat.pl dkim=pass dkdomain=marcinwanat.pl dkim=pass dkdomain=marcinwanat.pl dmarc=pass fromdomain=marcinwanat.pl); spf=pass (google.com: domain of linux-kernel+bounces-186040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marcinwanat.pl Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1322E1F22E25 for ; Wed, 22 May 2024 10:13:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C70981AC9; Wed, 22 May 2024 10:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marcinwanat.pl header.i=@marcinwanat.pl header.b="V2AzULBm"; dkim=pass (2048-bit key) header.d=marcinwanat.pl header.i=@marcinwanat.pl header.b="I6xvTTPg" Received: from mx.bitactive.com (mx.bitactive.com [178.32.63.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 970D11CD13 for ; Wed, 22 May 2024 10:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.32.63.155 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716372810; cv=none; b=eODo/E+6yVg7WgnMMVVqcGC9ZhKJodM/HginVjBZsCGvBpHUbprj9J+Rd9jeMz2xMgWwyS/2DfKxUREz8eVjVlBj2QWOgoZv3AYijkO4Hbirj8qEZOXVrQXC/3sxEjiqkXWsn6GunY9dWzNeP9VRopaDQ0MgwasKBROX2VFAr2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716372810; c=relaxed/simple; bh=f6uxh30zMm2VrV2fxQMmLGBXNp4mKz7OmD1+JtVasf0=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type; b=uxdCWpTAzZlryaQtCvLtideVB29p1UN/YSlgQIkuMI+tbk3mTwXAEAcauq/5MqYzpITuhS2UosindNSr/Q4meYW9Rxcflx/nEInkx0yVUJiv7UR+dbUlOQOJAtsdtO0h6AXRuA8tTwaW9ioBwGyZlZg6ebVv2L7ESz1APuRpBQE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marcinwanat.pl; spf=pass smtp.mailfrom=marcinwanat.pl; dkim=pass (2048-bit key) header.d=marcinwanat.pl header.i=@marcinwanat.pl header.b=V2AzULBm; dkim=pass (2048-bit key) header.d=marcinwanat.pl header.i=@marcinwanat.pl header.b=I6xvTTPg; arc=none smtp.client-ip=178.32.63.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marcinwanat.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marcinwanat.pl Received: by mx.bitactive.com (Postfix, from userid 1044) id 4VknFD5NZrz7mgc; Wed, 22 May 2024 12:13:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marcinwanat.pl; s=s2048; t=1716372800; bh=vwogVyT1ERaJqCbtt35UMJYwBhprISHU+UzKOErpRZI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=V2AzULBmkBbI9nSndOmNy+octXyzb/U9BiEy/QL5uOZRBgH0zIUZjxkSLns+Fy+Uz 8iRZWrX6tsTnrQQ5JQFmA09zFnRfh2ZfFyKbFtl30jn5+knOnOneRAyCau94izHf9Y Wr4EPCDrg2CLskc89HsiOZqEMu/DaG8QLn9NpkVY1+IRuulI+8HrXZblZN6DzVqh0J q5AJTgBRCDGQqPHTxo2bx6SweuoS3VmnYssR1D/yDkDMbhfosyt+JGJk+6SXbOkg6q eOlPgmM8uCTkKxqnoXRJjQpaV6WIzgYiHywUvXXdxB1wCuxYHze/xQL92I+HU9eJLh cGQ1uOOM6404g== X-Spam-Level: X-Spam-Virus: No Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marcinwanat.pl; s=s2048; t=1716372794; bh=vwogVyT1ERaJqCbtt35UMJYwBhprISHU+UzKOErpRZI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=I6xvTTPgd8AbX5YRJV4/QLxDN2cp6/xs9z/YtVk3Dfl+0zUUWh61BNanaJ01aAKqJ YEVB27YWFa1YLIfKpMAuvauphmQUHWoQd5L/ftsOxlF7NPU46SwGUjVM1vK+O5vdY5 qwhRmLwq1W6CL5dxcpT+TdV/Y5VDX3+AWfLEpSLmSDAi7Zc3UpckjDHdCvdqFO+nnB iZmoVozdyzkZGrMF9QMK6geNKj+pBZMqTrcVGkn1kCAkYHQCUipui6IJKNWnBzqtwb fRzPRGDYSUoRNBicZ/+d5y5TnbizkWChYSIH7xJax9bf3AVyNMZOfEYRRSjERfB7L2 Ntqptwirdv4qw== Date: Wed, 22 May 2024 12:13:12 +0200 Subject: Re: [PATCH 1/1] mm: protect xa split stuff under lruvec->lru_lock during migration To: Zhaoyang Huang Cc: Dave Chinner , Andrew Morton , "zhaoyang.huang" , Alex Shi , "Kirill A . Shutemov" , Hugh Dickins , Baolin Wang , linux-mm@kvack.org, linux-kernel@vger.kernel.org, steve.kang@unisoc.com References: <20240412064353.133497-1-zhaoyang.huang@unisoc.com> <20240412143457.5c6c0ae8f6df0f647d7cf0be@linux-foundation.org> <2652f0c1-acc9-4288-8bca-c95ee49aa562@marcinwanat.pl> Content-Language: en-US From: Marcin Wanat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.6 at mx.bitactive.com X-Virus-Status: Clean Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: On 22.05.2024 07:37, Zhaoyang Huang wrote: > On Tue, May 21, 2024 at 11:47 PM Marcin Wanat wrote: >> >> On 21.05.2024 03:00, Zhaoyang Huang wrote: >>> On Tue, May 21, 2024 at 8:58 AM Zhaoyang Huang wrote: >>>> >>>> On Tue, May 21, 2024 at 3:42 AM Marcin Wanat wrote: >>>>> >>>>> On 15.04.2024 03:50, Zhaoyang Huang wrote: >>>>> I have around 50 hosts handling high I/O (each with 20Gbps+ uplinks >>>>> and multiple NVMe drives), running RockyLinux 8/9. The stock RHEL >>>>> kernel 8/9 is NOT affected, and the long-term kernel 5.15.X is NOT affected. >>>>> However, with long-term kernels 6.1.XX and 6.6.XX, >>>>> (tested at least 10 different versions), this lockup always appears >>>>> after 2-30 days, similar to the report in the original thread. >>>>> The more load (for example, copying a lot of local files while >>>>> serving 20Gbps traffic), the higher the chance that the bug will appear. >>>>> >>>>> I haven't been able to reproduce this during synthetic tests, >>>>> but it always occurs in production on 6.1.X and 6.6.X within 2-30 days. >>>>> If anyone can provide a patch, I can test it on multiple machines >>>>> over the next few days. >>>> Could you please try this one which could be applied on 6.6 directly. Thank you! >>> URL: https://lore.kernel.org/linux-mm/20240412064353.133497-1-zhaoyang.huang@unisoc.com/ >>> >> >> Unfortunately, I am unable to cleanly apply this patch against the >> latest 6.6.31 > Please try below one which works on my v6.6 based android. Thank you > for your test in advance :D > > mm/huge_memory.c | 22 ++++++++++++++-------- > 1 file changed, 14 insertions(+), 8 deletions(-) > > diff --git a/mm/huge_memory.c b/mm/huge_memory.c I have compiled 6.6.31 with this patch and will test it on multiple machines over the next 30 days. I will provide an update after 30 days if everything is fine or sooner if any of the hosts experience the same soft lockup again.