Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1772519imm; Thu, 9 Aug 2018 01:31:35 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzgqxtAuB5Q9x8gwzbLP1rfNKbErKMdtunfuw3N4tBgaxGFmINnTBF3Tn14B8JksIm48g+M X-Received: by 2002:a63:ed07:: with SMTP id d7-v6mr1199255pgi.429.1533803495777; Thu, 09 Aug 2018 01:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533803495; cv=none; d=google.com; s=arc-20160816; b=DJP2efDHPNUj4GjwHezVvabRtl5h/xnA+s0gzV4K1UMWwBj1vmrFZYnG/oGs0+gD44 pfXC1MXH1N3+D1T2exFtILqhzXsfPHFb8Rvq1XKqTkF1rwrzo6i0Vox35qEu2olpto2g /oWJMnqYIgjFEycBtkGsRsmQc7lY/Wji+LHh0zEO8pd8JzRVKtoTEkqeLwx10ji8Zv7V ks8lruCOQ6vpDgothxBEtYQrusXMpLX/KAz5gU+61cJ7kaYlHct8soF+8zAg/TEZ2XuT OkqrrpqFbzesOne2ZukzHpCMhiaPrpsy83ShG4isIT2iEQy6EvDqgbsM35+tN2wG1ZTx ct8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=/sl4SLdRyWoDU6c666JvurRqjZDVtvsMZJ1+tRfGL+o=; b=za2hY2APlf32ffA6wRwndZi7MGrxUhB0uSvglucUW/7M/7XJ+BSCHhsauifAx4lGSC 0qL6DL6JCrkLaSLocHQVAPKAjgiJvY4g3i4X8krepAUdmnGhaTpnLCUcGUtJ8Pd8YkwP HLokdkYuZIX407kGbyMHRVb34VgaXp+4GIb5dS45ujJ3sK+BZYFXAszXysSUG1ZfyLUk 7COis/WGB6OiXZQFiSAXbkKOLwIxtke3gh4WXLZy0J9gze8tD5/9hQvINaQoUwmARCSN fnHMyfAOYbGyuN+2DUHxlOIrczwfLp8VOoZ3mpaGrC77EG3RsVYKoMqHXkEfblb5dhJJ 0AHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=cb4vgNW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h21-v6si6833209pgi.430.2018.08.09.01.31.20; Thu, 09 Aug 2018 01:31:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=cb4vgNW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729826AbeHIKyJ (ORCPT + 99 others); Thu, 9 Aug 2018 06:54:09 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:45731 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727601AbeHIKyJ (ORCPT ); Thu, 9 Aug 2018 06:54:09 -0400 Received: by mail-oi0-f49.google.com with SMTP id q11-v6so8411202oic.12 for ; Thu, 09 Aug 2018 01:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/sl4SLdRyWoDU6c666JvurRqjZDVtvsMZJ1+tRfGL+o=; b=cb4vgNW1XVmYzTYUq2e425AWNEpGTOZV9/QhNUw4te9u9ycYaHTBvQJz2ZfIvKHrzE DGZ5Zi734cWrbUZqTsWf+FvpPOeqRd8WBql2vRYODTgIPLlBIXUzyNLzQCesdwIMm3MT PQNSdnlRTLnFZvEbG5phtmFxW4JQx93+zMFcw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/sl4SLdRyWoDU6c666JvurRqjZDVtvsMZJ1+tRfGL+o=; b=Ts8jW1pAgs5CDfoGue49YSKpgT/NQmq1NIbVHgGTj52xnRN1a5JOEkAWp3Q8b6C5ie 6ShjB+m6kC+32dL0hvf9znua1zppPAQmtvJUq6+upfZ8R8gl4MnHbg/6vFao8lCc+q7v 5PlyG7SwbGYTHTVBleure6yRsjDKIvn/cJCq7zZ2riAANLOws/9ZSiG7dacu5jG0N+KV g0eIPfKIxXNchzh/xrVYnSPPWzaYnzV8qS+GQ1jQxqDI80TM/tQzLp3mvAWj1CFzoag3 s2AJ5Cjx4sXvwP7CkdChBiIclu8JSu17X5NPtzY6vbn8/7evW6kmg1Q3geBs/83HkmYJ 9aqQ== X-Gm-Message-State: AOUpUlF0+Ve8sz3atS8SZTGR7B0zOISwSb8u6fjBpH67KctyLMlh9aPl ZiZq0VLdzWYY18LjrcfvtSPPj/+Rzg2XH4BHF6wEQO84D/4= X-Received: by 2002:aca:e350:: with SMTP id a77-v6mr1273877oih.250.1533803423477; Thu, 09 Aug 2018 01:30:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:113c:0:0:0:0:0 with HTTP; Thu, 9 Aug 2018 01:30:22 -0700 (PDT) X-Originating-IP: [212.96.48.140] In-Reply-To: References: From: Miklos Szeredi Date: Thu, 9 Aug 2018 10:30:22 +0200 Message-ID: Subject: Re: FUSE: write operations trigger balance_dirty_pages when using writeback cache To: =?UTF-8?B?5YiY56GV54S2?= Cc: "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 9, 2018 at 9:31 AM, =E5=88=98=E7=A1=95=E7=84=B6 wrote: > Thank you for the prompt reply. > > I tried this config, but still can get balance_dirty_pages triggered. I think it may be due to BDI_CAP_STRICTLIMIT used by fuse. If you remove that setting from fuse in the kernel you should not be getting the balance_dirty_pages() as often. Not sure if that's the realproblem, though, that depends on how much time is spent in balance_dirty_pages(). You can try profiling the kernel to find that out. My guess is that the real cause of the slowdown is some other place. There's for example a known issue with selinux related getxattr thrashing. Disabling getxattr on your filesystem may significantly improve performance. Thanks, Miklos