Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1613721pxa; Thu, 6 Aug 2020 11:34:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNjrp8iHrqxCumrsNmZeZ8RmxxWrwYFvnYN3vGQSAze4CzN8hNkIXB3Tb7n/xW1wqdit6I X-Received: by 2002:a17:906:f9d7:: with SMTP id lj23mr6008202ejb.500.1596738848350; Thu, 06 Aug 2020 11:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596738848; cv=none; d=google.com; s=arc-20160816; b=Q5OeimRrrASBUSpc0CdjzLPdMjNmA4yGvOK8t+VwT0s7Y294r3mbQ3cuM+XLKLjGhD M2p/JvLY96Hz7vldPm0/lKMGoWbyPxMXqAmw4pRbEm7X+FDWfs/tZ+FkJqjEfK5DQA76 FFNxhIy9Dtq/H+phNQISiAFVUTQr/rmqovcfuff08ZS7Bh2efd3Y5iFxGHGn7XV1Ugo3 2JOSqwp5YF7mpHzyTjnwi5T8uDqmk8HsEKgspxouU/szUUssh/jQd8ki6EB5myCd62rP Yi+tc0V1moFsA1d0SkH0vxuJN5qjhHfdlOGfh5o0EfuckZr+DZBCmZY0NcKvqSaDZf1z iquQ== 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=5Af00Sko3u8Ezl+gPJCbV7BmjNT3BmtEBTcrFloNwnA=; b=ITkE2QMMamXBBtJuNg/SupawJO2SeTK1RfYXv8dC8Xu3Og4NqSxLMUvN3qlomRhJ9l ZcdsAFS1eM1FYahjB55njlt76C5YFKGTxzdLtTOV+2bo5X4cmgkSW0KXaJ5zC2qEOvld /P+JMDv5p6iyMTHEVsOkwd3CPU+w230SQNxRmTJH6PmvqeiLbFkBB+YHsUe/VaERcoLa ermflQ6NwwqHoqJ3cMk9cAX+CqbxxsUJdBNjBA0g2fF4XGAOoLTHepPqX5OkuWSpXlHq u6H3xW85DTGWTlsEbYuYFW3uFHyC0LPQO7BO/qBIRBJC3xq73GLvP46AVVxnsMigTSox mRrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DFus0hPO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 m23si3928816eji.400.2020.08.06.11.33.45; Thu, 06 Aug 2020 11:34:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=DFus0hPO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728860AbgHFSdK (ORCPT + 99 others); Thu, 6 Aug 2020 14:33:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728681AbgHFScs (ORCPT ); Thu, 6 Aug 2020 14:32:48 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6B6C0617A2 for ; Thu, 6 Aug 2020 11:32:41 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id 185so42646789ljj.7 for ; Thu, 06 Aug 2020 11:32:41 -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=5Af00Sko3u8Ezl+gPJCbV7BmjNT3BmtEBTcrFloNwnA=; b=DFus0hPOttxaAQsjZku/lbVZ4VYNVh5ObQRgCsovPMIpe9B7M1GF6NUUDJo1jk/pkb I6Ji2PfXuoBnNs+NvpieyLlb1LZOse1mfbKXBwiVzCeSr6cpb9kz8NcJyk68AaXmSWxz erFbvQZqcdnoPk8TTEHA+WcvMXssy1YK2pPYc= 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=5Af00Sko3u8Ezl+gPJCbV7BmjNT3BmtEBTcrFloNwnA=; b=V9nDnovvq3pPD0S/1dETo67ZZ+AuDr9RBYGOnB/3omKG4/Ia1dBiypbL0lXDDvIdyg 6ENTS9eUL0akaB8jcWLtAnNi4vxL+N7FLDYBn9ldTCQ0cFQzA036q9IEEwMv/3Ce2gHx 4F4zG26Ka08l8DzwzSbX8RwLcS9s2REpdpdRmKi14lWeQoJaN9MQ8mwSxhzdTzTVIu83 i1GzcQvgLB+lhc5TmO5+xKCT2NSVpF7bXqtL+n9iX1MnvOZXG7RMgFjnWKlxr9agjFRa MRVpLx836Z5uR93KuZ8xfaKgsmPQ/aXdCKy8kCrzknCnlEQXa986HnKrQRNuj7eyYpp8 LjjA== X-Gm-Message-State: AOAM530uA4n9tn2fyF2o9dQorBOTRT/NJyZnaH61HQeMI/jnSeQi2rD7 ZLz2+npl7rPbldHg8wufb+4iCPY3/kE= X-Received: by 2002:a2e:910b:: with SMTP id m11mr4448850ljg.159.1596738758810; Thu, 06 Aug 2020 11:32:38 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id 203sm3067881lfk.49.2020.08.06.11.32.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Aug 2020 11:32:37 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id w14so23059812ljj.4 for ; Thu, 06 Aug 2020 11:32:36 -0700 (PDT) X-Received: by 2002:a2e:b008:: with SMTP id y8mr3902152ljk.421.1596738756512; Thu, 06 Aug 2020 11:32:36 -0700 (PDT) MIME-Version: 1.0 References: <20200724152424.GC17209@redhat.com> <20200725101445.GB3870@redhat.com> <20200806180024.GB17456@casper.infradead.org> In-Reply-To: <20200806180024.GB17456@casper.infradead.org> From: Linus Torvalds Date: Thu, 6 Aug 2020 11:32:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] mm: silence soft lockups from unlock_page To: Matthew Wilcox Cc: Hugh Dickins , Oleg Nesterov , Michal Hocko , Linux-MM , LKML , Andrew Morton , Tim Chen , Michal Hocko , Greg KH Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 6, 2020 at 11:00 AM Matthew Wilcox wrote: > > It wasn't clear to me whether Hugh thought it was an improvement or > not that trylock was now less likely to jump the queue. There're > the usual "fair is the opposite of throughput" kind of arguments. Yeah, it could go either way. But on the whole, if the lock bit is getting any contention, I think we'd rather have it be fair for latency reasons. That said, I'm not convinced about my patch, and I actually threw it away without even testing it (sometimes I keep patches around in my private tree for testing, and they can live there for months or even years when I wonder if they are worth it, but this time I didn't bother to go to the trouble). If somebody is interested in pursuing this, I think that patch might be a good starting point (and it _might_ even work), but it seemed to be too subtle to really worry about unless somebody finds an actual acute reason for it. I think the existing patch narrowing the window is good, and it clearly didn't hurt throughput (although that was almost certainly for other reasons). Linus