Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp930868pxb; Fri, 22 Apr 2022 14:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9mDAdCBdK/hrC45MPUXQDHtIJRUZTVNj3ftr+ct5HpO6vD711O5CRkmIan8Oi4yc4jVwE X-Received: by 2002:a17:902:6b01:b0:158:be18:5be7 with SMTP id o1-20020a1709026b0100b00158be185be7mr6496274plk.112.1650663514702; Fri, 22 Apr 2022 14:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650663514; cv=none; d=google.com; s=arc-20160816; b=X88KI8mj4jbypj4ALxzd1ompcFAxPvY3q5yjjtH0oPw/yPzjrRwvVBnSyjscpY3dZ9 QxfNbVfhiw6XroCHE1HHtF9DoMB40EOTfebvIql/2UMIIiJV5sGD8f2xyu1N/V0XiqNF n0WDgUl1TKWNydFFvUjNH/QNv9nY+mdkWbM0t5iqsXP8T5HwF4okGQv29G7Q4FIArPcn 0E9MaAG/OnVGaapJMe9+50H2ZkX1HlmwaIGGySZhycZ8WZ4TlAkI0SaGrs92CxELhbfL fckUpU1r819pAZezFxNN8s65bdEfx9APHXvhfNjb55h8dTHDenDjG1BlCW4nHWZEFg9k rqhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OnaT88kKaWw6w1Cp0yt09+nLI76XyPMEYpLQ3b36fos=; b=Py+SAeAxM6u76jgPU5SOhQA1x2c0w/4hYF71P6tfyvNozU8WHe502NmhnqPcJWHPd/ idOjpPQnX2WuAgAweZ2yj16WUKoGYyKB9GYK7SbUDYyygZpEZQ0+OMaYL7ciwpQdaXjv dLpyD5xklQmCgJgF4xWukTmLKM3zzVPoZQwllHkv7Df8gyyK+FfpqMpnr9t3Zi/K2L92 RaGPp7swj36QlMnQJSQ1/Sbe9lYRuHyGYwhwwennnNJyVEKxxfukKunJKdItj9dvzdi1 2snpyedDGPHoaYAv+zUkfDjXtC0dnYD629Vje8CyUTq9FwDoQwB+Xq+7U5RNUkO9lxi5 GCHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=bc3blIS5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t7-20020a170902e84700b001586190b7c1si10402312plg.528.2022.04.22.14.38.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:38:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=bc3blIS5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 18EA730B654; Fri, 22 Apr 2022 12:46:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447278AbiDVM2Y (ORCPT + 99 others); Fri, 22 Apr 2022 08:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447430AbiDVM2W (ORCPT ); Fri, 22 Apr 2022 08:28:22 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9ABA527E9 for ; Fri, 22 Apr 2022 05:25:24 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id s18so16171715ejr.0 for ; Fri, 22 Apr 2022 05:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OnaT88kKaWw6w1Cp0yt09+nLI76XyPMEYpLQ3b36fos=; b=bc3blIS5FEqV+MAK424O7VVp33TheOJpq/THYAUuOJe+Ko01w8Ijf6kp5bT+1sECaO 2n0Y8PxwaGpC3+Q9KNHlucWEUk0/SyOWz2cYlZK2gfLLXVT6R4k5cUsHUqVDYCEU+M3h Di2peUMSr8imE70+d37zB1WYA3N/3wWyklumE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OnaT88kKaWw6w1Cp0yt09+nLI76XyPMEYpLQ3b36fos=; b=E0FTkOTBhfVqRewXx5vmK35OhxjMC3Xh23UnhBlMi8xBiPmpWF9uqdGUSlR8sKnGT1 g++kQ2/Ch7ltpw52RvlpeXWDfo3HFxLuMxChiT08PjW52VOjonAYhfURZs5+GkhRmrm0 8ma/ACR4kcgb1unw/XGhIPf0MF5cvhB6FF+U19r69N0q6o32N2ens6BLoskxZ+IyH8JD ZAzi38viRcstkIcsRO2AxaLKxtKz7dHirpLtOkA5Qza2zDrC1rfqtC0WKuu80XnGm9g/ MTl4tt6hmTKcrltF796idD3q0MQpZxQ4A2HBovhf65UBqBUVUidfgwD3xl25lhGEX4Xj aK+Q== X-Gm-Message-State: AOAM53217NwGJsdk/o+ZwjJwBOcIc43I7uWprYKtDzyQydcignJ9S18u Tlsp5rpos0ShJTcqSKziEEjSYdYCxrb/VGpx9Fy6Pw== X-Received: by 2002:a17:906:a05a:b0:6ef:a44d:2f46 with SMTP id bg26-20020a170906a05a00b006efa44d2f46mr4014433ejb.192.1650630323396; Fri, 22 Apr 2022 05:25:23 -0700 (PDT) MIME-Version: 1.0 References: <6ba14287-336d-cdcd-0d39-680f288ca776@ddn.com> In-Reply-To: <6ba14287-336d-cdcd-0d39-680f288ca776@ddn.com> From: Miklos Szeredi Date: Fri, 22 Apr 2022 14:25:12 +0200 Message-ID: Subject: Re: RFC fuse waitq latency To: Bernd Schubert Cc: Linux-FSDevel , Linux Kernel , Dharmendra Singh , Boaz Harrosh , Sagi Manole Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Mar 2022 at 15:21, Bernd Schubert wrote: > > I would like to discuss the user thread wake up latency in > fuse_dev_do_read(). Profiling fuse shows there is room for improvement > regarding memory copies and splice. The basic profiling with flame graphs > didn't reveal, though, why fuse is so much > slower (with an overlay file system) than just accessing the underlying > file system directly and also didn't reveal why a single threaded fuse > uses less than 100% cpu, with the application on top of use also using > less than 100% cpu (simple bonnie++ runs with 1B files). > So I started to suspect the wait queues and indeed, keeping the thread > that reads the fuse device for work running for some time gives quite > some improvements. Might be related: I experimented with wake_up_sync() that didn't meet my expectations. See this thread: https://lore.kernel.org/all/1638780405-38026-1-git-send-email-quic_pragalla@quicinc.com/#r Possibly fuse needs some wake up tweaks due to its special scheduling requirements. Thanks, Miklos