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 D16FEC433EF for ; Tue, 14 Jun 2022 13:23:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235368AbiFNNXW (ORCPT ); Tue, 14 Jun 2022 09:23:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235101AbiFNNXV (ORCPT ); Tue, 14 Jun 2022 09:23:21 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69A033C731; Tue, 14 Jun 2022 06:23:20 -0700 (PDT) Message-ID: <5964648e-c192-5d31-4373-eeb1400c1855@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1655212998; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DPDKgoi2sQuyu3iB0vnEYnvYtjr6SChnRHnxBf8haak=; b=wvb7dg/GcPvDrofW5l8P9WDbhNU1qFT+guUXM+sZS9tKRskTsOoJUcAawEe9jyu3Hc9ZEz wc82Uo21xDbYpUItxCnxcP+cREzp/EpJx0WhtNV+kuy1+ZA8nGDMl+6Fsonuf2McFQiB7K uskzbF3aaITxx4dbMo/hs3dtQwun4k0= Date: Tue, 14 Jun 2022 21:23:07 +0800 MIME-Version: 1.0 Subject: Re: [RFC 0/5] support nonblock submission for splice pipe to pipe Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Hao Xu To: io-uring@vger.kernel.org Cc: Jens Axboe , Pavel Begunkov , linux-fsdevel@vger.kernel.org, Alexander Viro , Andrew Morton , Luis Chamberlain , Kuniyuki Iwashima References: <20220607080619.513187-1-hao.xu@linux.dev> In-Reply-To: <20220607080619.513187-1-hao.xu@linux.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 6/7/22 16:06, Hao Xu wrote: > From: Hao Xu > > splice from pipe to pipe is a trivial case, and we can support nonblock > try for it easily. splice depends on iowq at all which is slow. Let's > build a fast submission path for it by supporting nonblock. > > Wrote a simple test to test time spent of splicing from pipe to pipe: > > > Did 50 times test for each, ignore the highest and lowest number, > calculate the average number: > > before patchset: 119.85 usec > with patchset: 29.5 usec > Hi Al, Any comments on this one? Regards, Hao