From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE8DFC433EF for ; Fri, 3 Jun 2022 13:04:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239620AbiFCNEk (ORCPT ); Fri, 3 Jun 2022 09:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244503AbiFCNEj (ORCPT ); Fri, 3 Jun 2022 09:04:39 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 311912635 for ; Fri, 3 Jun 2022 06:04:36 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id m32-20020a05600c3b2000b0039756bb41f2so4305554wms.3 for ; Fri, 03 Jun 2022 06:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Xefno9BRMaznVjGWpJqFujzBMkdM7h0wTTai3ECWRnw=; b=DSGw+PQnD1zilwmt8UG6eTzMKU/KiULGYnvDBrk9sNsYbtG24Z5PJyRFmRQKDDVFRv JgVgL6yt5+ii1kPjHe8MdjYzvNOxzCkxJGnZ/8/ND5LADeQcHqwxG/aH2rNhEiVxlmG3 puB3M5aKburUFpm7XdPSf304z11btuh6vPQOrlmtBMXZUGaO8t2lY1YJC6zNK19HfQAV XOeQt11YIIs2MQBOeXl7c8WJ9fE9wc2RFPGjQw2BizqZyz2IoZCS6FJ4Cu1mAzx3P73g MXtyWvgLpNMxm0HTT2wwW3BgXOBOIEi1V+XG82LPalMIIS9zG+OWzD9/Q1WAwH635nS+ NvOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Xefno9BRMaznVjGWpJqFujzBMkdM7h0wTTai3ECWRnw=; b=6zKJXga7zb8SMtD8Y9aXYAqu42NJG8SzZ/q1NRboy/RepPOe1Rb7KHijQRx44LiP9Q j/ftBw1s3ujUFF4HGwRyu2zfPSBOMqWBzNjXjECHObHaCBafeQc3JCH3UN4Z8lZZJZei 9KTgj/jE8ciDgtTNFlNXVHqh0wnTonHVoPOs4rFYic+ikZm2GRVxRSTs3/QRQW/fA/G3 ho1tvQeo7QecgTYnPlFbq02ZUPjGLSXGW8XkjAxhQ/epopvGoF0I/wRBBrrab3L52U+E XlK6WG8+uUubKNX+ZUVpER13FYD+EFEfCDIsT2/FHZlPs5BBHxhcToba+4NybHNxsXwB Ufgg== X-Gm-Message-State: AOAM530Zz4Vz53uhSVmLzHwlGX2gQdjsx3hCgDylxPtSJXhoL8X50Kbi a3c64iieHB9K1HWVUQEe+0YzSA== X-Google-Smtp-Source: ABdhPJyFiUIiXqa6BnyIIt8MXwIskAfhmGqYHLaz1nxTa+gqvCOZ9W8kKM3ThR27pu9THilhOOyoaw== X-Received: by 2002:a05:600c:35c1:b0:394:8621:a1d5 with SMTP id r1-20020a05600c35c100b003948621a1d5mr37855746wmq.196.1654261474422; Fri, 03 Jun 2022 06:04:34 -0700 (PDT) Received: from [10.40.36.78] ([193.52.24.5]) by smtp.gmail.com with ESMTPSA id h21-20020a05600c351500b003942a244f53sm11611241wmq.44.2022.06.03.06.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jun 2022 06:04:33 -0700 (PDT) Message-ID: <324b506e-ad35-797d-d7d7-cfc8bec26e8e@kernel.dk> Date: Fri, 3 Jun 2022 07:04:32 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v7 00/15] io-uring/xfs: support async buffered writes Content-Language: en-US To: Dave Chinner Cc: Stefan Roesch , io-uring@vger.kernel.org, kernel-team@fb.com, linux-mm@kvack.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, jack@suse.cz, hch@infradead.org References: <20220601210141.3773402-1-shr@fb.com> <545ab14b-a95a-de2e-dbc6-f5688b09b47c@kernel.dk> <20220603024329.GI1098723@dread.disaster.area> From: Jens Axboe In-Reply-To: <20220603024329.GI1098723@dread.disaster.area> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 6/2/22 8:43 PM, Dave Chinner wrote: > On Thu, Jun 02, 2022 at 02:09:00AM -0600, Jens Axboe wrote: >> On 6/1/22 3:01 PM, Stefan Roesch wrote: >>> This patch series adds support for async buffered writes when using both >>> xfs and io-uring. Currently io-uring only supports buffered writes in the >>> slow path, by processing them in the io workers. With this patch series it is >>> now possible to support buffered writes in the fast path. To be able to use >>> the fast path the required pages must be in the page cache, the required locks >>> in xfs can be granted immediately and no additional blocks need to be read >>> form disk. >> >> This series looks good to me now, but will need some slight rebasing >> since the 5.20 io_uring branch has split up the code a bit. Trivial to >> do though, I suspect it'll apply directly if we just change >> fs/io_uring.c to io_uring/rw.c instead. >> >> The bigger question is how to stage this, as it's touching a bit of fs, >> mm, and io_uring... > > What data integrity testing has this had? Has it been run through a > few billion fsx operations with w/ io_uring read/write enabled? I'll let Stefan expand on this, but just mention what I know - it has been fun via fio at least. Each of the performance tests were hour long each, and also specific test cases were written to test the boundary conditions of what pages of a range where in page cache, etc. Also with data verification. Don't know if fsx specifically has been used it. -- Jens Axboe