Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp210683rbe; Wed, 28 Feb 2024 18:15:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXq7cm1qrMavABzoqwWG6t+u+katPv9H4Hsk/aq0A+izO0EB91/g7pGfoCtbz39m6Lrn+6hbT5yTu7uajNgofuWQjbuxKn2BicwAFmJ0w== X-Google-Smtp-Source: AGHT+IHuLZgOA3cFQPMKQA64rxa2k1WmKNQA+YSCy/KEDaLDy1Kr1xBRmVrN7jpoB76E5DnAxro1 X-Received: by 2002:a05:622a:150:b0:42e:bd03:6ada with SMTP id v16-20020a05622a015000b0042ebd036adamr3983qtw.36.1709172954349; Wed, 28 Feb 2024 18:15:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709172954; cv=pass; d=google.com; s=arc-20160816; b=qjWGUdqVNzrTpFUdDeIcWRHX17NR7EmyMY7nKaw9JuWOzG6EYbmMXfclIsiT5L5pNa WBrjOwB1Lbg/pEUsHr10IPM5ug4iQU0uHM5+9qtiLYwDMbg4wOPwaoA26RlCvtY+oiw1 iQuCrg2TAAxAeosZY72ghTwxLDHSZvthJrcyZKMgLgqjNba1LkoivZm0tP6FbooKH5Bk hiBBeDWy3sCqtWLJPSnYNkMpkm5jMqDv3+HaOug6d4yp2Lt6fvRCCMLhGKJDLDGMTd+U rmWkvwZ6LSxOuL25V2v2nZjJwU879D8lbS9TWHv63VTNmoLecMlaqqdRDfaMi2RzUFaE 6r2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k82qC/YmHMBHWFt7RMlbhQ42CGo9M2erm3qHEzqFqxc=; fh=7LUEO7BKazbHZd+NiG61WKNdthlqCC7Df9DNK43saa4=; b=jxfAE9uFZJ9oFPck71r7gY2SZqlw8Uu47WtX599SClOte6Ix2hnyBfAzMYhkHNgATW DSrY73c/wE38ngmgt+SyWNjgCtXSFS+mXRSrn4tL4XLGma2ZfGIEDl3JVizM03ozA+ge nFJm3Alf2FWjdY4WpqxTJqtBdNUYrk7AdbKo5keJmsRDtxYhTXCYXQAkisx/4MnUq3+g p9Nigf7BIZ4x4hqireyfj2djdnac6ry5cARG9wI9BlkJ8N90fNwoTEZl9uPX61ACVs7l 7yOrVF0MaYPa2goAng65ymFNtmKxl4INV96ppIwiO/o9PY9nuHha6P9M0xmXRr1UajBz Vuxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=24ZP7AFU; arc=pass (i=1 spf=pass spfdomain=fromorbit.com dkim=pass dkdomain=fromorbit-com.20230601.gappssmtp.com dmarc=pass fromdomain=fromorbit.com); spf=pass (google.com: domain of linux-kernel+bounces-86038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v13-20020ac8578d000000b0042eb09e32a4si520403qta.225.2024.02.28.18.15.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 18:15:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86038-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=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=24ZP7AFU; arc=pass (i=1 spf=pass spfdomain=fromorbit.com dkim=pass dkdomain=fromorbit-com.20230601.gappssmtp.com dmarc=pass fromdomain=fromorbit.com); spf=pass (google.com: domain of linux-kernel+bounces-86038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1F4621C232D7 for ; Thu, 29 Feb 2024 02:15:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2DCB374CB; Thu, 29 Feb 2024 02:15:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="24ZP7AFU" Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 E899B36AF2 for ; Thu, 29 Feb 2024 02:15:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709172929; cv=none; b=CpiE43b0TADGz1CjVF9YYK/pE198YTSFkYBuW7/o09FYL0cAfweuaiOCjMW1EKJNDAFS5qta2l9uUK11+BVTzevBQxyEMxvJURF0EEwiO6S7jzmqV1AppDU+EC5EoKLIh01orDk2JWfbZOWM+6CDnJEy39LnzjttV9l3ORmaIpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709172929; c=relaxed/simple; bh=gbK/8SPPoX50lcAPF/cWQzwwqAl+Hw5BLMUVJqzZZxU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AQNlADhtHaeT4Gk0d2IpcEioCq9BLwaUzVVmzxTAhABlxICb0T64cZy3c99Gib7iSJ1UxvOxLUy5xg9qW7++ZQPVP23LZAwcR9L9UHssBOV7q8ErKMPmkBn9plIKPEsV2JGEyAJ/vfG26In9ARTI5mOLuZg42hisMsjuahSFf3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=24ZP7AFU; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5d8b887bb0cso310301a12.2 for ; Wed, 28 Feb 2024 18:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1709172927; x=1709777727; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=k82qC/YmHMBHWFt7RMlbhQ42CGo9M2erm3qHEzqFqxc=; b=24ZP7AFUsGm90iTvAeh7kX7tO9QmyfmmTxt3PdS+tZHHmbYyw/Y6Z7BkmbALwmCggO WGjhZSqDSGUp8QMU1Utfowr5wZayAnFwJNDPV1tW/BRGLs360ohFMR17/ixmjdljd174 nqAdGrdT66S/tlM8Dbk5UNRr7igAzRd/tzzJ7k/CKK7SLP43Uz5fNkLM4FzU6ZiA1EMJ mGdegBAlG7fnOqRFDIRItIVgI+BkH4hGUeXKHNbPS8cF9zw+X/bm3hiSYIQZVNdOSogp dmNxaHrQ6iQHm9kssQF+RRuC6hg4VG4ysZdx8IuP4lOeWnCnCu8apDtEfHnHSbAVb44u 5rfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709172927; x=1709777727; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k82qC/YmHMBHWFt7RMlbhQ42CGo9M2erm3qHEzqFqxc=; b=J4PxSnqL/RKmwU5KGwbm04XKnqJUT14VT6cI6/qc1PBPuK0qY6LRSVZZyzK+Opc1+9 7Sz1di2DgJfS3bUggh4S3/HoZXLqzHbGbVyPcZfpuLSXZFVKgs67xWZpO+cu4RkyxUFB xmLjfrGtOjo10qbDnY9IY6SThCBPomx2GCgf9rva643obvEkiZ7cKqVI896jSGkv4gxV CI4sBApBPR1IY+Zr8j0QPhXGHgOVIcnvGzlub6r0cDZI1yCfK/5LmClT44GlVF66NDqo g1i6t7BogH9C65R5q86lmT+fYw/lLpEp+xbAeqW1LCbCJQzrTgNh10p3EfDqnYm+khKJ /E1w== X-Forwarded-Encrypted: i=1; AJvYcCV2P7knsrbvgaQS2RO/rB38n3N8BR1052WJmT5s5hh7frgYDuGtXrGBFNHKWO0Ya1afxiOnzFCICW0mKGldeNbIaz6a2SaoaKAwoBz8 X-Gm-Message-State: AOJu0Yyy3NU338q1HKZrKdsHkmAawv1R3CA5SJGjwCEmNIL0fuNG0Lvf fb0MchpY6mV+K6YgTK5sOHsexVjzWwJtdVnWlQYH/plCJG1V1v40wLygvTY2e/0= X-Received: by 2002:a05:6a21:1789:b0:1a1:2094:960b with SMTP id nx9-20020a056a21178900b001a12094960bmr1024668pzb.43.1709172927291; Wed, 28 Feb 2024 18:15:27 -0800 (PST) Received: from dread.disaster.area (pa49-181-247-196.pa.nsw.optusnet.com.au. [49.181.247.196]) by smtp.gmail.com with ESMTPSA id w16-20020a1709026f1000b001dc90b62393sm141163plk.216.2024.02.28.18.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 18:15:26 -0800 (PST) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1rfVxE-00Cupu-1S; Thu, 29 Feb 2024 13:15:24 +1100 Date: Thu, 29 Feb 2024 13:15:24 +1100 From: Dave Chinner To: John Groves Cc: Luis Chamberlain , 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, 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 Mon, Feb 26, 2024 at 08:05:58PM -0600, John Groves wrote: > 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 Won't change anything for the better, may make things worse. > 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% Most of the IO latencies are up round the 4-20ms marks. That seems kinda high for a 2MB IO. With a memcpy speed of 10GB/s, the 2MB should only take a couple of hundred microseconds. For Famfs, the latencies appear to be around 1-4ms. So where's all that extra time coming from? > lat (msec) : 100=0.08% > cpu : usr=10.18%, sys=0.79%, ctx=67227, majf=0, minf=38511 And why is system time reporting at almost zero instead of almost all the remaining cpu time (i.e. up at 80-90%)? Can you run call-graph kernel profiles for XFS and famfs whilst running this workload so we have some insight into what is behaving differently here? -Dave. -- Dave Chinner david@fromorbit.com