Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp38984rdb; Wed, 14 Feb 2024 11:59:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXl2VyiX2fXFz1StMBMiBhIXDjLAvMS+kW6OhQNeGoB9J9KOzlFZ7IRZWIIT4SA+pQX3pg91F1GmhSF0KalIbyRNCIyyHxJvNnP2fmwjw== X-Google-Smtp-Source: AGHT+IF7XFdnJu2dzbkZaVZA/qgiaUZZyRoGYZ+CP309c1pEcZimQQgWcpjFJqyvGGsD/c8OOP0A X-Received: by 2002:a17:906:1742:b0:a3d:7cd5:82c9 with SMTP id d2-20020a170906174200b00a3d7cd582c9mr202113eje.25.1707940761078; Wed, 14 Feb 2024 11:59:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707940761; cv=pass; d=google.com; s=arc-20160816; b=QpbJto7iTwQeJwAckb4DsIUrXB+zbZ246kwSTIRXGRRW4/U6Mf2if8bexh1Dz7qYxr HmcdLAlSry3YxZjdWbD2BwxqIY2MNtf7a/PLs+Ztdpf7zllkdS3840DetWwtat95kTEP LGXfYQhDV57Oi4dcIjAHEVjY1W7IG79jFIWJt4cyjCJAVgF1rF0qyvcq3MXiB0bsjmIJ ArfStk/Ldi8PuHmi9TTfj54HV3a38/v/nzsSCoVrb9Z5AeIkxqU3YTuS7lj9O+B6vP4v URwvb+ClIyMMIPeSjG6oSyRzgE1/eLaf3I4qcGYtzFVncVTj6deT+Z+RBTR3n5kIVNl8 Q/6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:content-transfer-encoding:content-id :content-language:accept-language:in-reply-to:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature :dkim-filter; bh=kvbTVEQV2U0t0xEud1N/gL2u/EkcZMJX2njmT1RmQQ4=; fh=hOYCenUoNm9iU57IuXeR8fM8tPcfWc4KJoxhnDx3aic=; b=Ql8u2awD/NyVAFR9YtNhoPFne2fSJdL0e3x3wb48YYg8gP70IECoWXDzcsn0P9zymN 605UiAdKjbPok4Dk3kJqzvU9xsJSTNtWFYvjdTxkGK0ZhXCpCvtFmABM9OSUCeToCr77 1ZCs49GM/4+A3AznUSCQ3tJ1JYGjwfNrBia/f2HFfNwGXrZDPWo8AkMwDekNViKGUlQR ZPs7qiGiqWMSRkuSKitJ+c+mQUBoqZ4w5H0jkdrrCWfRRcrbVgzykLAniafbpUAWvnLk 5unDb9Pzsv1Jqx01Gr+VDbn9bJJJZC8D+VAPOdYAJIQTTu+UkldzqDuEm68jmpkihNeD 74Aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=TnsCLdTh; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-65907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=2; AJvYcCW9jFNBuJLnK6NI1c4dUMbmhVf4FbpS/CLkQ9amWuCAFXzAkXkuGF4dqg4cQddLgeYoF1sE90CVlmclfqATk3pd5Fig3svZQQ2jTRYiPw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j26-20020a170906475a00b00a3d5ea0bf23si582956ejs.274.2024.02.14.11.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 11:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65907-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=@samsung.com header.s=mail20170921 header.b=TnsCLdTh; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-65907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 A7BF71F24F3E for ; Wed, 14 Feb 2024 19:59:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0428113DB96; Wed, 14 Feb 2024 19:58:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="TnsCLdTh" Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 5CCF713DB89 for ; Wed, 14 Feb 2024 19:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707940734; cv=none; b=HOiXeYwdIunLxpRXXhOOCSR5Xv46mgJl4SSZib9QcReNKld0piZ6G+oSvGQCEywa/2XHYo8e2QmtcqIxhj4WgfnL5rlR89MLOPj5PVlnhK7k8zx6IIIvGsi+tc1le+epALSR87xv6tJbaEDiTlAP6P2zQE6lbcImwMpzadvGxRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707940734; c=relaxed/simple; bh=p0Xqf5l5UHbMEjlOGdUqX0v0k/kHNtp57gnPKx5Qp3I=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:Content-Type: MIME-Version:References; b=XGyeKLxiYiCYzfu2Ct5URqV4eu+/Zv9K+Bz4RNpTOv7FZoOR+/kVTdKehCD8PqGAzIbNGel+A75fHdezf5AJ2lfz8nOHz+XOtRwZIU+SrZwCRbIIRp8RaNAdfZC59yqF2jvGUNp80wuDdi//ltTD+TNRQNAQPVxPUsPPIPKpalE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=TnsCLdTh; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240214194911euoutp026e63483a3e1dbd1fff06d4eb41053a7a~z0oTkvxrv1627016270euoutp02Q for ; Wed, 14 Feb 2024 19:49:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240214194911euoutp026e63483a3e1dbd1fff06d4eb41053a7a~z0oTkvxrv1627016270euoutp02Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707940151; bh=kvbTVEQV2U0t0xEud1N/gL2u/EkcZMJX2njmT1RmQQ4=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=TnsCLdThxogT96lb/v896uvU2OlICBc8AD0E7WHIhW05nG3Rs08ueJ5PjmE4wlcv4 jhr8h6KVCLYJ/ogzJtYQ3DMHUahBetB8Kx38a4QOO/fXALx95qFMnTeapV6Sp3qFrB tZ1iExSayNhts8L+0cpy6b60wUN/5w5Hydp7cFrc= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20240214194911eucas1p14e669af4aeca84e1455ec191ca66338e~z0oTLOyud2565825658eucas1p1-; Wed, 14 Feb 2024 19:49:11 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 07.3C.09552.7391DC56; Wed, 14 Feb 2024 19:49:11 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240214194911eucas1p187ae3bc5b2be4e0d2155f9ce792fdf8b~z0oSvgpvu2566525665eucas1p1E; Wed, 14 Feb 2024 19:49:11 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240214194911eusmtrp29b9fa61b1520cce94240425dcdbb6e75~z0oSuwOga0939409394eusmtrp2N; Wed, 14 Feb 2024 19:49:11 +0000 (GMT) X-AuditID: cbfec7f5-83dff70000002550-d1-65cd1937bf6d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F6.62.10702.6391DC56; Wed, 14 Feb 2024 19:49:10 +0000 (GMT) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240214194910eusmtip1b16ec3e3ce7b11edf9104c8d81d7b13c~z0oSi3uY70135901359eusmtip1J; Wed, 14 Feb 2024 19:49:10 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 14 Feb 2024 19:49:10 +0000 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Wed, 14 Feb 2024 19:49:09 +0000 From: Daniel Gomez To: "viro@zeniv.linux.org.uk" , "brauner@kernel.org" , "jack@suse.cz" , "hughd@google.com" , "akpm@linux-foundation.org" CC: "dagmcr@gmail.com" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "willy@infradead.org" , "hch@infradead.org" , "mcgrof@kernel.org" , Pankaj Raghav , "gost.dev@samsung.com" Subject: Re: [RFC PATCH 0/9] shmem: fix llseek in hugepages Thread-Topic: [RFC PATCH 0/9] shmem: fix llseek in hugepages Thread-Index: AQHaW2RT7xV/K52STUGwCHRBbQ9MBbEKRvYA Date: Wed, 14 Feb 2024 19:49:09 +0000 Message-ID: <25i3n46nanffixvzdby6jwxgboi64qnleixz33dposwuwmzj7p@6yvgyakozars> In-Reply-To: <20240209142901.126894-1-da.gomez@samsung.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFKsWRmVeSWpSXmKPExsWy7djP87rmkmdTDfZfFbWYs34Nm8Xrw58Y Lc72/WazOD1hEZPF0099LBazpzczWezZe5LF4vKuOWwW99b8Z7W4MeEpo8X5v8dZLX7/mMPm wOOxc9Zddo8Fm0o9Nq/Q8ti0qpPNY9OnSeweJ2b8ZvE4s+AIu8fnTXIem568ZQrgjOKySUnN ySxLLdK3S+DKOD3lJ1vBdJGKx60djA2MZwW6GDk5JARMJP7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MPaAimbniyu+es5kLDiuxFGckGmoxFxUnAgDn ZulO9AMAAA== X-CMS-MailID: 20240214194911eucas1p187ae3bc5b2be4e0d2155f9ce792fdf8b X-Msg-Generator: CA X-RootMTR: 20240214194911eucas1p187ae3bc5b2be4e0d2155f9ce792fdf8b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240214194911eucas1p187ae3bc5b2be4e0d2155f9ce792fdf8b References: <20240209142901.126894-1-da.gomez@samsung.com> On Fri, Feb 09, 2024 at 02:29:01PM +0000, Daniel Gomez wrote: > Hi, >=20 > The following series fixes the generic/285 and generic/436 fstests for hu= ge > pages (huge=3Dalways). These are tests for llseek (SEEK_HOLE and SEEK_DAT= A). >=20 > The implementation to fix above tests is based on iomap per-block trackin= g for > uptodate and dirty states but applied to shmem uptodate flag. Hi Hugh, Andrew, Could you kindly provide feedback on these patches/fixes? I'd appreciate yo= ur input on whether we're headed in the right direction, or maybe not. Thanks, Daniel >=20 > The motivation is to avoid any regressions in tmpfs once it gets support = for > large folios. >=20 > Testing with kdevops > Testing has been performed using fstests with kdevops for the v6.8-rc2 ta= g. > There are currently different profiles supported [1] and for each of thes= e, > a baseline of 20 loops has been performed with the following failures for > hugepages profiles: generic/080, generic/126, generic/193, generic/245, > generic/285, generic/436, generic/551, generic/619 and generic/732. >=20 > If anyone interested, please find all of the failures in the expunges dir= ectory: > https://github.com/linux-kdevops/kdevops/tree/master/workflows/fstests/ex= punges/6.8.0-rc2/tmpfs/unassigned >=20 > [1] tmpfs profiles supported in kdevops: default, tmpfs_noswap_huge_never= , > tmpfs_noswap_huge_always, tmpfs_noswap_huge_within_size, > tmpfs_noswap_huge_advise, tmpfs_huge_always, tmpfs_huge_within_size and > tmpfs_huge_advise. >=20 > More information: > https://github.com/linux-kdevops/kdevops/tree/master/workflows/fstests/ex= punges/6.8.0-rc2/tmpfs/unassigned >=20 > All the patches has been tested on top of v6.8-rc2 and rebased onto lates= t next > tag available (next-20240209). >=20 > Daniel >=20 > Daniel Gomez (8): > shmem: add per-block uptodate tracking for hugepages > shmem: move folio zero operation to write_begin() > shmem: exit shmem_get_folio_gfp() if block is uptodate > shmem: clear_highpage() if block is not uptodate > shmem: set folio uptodate when reclaim > shmem: check if a block is uptodate before splice into pipe > shmem: clear uptodate blocks after PUNCH_HOLE > shmem: enable per-block uptodate >=20 > Pankaj Raghav (1): > splice: don't check for uptodate if partially uptodate is impl >=20 > fs/splice.c | 17 ++- > mm/shmem.c | 340 ++++++++++++++++++++++++++++++++++++++++++++++++---- > 2 files changed, 332 insertions(+), 25 deletions(-) >=20 > --=20 > 2.43.0=