From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.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 780F12848A0 for ; Mon, 20 Oct 2025 16:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976907; cv=none; b=CcnMeYLgMIpLgCFJMT6d1sLn6MlQOKdsmpaWbPsksfQJbgIOggsqarjAF44tijEvImc5R6G/pwK6xMCX4Owic2t1Ma7DiAuRNQwAnqvnP4cw8ecmRdWTFfxjcJE+IwY/j6KRw+Nf3HoTXaf0jJQC7DAyu8xgNxlxacewhmyH7zU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760976907; c=relaxed/simple; bh=8lL3IXeG+mgbAJ5epE3wz0kdWbYNQgQz2eN/UlKcfLU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eWp/9WEyphMoIMtc8Ocqdf8LX2b6XkME9KiTSzyJjOGq+DZnKa9ocC1JAb0RG244czOYKpedXEkeEcO8NNMK+DdVO0MIV+soJvGXZQSz7zgXXPbakEvOjitQ/39Aiuz5Pm/SLscO4MB0+O4NYYBxj6yIdJNCXkUqWqJJazB0Hzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=AZ7os7Xn; arc=none smtp.client-ip=209.85.166.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="AZ7os7Xn" Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-430c17e29d9so20308755ab.1 for ; Mon, 20 Oct 2025 09:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1760976902; x=1761581702; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GuT0JHbPcYTfEuqlH1OnDzBY4HhyngWZygNPiqiL6cU=; b=AZ7os7XnqQkOedwYlHFlxyNlPkhLYm3b6dnV+qhrAiXQPM9RP13iDw3XL2dkEcuy/O 7O97D3s/iBFuSDS6Y+RFSFszghT4vLnmdlYnk2i+wZ32tAi/gR4bnv7zBc5SXQHa1N79 upBY06SV13Z/Vs1akoSiNMgKvblqGbSzXwNR6H4bgvHFYS6WPhi5h38jHZwXsyYwszfB GShhyu1uDCgL9uETKRWI0A5G9h3uPxo/qT6wjZfgTjwPIFX6S7EAQwPGOmkyFCYyJi6T HEtUaZNa7sm+jl857lfEv33hW7m/yu2OgbzDGNsSAae9+gGbuEktiljE/kGGlfUMPdX7 acdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760976902; x=1761581702; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GuT0JHbPcYTfEuqlH1OnDzBY4HhyngWZygNPiqiL6cU=; b=YUAUMVyA++vPa0HZqy+y0tTwp3/ocEie8wrMHEnW2qPDmkCTBvZ8+hrX2/JfoHcwAx 7Gfpm3DhGELI6F9Iu+ERb+gGi9mstsy2Burlt6AZNpyC0/Cum8WIFNnktTC+G1/dDkOF 2DYrkcPYsRrHMijABB/BeZuM7Rj3gFCWhtYWbyBkOYrHspX78cLDOlW0ZpsJXD/59yPG 8L+mwcu5mqE1r62le0vGNfYDJsUq1bbGywvBIIsK6npybsTOMgz1ww0dVsjCLmKnwgvL W7h3p1NzBC9kOLwC0eM3TwT1ctVAXVmqZneVfoAd629an/Wu8etkKl1WUqzph5KCEkxG Uh+Q== X-Gm-Message-State: AOJu0YxbugO9xtc8eQPwVW9ShOPO302T02o4BV64jYa9EzwsmQZK8dnt ourmGtd29vZKbttTJ770kMX0DaVwhJ3qFULtYESIVY7IkazklsFhHf2XqSh3YBy1wGg= X-Gm-Gg: ASbGncsGah/Qx94ppkUoGcFQQo2sZW2nMhjGWOa8z11NxG46Fv70Jq7dNWaDXXjmGbz HnX+c1BxJUmQ0B60MPfjH5h7d61J/mp8+S8dHXLV4nWUgJytxVtED6XCHnoqGGHimMQk11xPLla aK9lTP8o3/Km0SG3QHP71fc/eDcx7GmXyKzRZ11ytZQ5gAS331U+torWUEha73kWvocj8WO5qHn FYeHpuQDy25KDCKX5WBTCaxQuAt+ZL1fiEAd1/HqhgXZA1FASK8ZlsJj4m9KycbD/Nt+WeihpRk UoTpyufnyab5zfEDKkSubPCQ7VMD3N5JVi0ejT+JnpLfuyqrIUV6Q6ewXUFDPbxMqS9V1wlFpoT ACgeZF6aYP5qlQyGsJpVCmQbKhymLFT0HCthV+jDRcFLnw23ATgLvKx2h7iZo7z1DyklxMR3/Q5 CY4G98arc= X-Google-Smtp-Source: AGHT+IEg7aNW+ZUCQvJhhIhNbQySu2xGeib3GggROeVAsMVhwuxESxCYxh/yLlXaS3BLij6x0H4Tcw== X-Received: by 2002:a05:6e02:451c:b0:430:ea1f:ff82 with SMTP id e9e14a558f8ab-430ea1fff96mr509775ab.23.1760976902458; Mon, 20 Oct 2025 09:15:02 -0700 (PDT) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-5a8a9771eeesm3084320173.50.2025.10.20.09.15.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Oct 2025 09:15:01 -0700 (PDT) Message-ID: <1207928c-ad37-4ba0-b473-d38b9b2ce13c@kernel.dk> Date: Mon, 20 Oct 2025 10:15:00 -0600 Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] fuse: fuse support zero copy. To: Xiaobing Li , miklos@szeredi.hu Cc: linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, bschubert@ddn.com, kbusch@kernel.org, amir73il@gmail.com, asml.silence@gmail.com, dw@davidwei.uk, josef@toxicpanda.com, joannelkoong@gmail.com, tom.leiming@gmail.com, joshi.k@samsung.com, kun.dou@samsung.com, peiwei.li@samsung.com, xue01.he@samsung.com References: <20251020080043.6638-1-xiaobing.li@samsung.com> Content-Language: en-US From: Jens Axboe In-Reply-To: <20251020080043.6638-1-xiaobing.li@samsung.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/20/25 2:00 AM, Xiaobing Li wrote: > DDN has enabled Fuse to support the io-uring solution, allowing us > to implement zero copy on this basis to further improve performance. > > We have currently implemented zero copy using io-uring's fixed-buf > feature, further improving Fuse read performance. The general idea is > to first register a shared memory space through io_uring. > Then, libfuse in user space directly stores the read data into > the registered memory. The kernel then uses the io_uring_cmd_import_fixed > interface to directly retrieve the read results from the > shared memory, eliminating the need to copy data from user space to > kernel space. > > The test data is as follows: > > 4K IO size gain > ------------------------------------------------------------------------- > | no zero copy | zero copy | > rw iodepth numjobs | IOPS | IOPS | > read 1 1 | 93K | 97K | 1.04 > read 16 16 | 169K | 172K | 1.02 > read 16 32 | 172K | 173K | 1.01 > read 32 16 | 169K | 171K | 1.01 > read 32 32 | 172K | 173K | 1.01 > randread 1 1 | 116K | 136K | 1.17 > randread 1 32 | 985K | 994K | 1.01 > randread 64 1 | 234K | 261K | 1.12 > randread 64 16 | 166K | 168K | 1.01 > randread 64 32 | 168K | 170K | 1.01 > > 128K IO size gain > ------------------------------------------------------------------------- > | no zero copy | zero copy | > rw iodepth numjobs | IOPS | IOPS | > read 1 1 | 24K | 28K | 1.17 > read 16 1 | 17K | 19K | 1.12 > read 64 1 | 17K | 19K | 1.12 > read 64 16 | 51K | 55K | 1.08 > read 64 32 | 54K | 56K | 1.04 > randread 1 1 | 24K | 25K | 1.04 > randread 16 1 | 17K | 19K | 1.12 > randread 64 1 | 16K | 19K | 1.19 > randread 64 16 | 50K | 54K | 1.08 > randread 64 32 | 49K | 55K | 1.12 > ------------------------------------------------------------------------- > > I will list the code after this solution is confirmed to be feasible. Can you post the patches? A bit hard to tell if something is feasible or the right direction without them :-) -- Jens Axboe