Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1662172rbb; Mon, 26 Feb 2024 18:06:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUEPseG8p8TmSNW6hR/1unADRFe+3kZDyK89qHV0b+PEanwvnQjZwpmwbE3H3seSwTbl6dRw9cMxdcRTe4CJTu9bizf5Raxek0S3lod5Q== X-Google-Smtp-Source: AGHT+IFmtx8Lc36dEdGGaZ8kgR1YgU3FnuAv0qgX0vEjhBHjQTY0zReEDDFSZ5PF816SSez+ph8X X-Received: by 2002:a9d:7a4f:0:b0:6e4:2fdf:64ac with SMTP id z15-20020a9d7a4f000000b006e42fdf64acmr9719925otm.16.1708999579311; Mon, 26 Feb 2024 18:06:19 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i17-20020ac84891000000b0042e4337a43esi6076775qtq.799.2024.02.26.18.06.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 18:06:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=CRGBNlO7; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-82576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82576-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 06BE61C21883 for ; Tue, 27 Feb 2024 02:06:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FC6C10A0D; Tue, 27 Feb 2024 02:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CRGBNlO7" Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (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 6E35E6AB8; Tue, 27 Feb 2024 02:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708999564; cv=none; b=Kthp/R/DAH270bCs41CQzNMV6/wA9OnMyTbQrOdzVE6Dv9ta1HJ+T573Co3A0a21lVYvZTT7kS4Cv1v7Z4UN+1iX61HZ7nePCQFv9Gw4Ayou/iY3oEhuw+n1VVc14mIMm19JIJxLpj8YgXKuqPmzcbD4KFuDKlPKdDb4PczgV3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708999564; c=relaxed/simple; bh=p/sc65/Y89SirN+8xPleSpJF18VTWd6zEoKYs9P9wXk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U47XXXdJ8CQBmysujd3RAkgpRQcAB+B9rpcvdLWugBw/+8mZoBRxG6IgEEF4wNajT4A/0Lt6rJW7N/Bx4utFEyI0Uigx/OQheHri5DKYR/U3/rXU5RA9xVZHZnUA+XBCjUmzC0kdvhQgs9h8DXqMMRZOviIKz2Lg2+F+VuHZWlU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=groves.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CRGBNlO7; arc=none smtp.client-ip=209.85.167.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=groves.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-3c19b7d9de7so913148b6e.2; Mon, 26 Feb 2024 18:06:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708999561; x=1709604361; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=SV9pHyGiurUhVbqmy78OWf51SeUPEW4JNQf5fgdiwuI=; b=CRGBNlO7UZnfTJ8bHk1Ux1PBlxWC7y8l0DB4lzHt7VD1dAcr9Vv4rfcqj/koOoCOtK Ke28TwSzuwfpdawJkU4x8/krDBLZhj+lp/wS3w7DYyq8lhXdJieJzDHyU+rofZxSQYiG F6517wCsvVr0T0l+DwXLyR9i2g95wA2qZczdyBsjLDO/5VkW3bs6Sr+0pCu0IBT9QQa8 Xsu7U/g9IhVcRcUOfHDRnMmKKkxAcNqKtOYeKP6CPtLgnLc2FFfc3IjuZ9mpy/fwV8jg 1f96q3bV7GRz1v0sk4bR10fp92CZ5uCeK6VWuPvM/06SejBTwm4K8XsBJg/VSyl3BJl5 vL1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708999561; x=1709604361; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SV9pHyGiurUhVbqmy78OWf51SeUPEW4JNQf5fgdiwuI=; b=X5D18owrsL/cWUyKbxnv3RN56be69HSLCDVAODFi0lP6AxMP2IXMtbFYLZqiZUmcmG 6Is3DUEOtDvrHtLGfYPy2HOEtbXlTJEq+D4HqznzN0HVLtw8J0KHF+D5uIY75drPcwz+ e3wjVwOURrDZoXy45jO4VrrOBa1WY0HMvd/ZHbX01pVreiHjL3lvMviWSHgwzZsSWg04 RXI7VZRpXlm+2yBiLr0/bBJoQ7CYi23zH5LMaqyyzQkXsx1T3XFcbzgk73iXr6mOVpQi hcKwNiANwCBgM59yXd/eB+ybpRLp7C/e5HWDadhcPUbP/2eUSjTXajUOsEQVIxOvKH4u dEug== X-Forwarded-Encrypted: i=1; AJvYcCUjI2JW/3KsfKxC5GiCziwGqDlAq083SWxo/fB6u2KBN4QrmfhZLAQmzQEmzqWbavDpND2KqDCcUeNXCGYUKACRFntlcHLBGPXGS7KxiFTatnw4/gwFPHfzBTsRYffkG3wIsDjMj5+2FUhl5B17mOA0RMODV9TCxMyE9zN4URZsDi5R3qMkkFTglP9WDZxQ70HD+kqchBwUr0szUEzNTIVK7Q== X-Gm-Message-State: AOJu0Yzcl3XN6mhDVwHMVqb2hTYQQlv9rUnN90FcO4VVXwS8Fyk7o1ad e/Ft/gQtIzoDL37hatjgMVVHCWYvmPBrfE3MkngpiEqH9iroxbsg X-Received: by 2002:a05:6870:7315:b0:21e:877d:78d5 with SMTP id q21-20020a056870731500b0021e877d78d5mr10124312oal.50.1708999561459; Mon, 26 Feb 2024 18:06:01 -0800 (PST) Received: from Borg-9.local (070-114-203-196.res.spectrum.com. [70.114.203.196]) by smtp.gmail.com with ESMTPSA id t22-20020a0568301e3600b006e12266433csm1343052otr.27.2024.02.26.18.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 18:06:00 -0800 (PST) Sender: John Groves Date: Mon, 26 Feb 2024 20:05:58 -0600 From: John Groves To: Luis Chamberlain Cc: John Groves , Jonathan Corbet , Dan Williams , Vishal Verma , Dave Jiang , Alexander Viro , Christian Brauner , Jan Kara , Matthew Wilcox , linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, john@jagalactic.com, Dave Chinner , Christoph Hellwig , dave.hansen@linux.intel.com, gregory.price@memverge.com Subject: Re: [RFC PATCH 00/20] Introduce the famfs shared-memory file system Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 24/02/26 04:58PM, Luis Chamberlain wrote: > On Mon, Feb 26, 2024 at 1:16 PM John Groves wrote: > > > > On 24/02/26 07:53AM, Luis Chamberlain wrote: > > > On Mon, Feb 26, 2024 at 07:27:18AM -0600, John Groves wrote: > > > > Run status group 0 (all jobs): > > > > WRITE: bw=29.6GiB/s (31.8GB/s), 29.6GiB/s-29.6GiB/s (31.8GB/s-31.8GB/s), io=44.7GiB (48.0GB), run=1511-1511msec > > > > > > > This is run on an xfs file system on a SATA ssd. > > > > > > To compare more closer apples to apples, wouldn't it make more sense > > > to try this with XFS on pmem (with fio -direct=1)? > > > > > > Luis > > > > Makes sense. Here is the same command line I used with xfs before, but > > now it's on /dev/pmem0 (the same 128G, but converted from devdax to pmem > > because xfs requires that. > > > > fio -name=ten-256m-per-thread --nrfiles=10 -bs=2M --group_reporting=1 --alloc-size=1048576 --filesize=256MiB --readwrite=write --fallocate=none --numjobs=48 --create_on_open=0 --ioengine=io_uring --direct=1 --directory=/mnt/xfs > > Could you try with mkfs.xfs -d agcount=1024 > > Luis $ luis/fio-xfsdax.sh + sudo mkfs.xfs -d agcount=1024 -m reflink=0 -f /dev/pmem0 meta-data=/dev/pmem0 isize=512 agcount=1024, agsize=32768 blks = sectsz=4096 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=0 bigtime=1 inobtcount=1 nrext64=0 data = bsize=4096 blocks=33554432, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=4096 sunit=1 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 + sudo mount -o dax /dev/pmem0 /mnt/xfs + sudo chown jmg:jmg /mnt/xfs + ls -al /mnt/xfs total 0 drwxr-xr-x 2 jmg jmg 6 Feb 26 19:56 . drwxr-xr-x. 4 root root 30 Feb 26 14:58 .. ++ nproc + fio -name=ten-256m-per-thread --nrfiles=10 -bs=2M --group_reporting=1 --alloc-size=1048576 --filesize=256MiB --readwrite=write --fallocate=none --numjobs=48 --create_on_open=0 --ioengine=io_uring --direct=1 --directory=/mnt/xfs ten-256m-per-thread: (g=0): rw=write, bs=(R) 2048KiB-2048KiB, (W) 2048KiB-2048KiB, (T) 2048KiB-2048KiB, ioengine=io_uring, iodepth=1 .. fio-3.33 Starting 48 processes ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) ten-256m-per-thread: Laying out IO files (10 files / total 2441MiB) Jobs: 17 (f=170): [_(2),W(1),_(8),W(2),_(7),W(3),_(2),W(2),_(3),W(2),_(2),W(1),_(2),W(1),_(1),W(3),_(4),W(2)][Jobs: 1 (f=10): [_(47),W(1)][100.0%][w=8022MiB/s][w=4011 IOPS][eta 00m:00s] ten-256m-per-thread: (groupid=0, jobs=48): err= 0: pid=141563: Mon Feb 26 19:56:28 2024 write: IOPS=6578, BW=12.8GiB/s (13.8GB/s)(114GiB/8902msec); 0 zone resets slat (usec): min=18, max=60593, avg=1230.85, stdev=1799.97 clat (usec): min=2, max=98969, avg=5133.25, stdev=5141.07 lat (usec): min=294, max=99725, avg=6364.09, stdev=5440.30 clat percentiles (usec): | 1.00th=[ 11], 5.00th=[ 46], 10.00th=[ 217], 20.00th=[ 2376], | 30.00th=[ 2999], 40.00th=[ 3556], 50.00th=[ 3785], 60.00th=[ 3982], | 70.00th=[ 4228], 80.00th=[ 7504], 90.00th=[13173], 95.00th=[14091], | 99.00th=[21890], 99.50th=[27919], 99.90th=[45351], 99.95th=[57934], | 99.99th=[82314] bw ( MiB/s): min= 5085, max=27367, per=100.00%, avg=14361.95, stdev=165.61, samples=719 iops : min= 2516, max=13670, avg=7160.17, stdev=82.88, samples=719 lat (usec) : 4=0.05%, 10=0.72%, 20=2.23%, 50=2.48%, 100=3.02% lat (usec) : 250=1.54%, 500=2.37%, 750=1.34%, 1000=0.75% lat (msec) : 2=3.20%, 4=43.10%, 10=23.05%, 20=14.81%, 50=1.25% lat (msec) : 100=0.08% cpu : usr=10.18%, sys=0.79%, ctx=67227, majf=0, minf=38511 IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued rwts: total=0,58560,0,0 short=0,0,0,0 dropped=0,0,0,0 latency : target=0, window=0, percentile=100.00%, depth=1 Run status group 0 (all jobs): WRITE: bw=12.8GiB/s (13.8GB/s), 12.8GiB/s-12.8GiB/s (13.8GB/s-13.8GB/s), io=114GiB (123GB), run=8902-8902msec Disk stats (read/write): pmem0: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00% I ran it several times with similar results. Regards, John