Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1177180pxk; Sat, 12 Sep 2020 14:16:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEPJ2B9tYwSrsIz6IHAG7x0xcXhjiNQz7kz8Ca8bvMbp5xTJEYa3WD58dgiEmxUVHyCsje X-Received: by 2002:a17:906:d182:: with SMTP id c2mr7401893ejz.378.1599945411410; Sat, 12 Sep 2020 14:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599945411; cv=none; d=google.com; s=arc-20160816; b=zsAfCNHGZOY7iMUVSD1klwdkkYoGFb3K9n4zs9Xd3SntcTkNKGL31hJqG/CGEeVYJ3 Jav1UM95Ial8/p7BGKK3IPbE6Q+3IFBlT6S9rXLHNS8WujPUvShFHQFgyXoBasWcPcs6 UQi8A2JzS/vXseYKDrotNrBvKyYBrhdZjx3ZUmy22Bwr5PUi7oAb0z0q8M6EH5K7elZX BZjg/0p/M+l34UL++x/XLcw8Zq7fMIFkf0of4lBIgHfaYmVRelZ0AQ0HHZ88+EixxNYq 64GGUcJD08xvKfXyXN6nRB0jdpGFqb5Xi/CmjuY39uE+TauSJK2YXPu6wLC8IkWVaWDM d5bw== 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=0P+Oqlcn0sJDfwdqNyIyKS9/DVLVFKrfZQWJBwa72bU=; b=QvgKtAX6hfWRQH9MMZ0pIF6zyZJjYQpaZR46pIharkHHwaHpXK5ZuEpXVzAynJBsuT 51deFRwi4wPiZg55wN9UZMaRjF3vshecOjcYXH7nt5VRc+20QOpyde0h5h5jVfEPO9KL y2Ro8HgFu0DdkbAeW9uWb1VpywvUF/Zx51cr2FK9UVAxSKjigZy738qYCvgzWUSi6KlW 0n9e5nN55LhzJosK6WVI3dbSQT4mIJetSDvvSWV/ggLAMKpcvPqUlcsvAoCzfZUkrsb+ +XBDD/9G1h23myai13DDJ3NncBtv94qhglvSCIVD48Sd85J7BCk8DcKBlsyrwXaoCZBp Ri1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=JMoFlErO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si4730365edc.310.2020.09.12.14.16.22; Sat, 12 Sep 2020 14:16:51 -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=@linux-foundation.org header.s=google header.b=JMoFlErO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725891AbgILVQT (ORCPT + 99 others); Sat, 12 Sep 2020 17:16:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbgILVQR (ORCPT ); Sat, 12 Sep 2020 17:16:17 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D3F6C061573 for ; Sat, 12 Sep 2020 14:16:17 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id m5so9424133lfp.7 for ; Sat, 12 Sep 2020 14:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0P+Oqlcn0sJDfwdqNyIyKS9/DVLVFKrfZQWJBwa72bU=; b=JMoFlErO24SBAUEL67rjId4FitgMyZrTA5pxg4bs6hZ9mg6dQ/Mg32elNVF/k953HC RV7UdX2KK1eXoPRtGrgI9u3qqi1mxs7ad07Jsqc/vU4uuqopui4UEvwbIt+SfpvhFk0A 7DkvZaBTYRQ9vDpKQj9VYQId/0dri/roQyEiU= 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=0P+Oqlcn0sJDfwdqNyIyKS9/DVLVFKrfZQWJBwa72bU=; b=HYlEtoF4lzBz8odC5Ldmgl8JCGP6tjQ1TkIdPR10HUY41FuFNFTqoTeUX/dh8dWlnA k1wjQQepI4m3hDuMH6X8KqLLaMDD6XPgeqjVraNE1blWU3IGdgHEQuAbRdPmDimjwhLN WcEQlBBQwgdi2muS02YNuGxadwn9837RZFc6cc+HGQ4uryWRuBgea5HW2g/TT++M2i5k E37wiN3rVpjfcNZNr83a9EzNDqLRjrTZ1RDqWju1IltsX9Ny2+HRGZ/h743KUhJNPkOD DftN9xZpaE1oQM4WhXRUjy/dCJ2yPNr4EkklGB69Y1sidT3k9I+ZHDWmIuODyUvCSn8r gqDQ== X-Gm-Message-State: AOAM532AJer+U2X+XnCSKl1EHoOBK4QBW4brEFjOadqs1UWcRXidgH3W 28SScrH6vsdCSFXURZkpDW0kkouXapG3qw== X-Received: by 2002:a19:e003:: with SMTP id x3mr1909367lfg.597.1599945374881; Sat, 12 Sep 2020 14:16:14 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id 203sm1429268lfc.112.2020.09.12.14.16.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 12 Sep 2020 14:16:13 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id u21so15381108ljl.6 for ; Sat, 12 Sep 2020 14:16:13 -0700 (PDT) X-Received: by 2002:a05:651c:32e:: with SMTP id b14mr2578354ljp.314.1599945372972; Sat, 12 Sep 2020 14:16:12 -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> <1599944388.6060.25.camel@HansenPartnership.com> In-Reply-To: <1599944388.6060.25.camel@HansenPartnership.com> From: Linus Torvalds Date: Sat, 12 Sep 2020 14:15:56 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Kernel Benchmarking To: James Bottomley Cc: Amir Goldstein , Hugh Dickins , Michael Larabel , "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:59 PM James Bottomley wrote: > > On Sat, 2020-09-12 at 10:59 -0700, Linus Torvalds wrote: > [...] > > Any other suggestions than those (a)-(d) ones above? > > What about revert and try to fix the outliers? Say by having a timer > set when a process gets put to sleep waiting on the page lock. No timer needed, I suspect. I tried to code something like this up yesterday (hjmm. Thursday?) as a "hybrid" scheme, where we'd start out with the old behavior and let people unfairly get the lock while there were waiters, but when a waiter woke up and noticed that it still couldn't get the lock, _then_ it would stat using the new scheme. So still be unfair for a bit, but limit the unfairness so that a waiter won't lose the lock more than once (but obviously while the waiter initially slept, _many_ other lockers could have come through). I ended up with a code mess and gave up on it (it seemed to just get all the complications from the old _and_ the new model), but maybe I should try again now that I know what went wrong last time. I think I tried too hard to actually mix the old and the new code. (If I tried again, I'd not try to mix the new and the old code, I'd make the new one start out with a non-exclusive wait - which the code already supports for that whole "wait for PG_writeback to end" as opposed to "wait to take PG_lock" - and then turn it into an exclusive wait if it fails.. That might work out better and not mix entirely different approaches). Linus