From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 1451B86340 for ; Thu, 23 Oct 2025 22:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761258467; cv=none; b=MbSph3Yf69VarDtohEItzTDjHPCV6f8mMoF1fwRh6PDzmBE2zdcSMzNyOW3Y9EoORDVyTzOftZsEmiH/9mNwyH+osDO0X2hYKQjdb55JGtan0g8DkT8PfktLBu3vdliglInx2Iw5FCHWogSmoqnbN0opTXydcHL6fJPLxsRUVLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761258467; c=relaxed/simple; bh=Ht/H4IDanITDdvpWF9h3fY89G36nY3NBYoaNv/vtMfA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Weh5zJ14VbsMigs2UYozVyGnp1vyj0nO8tY7gkV+Wp8ykoXkWCeWl4j34WVP0EGj2B49z4h+qigPIKfadhcDXchc/9rwrGblO7LpdDb0fF4/M8pvMNpQw2LowwVpi5Z1ZwLWHHyQrVAXgqOLSSV0MIch6L6iLzjSEpFdm0WX5b0= 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=OXTwMCnK; arc=none smtp.client-ip=209.85.222.175 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OXTwMCnK" Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-8608f72582eso77044485a.2 for ; Thu, 23 Oct 2025 15:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761258465; x=1761863265; 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=Ht/H4IDanITDdvpWF9h3fY89G36nY3NBYoaNv/vtMfA=; b=OXTwMCnKLi80zfWzgk51qNtwp0bsMbQRsS9hLJl0OlZ02O0+2TvdRQG0fglrAnX/UE CrZqJMxN0EHY/8DK3x7KM0P3KJ6gmAo9KwB++VkYEFm/Kg2c8rfpdde1P3OImzXq1p4q 481T576BySEX69+UX4yp5FFJSlzWTluW90Vlwr/aJjYUoDniNswMr5TaIMx1Vjo86VLu hltFqODLM8kDy115Ohj8TWHt0RF4kIdzqsPHQ3FR2Eqfi/OwwsY7QqgsliHrE8deRtyW 1ayEMmBLp9YyPlMfbsz2liHNeE1Uj8OoJuOGgyS6AiTj8d7VqhcsZjrOIRMLB7n8fa2v 4HVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761258465; x=1761863265; 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=Ht/H4IDanITDdvpWF9h3fY89G36nY3NBYoaNv/vtMfA=; b=pc7E0Up+SaIaA25xopHE2Fi7s7fA1sZ/gtL6HDCfsw/Ys1Rv16tThshetgNvCKD5Yg HiUTnFNYCyn2tucidM8CWP8UWhL5zm70XY0jpGqs6pSs5xnUHQHto1oEnTCWhkpWhtsi 03b9ivC0eneyBT5AM4qC14KPDyKK/wZVkUHt5RsWSMjTl3qYrkMHz5VzywTjX0WHp/xz arDJSrTcVdqFkWjqgMSkFHsoSPhPqHMcu0CzmXs+TG/nTu7mkUIoXQnFs1pQZ+F2w1PN dLnXJHHwnv3WLnQ3GJdpodPaqWu9JJDI8bau4T298N6kYtu3cNs3USaAYp6UVhBD1ebe Z2ZQ== X-Forwarded-Encrypted: i=1; AJvYcCXoQ0psIuYyXrE9kjl73iV38wa4NL9weoPCoqhEJN+AOzx4lCDtNn8WHvYYMO+LXlzsfCTcx/1aqA==@vger.kernel.org X-Gm-Message-State: AOJu0Yz00SQ8LEbVzyXG2bc6QyP2J0efrOF7gz8mKf9RV2XYRKhK9on+ vvdQrt777gHtPaa0jOECPUf2Zr5lRAyWCd8l/kOUY6LVPy+OOZFFv7OZ573ngFKA17attQkRyt6 v24ZxePLhMyuup7Keu9GlgzLRJ8NCGQ4= X-Gm-Gg: ASbGncvgLHevHsy9Gl6JFl1PoTBlG4d/m2XL+oLbAH8ZntjXLYt4ICGINynKBdxlkGU QR8tmbAwOi+HHPdA1LHXBCF/AZ1jbRAijl0SB1DOYy0rUfYpvKShqP+h7MzAa1ucdfikom/LEtN qcNVY3h+NHamnOZcjZNnl5t5bvBYI+olrgcvA6wbbFsFR04qav+mX0UdlLG5ZbrQoEYow5N3jCo 2DQw+5g8vt6DdPrKuH/FXNLUkkGFkLWuypvHDRLW3xbitFT0+yi/sKipU+2vab4yH4QRAAEAIEU /VPvRXO8Y9eqZ/I+aHDs8eWaew== X-Google-Smtp-Source: AGHT+IEqPSTAdbJIuw7V8OhE4iYhquEpQZEkg/hRnGLy7fsxyODr+iR2/8L3Tdpo3a789XZXj8WVS9ab4iXfSWNh0KU= X-Received: by 2002:a05:620a:4586:b0:89a:68c5:25e2 with SMTP id af79cd13be357-89a68c52a81mr980105885a.8.1761258464878; Thu, 23 Oct 2025 15:27:44 -0700 (PDT) Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20251022202021.3649586-1-joannelkoong@gmail.com> <539ebaba-e105-4cf3-ade4-4184a4365710@ddn.com> In-Reply-To: <539ebaba-e105-4cf3-ade4-4184a4365710@ddn.com> From: Joanne Koong Date: Thu, 23 Oct 2025 15:27:34 -0700 X-Gm-Features: AS18NWBRLx6d4Pi7z3Z4LF-7BAg8SzzICjuHP4C2-0sftJMPTo1_GSlYHJsX4kQ Message-ID: Subject: Re: [PATCH v1 0/2] fuse io_uring: support registered buffers To: Bernd Schubert Cc: miklos@szeredi.hu, axboe@kernel.dk, linux-fsdevel@vger.kernel.org, asml.silence@gmail.com, io-uring@vger.kernel.org, xiaobing.li@samsung.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 22, 2025 at 1:43=E2=80=AFPM Bernd Schubert = wrote: > > On 10/22/25 22:20, Joanne Koong wrote: > > This adds support for daemons who preregister buffers to minimize the o= verhead > > of pinning/unpinning user pages and translating virtual addresses. Regi= stered > > buffers pay the cost once during registration then reuse the pre-pinned= pages, > > which helps reduce the per-op overhead. > > > > This is on top of commit 211ddde0823f in the iouring tree. > > Interesting, on a first glance this looks like an alternative > implementation of page pinning > > https://lore.kernel.org/all/20240901-b4-fuse-uring-rfcv3-without-mmap-v3-= 17-9207f7391444@ddn.com/ > > At DDN we are running with that patch (changed commit message) and anothe= r > one that avoids io_uring_cmd_complete_in_task() - with pinned pages > the IO submitting application can directly write into header and payload > (note that the latter also required pinned headers) > > Going to look into your approach tomorrow. Thanks for taking a look when you get the chance. The libfuse changes are in this branch https://github.com/joannekoong/libfuse/tree/registered_buffers btw. Thanks, Joanne > > > > Thanks, > Bernd