Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1757220lqs; Sun, 16 Jun 2024 03:23:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXpxph6Ly1jje09IIQRYjIay/SxLde3hF1rOoUeqNKCoBa3YG/rKb7l1rRCx/KOMrm32gNBzr/ynHCywD1X5p/RjU/oNvqJKHgMWcFMaw== X-Google-Smtp-Source: AGHT+IG5qG++8ud92o+gip5bZ0yUIcUfZ+u8Cu0H9v1ImduSX0PSdmDXVsUQhJ6K7UF8oMfqN/hk X-Received: by 2002:a17:906:2e94:b0:a6f:569b:3ff0 with SMTP id a640c23a62f3a-a6f60d29747mr449483766b.26.1718533418927; Sun, 16 Jun 2024 03:23:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718533418; cv=pass; d=google.com; s=arc-20160816; b=w1NSliIC7alhn9P8XRrszkTybrkkSlDNh/xBfGcCRETvchkOf+wtjleW/NHqr73Hxx /iMw19xZM6MJJQMkPZpEHD1rNIyHfKDjvD66PCkwXTbmiFO0KjbKaDBE2ZxIVIVO2SSz V2tNJP2poOUvJqiEhIeIaMdTpMzzRfEn66X8C8MZ/GeCBXfk3p7eZKY3bzVyL9qCIRSg bzfMxEKxtsS9hkD5bcmusBjR0Fno9ZnBpkx2doYu4OZ959S0rkU4Bv4GwKILQ1snyAn3 oPSZEC0uoDvRtueDZbni+USxUFx3TC3AeqYmb3xwmCrf8b8aMKj3Fxt/hTtPd0/Ip5Rp 0mEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MSBxsPczZ+4pot3zvMVUtuvia7JJEO/t9QU4pSIhmLc=; fh=kGImxzr2Bvq+KMcQrgcwBS0H9qf9RPrN1A0U2tmsO6g=; b=fdSOIoTus9gaKyQYyNhS5PAA23RN9iYSqryN9Nnz6rVhxAuK/OOcOxCY999U0XTbK+ NasuaXia8/e4kEve3p1be1sfJooceqzWnq/2IQzZ7r7g/6AzzS3xwg3MCXeEMFw1CLvr aA9JQXR0CmUVAQVoYaPCNkgMt4VVXGXfaYkS7UgqajXSHVd8zUhetpE6ejWHWCS3uHwH iRp+xZAlqs6T92wnXYzfgxYUSRopQuWI22mPExzr7dj8YHMzCRuqWWzW2Zu1vKnooX6x W9Gh2xqhGB8IW0X76ECrSmmW4IR98stFdWNTeSd9ac2RrsjFWqs3gfVh+XZJImuFQQjD CMQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C12PPYTz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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-a6f56dfb0b0si356123266b.698.2024.06.16.03.23.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 03:23:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3858-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=@gmail.com header.s=20230601 header.b=C12PPYTz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3858-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 6EC631F21297 for ; Sun, 16 Jun 2024 10:23:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31B0A16C694; Sun, 16 Jun 2024 10:23:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C12PPYTz" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A689D481A3; Sun, 16 Jun 2024 10:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718533413; cv=none; b=LTIK52xpCqAIFCu3Knxo1R3EgG1yPvPefikLooRxYs0jin25qo9WrVkzdJ1YKKQaabuKWhLmfjnzOB71TCXScoyEP0K+oENLjogH5TcO6Cku1hM9B46QaFWnZUwQwE2+Clg7UAJseHD+O5+czYINShifFT6zghfLPlNKy5dnhvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718533413; c=relaxed/simple; bh=by8ohJEJs6lukJSLMe+E/tLehUWJmbmsLCVuB3MSp7g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=pTTxTOwoazFsHFWNhFaKXxmfczXwF2QlG0a292wjCujdPHzPkX3Q3RFBjgZAeeznH6JNxpQQeUwnQ6WNlKG2AZJj92KXUubUnEGEXZbBWNL0M5bWiSMB3binkhb8f/xszAaxgK1UiPzyZvR09TGC18RNI6PATiiGh8tTMxytT+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=C12PPYTz; arc=none smtp.client-ip=209.85.221.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-f177.google.com with SMTP id 71dfb90a1353d-4ed0abe8580so1104222e0c.2; Sun, 16 Jun 2024 03:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718533410; x=1719138210; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MSBxsPczZ+4pot3zvMVUtuvia7JJEO/t9QU4pSIhmLc=; b=C12PPYTz9h/ZJx7CkCEJ1ZhSkF3bp+FMzFdpdIbrs8D2WPVaeN/aKtRWQ3hxMe7ydQ M0mHihYih1NjUvAbkrSHVWqWGFhVy66bvg4oIJNAkjKPu5kTt6Lh8nEqfq+9N4DX6OMY PoTdoNK8rXfOmSemJT1eBMU20xjmeTSA7cWs6Clsd+j2K6PzQ6EfAUpCN5Qk6lmD0B4V GO01lrSrBxyhlhcy5LmKm2eNfjir6o5l6l8Tt2l4ngliaq7+6xp5r3oIXIyA99xj1RDx MHNlY+IiOyKK0UxeJo8J7v7HYm7rznjaz8Fr8Rutwq9PnbJyHqO/F+qAbWlGo5UlHJ5d AMBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718533410; x=1719138210; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MSBxsPczZ+4pot3zvMVUtuvia7JJEO/t9QU4pSIhmLc=; b=H7bkMQEnpuV2hiiyBSanjDm/bFFKpkAHXmxqj6j4RCQ+7NKnNaZyDZuEEZmmxPFL3m s5VIhW2CUSCfBsdo/fgkSgE97KcCiA5Vhfh+1laCEFmT6fFPo0jWTvTn9jIWkwgK/v/6 DHSkPoai36Tx8jZRJyYQ1UE+fy4T9g+Pl3I919SOPbTeaoueBtdE8iFepquYARvnJIbW lcavhHmZ3o+Kcbk78JmY0JxGd6cj8aTaT8CrM9RlhE7U1HnKbNcH5YH8pS4r2g7qU6mg QoW5gPYoQJXPKYzGTo8qrDDQG3bC+bVXd1gtZsPkL8qLhgXjLs15aO6JHeY8lTkF5IBv 5qoQ== X-Forwarded-Encrypted: i=1; AJvYcCWmOjVMdbAHDNdl8/hNVBKY7lCEDb50jsV0kkvj8xm7sTQ/k3DEeeriJAk3aaKsSfmJaJMHjWrKWrIbTicb/buJGt5vNS6Ggj1ZzZFyqK3kxvRmX4NDtrxm28rXKYbqgtVS1mkglQ== X-Gm-Message-State: AOJu0Yx+1zdl9ufc6zMeB1xdrQK5043uJsx8yKwVD9pwhPuvNSV7QXaW aiFuUgFPiUAxVZIdeGANxHJnRliSI38GLERSR7MXcJ6YIV8fj8jujf57+wbZ50gtV8zq0cfc68O eWJ1ymCRvUe1umyZWVGlCiF7Dc+o= X-Received: by 2002:a05:6122:20a5:b0:4eb:5d5b:a894 with SMTP id 71dfb90a1353d-4ee3e291ec4mr6496762e0c.6.1718533409829; Sun, 16 Jun 2024 03:23:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240614100329.1203579-1-hch@lst.de> <20240614100329.1203579-2-hch@lst.de> <20240614112148.cd1961e84b736060c54bdf26@linux-foundation.org> <20240616085436.GA28058@lst.de> In-Reply-To: <20240616085436.GA28058@lst.de> From: Barry Song <21cnbao@gmail.com> Date: Sun, 16 Jun 2024 18:23:16 +0800 Message-ID: Subject: Re: [PATCH] nfs: fix nfs_swap_rw for large-folio swap To: Christoph Hellwig Cc: Andrew Morton , Trond Myklebust , Anna Schumaker , Steve French , linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-mm@kvack.org, Barry Song , Ryan Roberts Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jun 16, 2024 at 4:54=E2=80=AFPM Christoph Hellwig wrot= e: > > On Sun, Jun 16, 2024 at 12:16:10PM +1200, Barry Song wrote: > > As I understand it, this isn't happening because we don't support > > mTHP swapping out to a swapfile, whether it's on NFS or any > > other filesystem. > > It does happen. The reason why I sent this patch is becaue I observed > the BUG_ON trigger on a trivial swap generation workload (usemem.c from > xfstests). This is quite unusual. Could you share your setup and backtrace? I'd like to reproduce the issue, as the mm code only supports mTHP swapout on block devices. What is your swap device or swap file? Additionally, on what kind of filesystem is the executable file built from usemem.c located? >