Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1419692lqj; Tue, 4 Jun 2024 00:20:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMfhFmJ+gIXJOPBlkhC/e1B07CE5wk1n99nNCavf1Jij06vnWRtsF0DY5Mfy9o+o60U64xC7hPSbRdMoDQ8CdYzEI8rAniOqfOG2Xdag== X-Google-Smtp-Source: AGHT+IGN2GrdjVMC8ynJpQxKKM8MXAbuT4ByU2rwO++JiHVzUuYA4ubKwH0aB5y4cT1+zwpQ4yT9 X-Received: by 2002:a05:622a:1aa6:b0:43e:3f8f:a909 with SMTP id d75a77b69052e-43ff528e56bmr123371521cf.30.1717485655832; Tue, 04 Jun 2024 00:20:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717485655; cv=pass; d=google.com; s=arc-20160816; b=ijcUvHy2nY+nYurnsdqy8OVtq6XPuLVNyKXp7Nip4Kdq8rLznMRqAhb5kliGMBI8uH k53p/Sp1Abnx5iCtyyIoxyAqyArAWf5yfRjJzKmcnuFX5gaetfMO2DGi6qG3I4h+cmU/ 6TCaa4UUU/72i/ixKAY1K9KRblK0VZWsEHaEeGYtWIiewEHzbafLBReaqyFjfyNVeZNG 3FrKLvZQf9vPSFyRwxdB7pfxsek+OHpQxU7f7VbwLpHB4UO5W6NELIhNgGty1YcyLv3y DichveEh6mI7QyKiyw0mxyfN+VPDZx6QX6573sXSLuQhXw2vQToZtaPXE78l7tluiDYM i4Vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=HvkJ2QsK5Vmmx/tl05h2LcGE0mbAgMwnA13TfKa1R1A=; fh=buQ1rV6fS5bQim2MA5kzxIBBiBPryY7UNKAkyoY82AI=; b=m80H8faSimwuVeg08mK8HRSSQ2a7AZFAokjzhiDY1n59XMmyJmkbhaU0zbW2UEchxF VPNf68lp+osZvClTo0ffr8hqTG0XU6aU5MDnF05vWl9/cKzHuauMcSjTTCLaFASzHJFl ofY6cMCTx9QIzPWYKhZO+C82NpoWvdIIG2wR4mjIyzhzz/M4CrKdROqO/i1st6uhD+el Ywow/7Z3aY9Q0iLLRVTW0c44I9x/1Z6mmU7RaH2YrM6kOte7cybtktKsxgt/TVf0l7Sa SIftggTNzQHulmdKe1RvmRwc+RHMSsdfkvo6xE/TFb1dSyxUZtYcKEXDCeoDcstfZscg VrNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=IyASznn4; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-200146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-4402139cfc6si6792281cf.178.2024.06.04.00.20.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 00:20:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@szeredi.hu header.s=google header.b=IyASznn4; arc=pass (i=1 spf=pass spfdomain=szeredi.hu dkim=pass dkdomain=szeredi.hu dmarc=pass fromdomain=szeredi.hu); spf=pass (google.com: domain of linux-kernel+bounces-200146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=szeredi.hu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8C94B1C212BB for ; Tue, 4 Jun 2024 07:20:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC2CF140E3C; Tue, 4 Jun 2024 07:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b="IyASznn4" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 4176783CB4 for ; Tue, 4 Jun 2024 07:20:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717485646; cv=none; b=vDP3B1KLM71E6OPYvGI8xGjsb8hlJQ+slcnRc7oPGf0exHA6nzXOfI62zs7GqUd6v0mYyBqvSv9ha47bllAIiRqqEYvRKnft7TojGbF88xk8vJL2WmffCOx5CRIGvCAVSA4FHqb1HZk87iSbtu4DKtVe+/jp0DN4q5GSz/0Ag8o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717485646; c=relaxed/simple; bh=gk96MhHZ+qD4z+JC/CqDk/UP4VIXuPLVFDICmyRSxQ8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=UM5dA7FpBYunX38ocVzw5QxnntS5Ajg0tdFeiIxYWAOdMFY/ku63VvgPAEe1V4DP9FUqIXy9o2YYY7ndtB0aBIuc6lDvQYe3rtV/TZqRkyy/Pvh7EkUFFCRRO60kx+VeAlG2c6MA2tizJndNiWcGDrIscYgNxksHVLEObOb0z94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu; spf=pass smtp.mailfrom=szeredi.hu; dkim=pass (1024-bit key) header.d=szeredi.hu header.i=@szeredi.hu header.b=IyASznn4; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=szeredi.hu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=szeredi.hu Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a6269885572so916445966b.1 for ; Tue, 04 Jun 2024 00:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; t=1717485643; x=1718090443; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HvkJ2QsK5Vmmx/tl05h2LcGE0mbAgMwnA13TfKa1R1A=; b=IyASznn4cRNFaqUdupbE1heCLuT5urEiTz5tvhE/2drAaBklfjF1vuMttgcx0uoSPi PmQTl2rYJky1fg00u0ndwZSvdoJR0iT6zEZzELIdXLC/EsII/KqsMtlI8mr40eO/FtNy vPkhDrKDAs03AxYSpoWsNaw4b347C4x8tZc9s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717485643; x=1718090443; h=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=HvkJ2QsK5Vmmx/tl05h2LcGE0mbAgMwnA13TfKa1R1A=; b=HlVugYhcoj0rwL3wu61bn6P/IgfhtXVCFuULyuqKd7/A8K2qkTe83i91JNNETv1aXs TCHo9DSdAfcp4Y91/s0UNcJfPi5Lr5Nnb0UzOg29DUzFnEDcLB7Hkvyg83rSAcmSw3XF 3A/NgsnHyvvLt7+Eq9oCjBYZEllMPi2Scnb+juSir+r32bZDd9gctvEFFddl+giNnETH kr+GTTBz3YE6NwLEM2T+ntJU6kg+Qho4S54N0AyVFCsYSOWl5Ofis3qyd8p+/ivYlsLv 9WSzqES/og0G/66CsO2E8HB2FsMoeehoKexwv/OOaYDmHJU+VDm9Fb09fiqVhmKwRvt1 HPJQ== X-Forwarded-Encrypted: i=1; AJvYcCUfqVfSOo8BlIBfbtCJWbWKz1shr9u8L6sFkJ6ssewVNBHJMD7ifE/zcb1u+7LLk05OF/sf38C6agEkDIemVl7uKxBHgwhMsprFvsnT X-Gm-Message-State: AOJu0Yz7eX0Cpz5tJtVMw0Zg65fONUUwWvsMkVqVyuKFvu8HrMkkUy24 egraPGnAXr/hc10Qj5OFQZSz9GK/YyuWqmm4ViSnKcnFgTHIA34vnAD5DfqnMC0Eeb9YsY0rFXm LfIb0xbJEXnjHU/Bkn0CK74APuJ+hhbDnmgyIDw== X-Received: by 2002:a17:906:f299:b0:a59:c698:41ae with SMTP id a640c23a62f3a-a69545681d7mr135855966b.34.1717485643547; Tue, 04 Jun 2024 00:20:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <495d2400-1d96-4924-99d3-8b2952e05fc3@linux.alibaba.com> <67771830-977f-4fca-9d0b-0126abf120a5@fastmail.fm> In-Reply-To: From: Miklos Szeredi Date: Tue, 4 Jun 2024 09:20:32 +0200 Message-ID: Subject: Re: [HELP] FUSE writeback performance bottleneck To: Dave Chinner Cc: Bernd Schubert , Jingbo Xu , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , lege.wang@jaguarmicro.com Content-Type: text/plain; charset="UTF-8" On Tue, 4 Jun 2024 at 00:10, Dave Chinner wrote: > I thought we had PR_SET_IO_FLUSHER for that. Requires > CAP_SYS_RESOURCES but no other privileges, then the userspace > server will then always operate in PF_MEMALLOC_NOIO | > PF_LOCAL_THROTTLE memory allocation context. There could be any number of services that are being used while serving a fuse request. There's no well defined "fuse server process", as many people seem to think. Any approach depending on somehow marking the fuse server as a special entity will fail. Thanks, Miklos