Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp806069pxk; Sat, 12 Sep 2020 00:29:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFrJNcZa0/9npjCug4yfiZawKv+3xaTyK1U83bTm8HquL2zU4JwL3UgXjUvMywP8TsZkAZ X-Received: by 2002:a50:fc04:: with SMTP id i4mr6893919edr.14.1599895760871; Sat, 12 Sep 2020 00:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599895760; cv=none; d=google.com; s=arc-20160816; b=ietD9PzokKucJeEkTlRxF3XIR659HeM4nfth6G7NeGJj0eabAVN7NnRQuvj6+jaXMe aJ0bZicIMmPk1eFuPn1Z/sGMdOM0vmtW4f/UPJIRWb0uylh3YgzNXus6TYdwOaefke/J tUt57rFR6PDW4jz+bfHHG1AZkya8NFyhGVXY9PsAI2yJslPYsVETjcWbkolQgjMysv2z 1Qa08nV1qSzW2fK7lrD4xa80UcEZbQoyliUP9h+mNPvoGVhK3CnnKZpTZIlXZr7zk4yG rEK9zk4Vp3OvJ3xdRmm3p/b1tRheZ1YAGlH8pzteRoxPG8A4p+m0wvUF0TiTF8R0Ph7d h7dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YWM/BlJ5lkpI9BMfKBa6hZGyhtApyVDWJyrk/aitlds=; b=KnHuJZ3Up652+r/ioySGtZwZ4uKsnx/xepOHMO/++G4Z+hlYjlYZR5XnF8vVUvAb8Y PPnGoE4O5dTi7F/eBkbwm31HQE5GyqKHzdchjrGYSPknqQ7IDINZNayffBbNJ2MZQdze o+aaPeqBjWzl30dMUkVIloyX0AjrYygESP8kf54MCWn0L0t7rKx+jasaMzriaEG00oqy np94/glrBo9E2il6u7GVXIwIaHZTL2tpEst2c6oXKB67O6q7QE0Hu2u3z4KFWkpQl4Xh 7+2xneXZwrrmMSW/yrozaVJwjXo5/6FPEUtVrIR7ZiSUBcsr40UEq34HjaVkszFmwzNa 4lEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oWJRaW0x; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si3223496ejz.608.2020.09.12.00.28.48; Sat, 12 Sep 2020 00:29:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oWJRaW0x; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725850AbgILH2m (ORCPT + 99 others); Sat, 12 Sep 2020 03:28:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgILH2l (ORCPT ); Sat, 12 Sep 2020 03:28:41 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF91EC061573; Sat, 12 Sep 2020 00:28:40 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id z13so13441857iom.8; Sat, 12 Sep 2020 00:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YWM/BlJ5lkpI9BMfKBa6hZGyhtApyVDWJyrk/aitlds=; b=oWJRaW0xjb6uXGeEDfmpsb+0YnplVIfxtrfkxVnsh1jajHUJDtLzvjXWXe1vjUQEXJ 5QzV0iXVQf79LmNZCUatukj2oK4UAcDA+Pdknx/uXEagofUR5kMyzys2cR9GJ12k9Jo4 EDVK+trpHWWGo2FGFmP+bcfy6titTSvu6Qf+fAZrfWBSnPiXm5lg/s4f1cz/aViYhbdf X/bJQSpAUEQdH9Yf/RG/LEBweKvDomEgh7itYvkV80KCfDwkzBe/MlOdITX8JuR8+kBh XSKDh7dg9kPC4b3//ffsZuWh9AsmEZ6gQa+kibg9IVybfUS7dgRIBdO8s+vdPO8AHAdG iDSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YWM/BlJ5lkpI9BMfKBa6hZGyhtApyVDWJyrk/aitlds=; b=G/POzbUYnZ0U5Cy58zfNr9U/VK9aRu/jTMU5wouL4cg4bMZ1VGKYXczm3buAA/ltDk +KH33Mg/jwtzkI6+D6fy1AmQKTpNL50dTUc+ZuLHn6fwu0F9lQ7Uk0ZOX3tf8XXtjmeF rYDJb5PiotF7cLKXlcnPsWUQKZgU4Zde89e0zU6TXWUmPHeI2WBObySUNgbxtWuvTETT gRW52/TCFLn4k8g7QVLuZHkPR4W8qEhPQCzZqoveKXJfc4upFvefHtx9MfMQnFWenhnq ZF/eKBmzm1XYKgxTNhD5naOatL8mIQatBKM4CiGk2FHxjnjehKGCxjf3/2oSdyZ5fE6Y sYbw== X-Gm-Message-State: AOAM533AeyESD4Z2NGcXuBQ6f7eLVmfENl92HkHPbbDs7Vn8saxwR1Ze Jb6KEPersoLteVf5XV53kDWjj+Ymd6WJFeF2D7ylQiWIu9M= X-Received: by 2002:a02:ca12:: with SMTP id i18mr5236345jak.30.1599895720089; Sat, 12 Sep 2020 00:28:40 -0700 (PDT) MIME-Version: 1.0 References: <6e1d8740-2594-c58b-ff02-a04df453d53c@MichaelLarabel.com> <8bb582d2-2841-94eb-8862-91d1225d5ebc@MichaelLarabel.com> <0cbc959e-1b8d-8d7e-1dc6-672cf5b3899a@MichaelLarabel.com> In-Reply-To: From: Amir Goldstein Date: Sat, 12 Sep 2020 10:28:29 +0300 Message-ID: Subject: Re: Kernel Benchmarking To: Michael Larabel Cc: Linus Torvalds , "Ted Ts'o" , Andreas Dilger , Ext4 Developers List , Jan Kara , linux-fsdevel Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, Sep 12, 2020 at 1:40 AM Michael Larabel wrote: > > On 9/11/20 5:07 PM, Linus Torvalds wrote: > > On Fri, Sep 11, 2020 at 9:19 AM Linus Torvalds > > wrote: > >> Ok, it's probably simply that fairness is really bad for performance > >> here in general, and that special case is just that - a special case, > >> not the main issue. > > Ahh. It turns out that I should have looked more at the fault path > > after all. It was higher up in the profile, but I ignored it because I > > found that lock-unlock-lock pattern lower down. > > > > The main contention point is actually filemap_fault(). Your apache > > test accesses the 'test.html' file that is mmap'ed into memory, and > > all the threads hammer on that one single file concurrently and that > > seems to be the main page lock contention. > > > > Which is really sad - the page lock there isn't really all that > > interesting, and the normal "read()" path doesn't even take it. But > > faulting the page in does so because the page will have a long-term > > existence in the page tables, and so there's a worry about racing with > > truncate. > > > > Interesting, but also very annoying. > > > > Anyway, I don't have a solution for it, but thought I'd let you know > > that I'm still looking at this. > > > > Linus > > I've been running your EXT4 patch on more systems and with some > additional workloads today. While not the original problem, the patch > does seem to help a fair amount for the MariaDB database sever. This > wasn't one of the workloads regressing on 5.9 but at least with the > systems tried so far the patch does make a meaningful improvement to the > performance. I haven't run into any apparent issues with that patch so > continuing to try it out on more systems and other database/server > workloads. > Michael, Can you please add a reference to the original problem report and to the offending commit? This conversation appeared on the list without this information. Are filesystems other than ext4 also affected by this performance regression? Thanks, Amir.