Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp603290ybg; Sun, 26 Jul 2020 15:12:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1IM6zQTxqGxITyxYTfWNIfPZPqXqCO8wJiCDZO0f8hbkdFD/RUHwIhi6dLtOsz6YvzRKi X-Received: by 2002:a17:906:6004:: with SMTP id o4mr10122651ejj.411.1595801562356; Sun, 26 Jul 2020 15:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595801562; cv=none; d=google.com; s=arc-20160816; b=F0a4vH6cDx4WQs+ctLzpiknFCKrDN7zf7wDuRxugk7T3wVi+MbUqATanhaciK2uTb7 5hvfXXYcgbjfgzu1yo+xe6yIVuU2OGWtfh3HngMiNqOoiPhBsrEAkDRlj2mrry+WeeMH uu37ZycZkO3nwzBsPRAnbUUF5F8zNZgsrKcDa1Fcsm3ZbFAhL6slfWWFBolpJWDa8tZK kZ7KWZFRYBHiOEUB6QHR6SVwCm6MqCkN3E6BsM2hJxKnemS8kAedjeGiawkMv4kfgCob A/iTNUY2JAM7zCja4Wvjae8kNZc6Ca261GdMITHwKTmGezK0XqH6/LOVhm/KC/0UETml 48Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=i3uC59zrTYqrU7WK2MYwBH2tqz/HMoZey93tc8rjRr4=; b=C3aSQ1q6+iM0MWsDkKwnYpqM343gwzbTDz2R1SASpHUxH/yWn8B/0W8SIPoI64U5n3 3NiDExZfwH6pL0uUJAmWgE3G9kjUy1QedRtwqkfu70IglrZica2rmiGthWWndMLu69UF l3sywrcWPMj0LvsLwkXzQ6ixkEeRwnGa0qcQd9wpoNjaLhjjI5crgUZsk4YYe4cD9vrS 3u2NkozazJsPSjRCeRq12wyS08dkOVVt4eGz2NR1d74regS6JEd+NriIoA1theEVBarW zvkc8vne3I0i8XwoaIG2JLKtzxEbUY0oKvtuvTkrRW2zaP0YWfiCFzA4FJI8NkVsioFB GDjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=r4GBeTT3; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss14si3586511ejb.651.2020.07.26.15.12.20; Sun, 26 Jul 2020 15:12:42 -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=@google.com header.s=20161025 header.b=r4GBeTT3; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727815AbgGZWKB (ORCPT + 99 others); Sun, 26 Jul 2020 18:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbgGZWKA (ORCPT ); Sun, 26 Jul 2020 18:10:00 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72594C0619D2 for ; Sun, 26 Jul 2020 15:10:00 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id l13so254969qvt.10 for ; Sun, 26 Jul 2020 15:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=i3uC59zrTYqrU7WK2MYwBH2tqz/HMoZey93tc8rjRr4=; b=r4GBeTT3czQZ0SGW+2ZGZiDXe9vbLdpYoiIWJ8k8Eoyl8ct25CwlsOu7qKfbM1iPTM BRHUKBbHejZfRqojOTgbFQQbCYwq9SnIxU4cnvcBYCNr8JHqnEs+dgh+r+FAuOGEPLsU PPrJV0mGyo+UZnW3UC+qNUaczQGkxvH5fYzNmwNdCV6FKp1k6tScFwjuaokAtZxxiuag RDS8+Vn99zm+BT7vs0NPsoNn8ba9/7qgJVl3kFqlMR6R0B+vW9VrR7TxIakTcpbOk76d r4x/l+19n3M3/4yeFccrPXXl3GF+fZBosnNZSehIAcUROVNKRKronFd3e6iW4xiW6Ew3 DBqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=i3uC59zrTYqrU7WK2MYwBH2tqz/HMoZey93tc8rjRr4=; b=UjmMx3psk6eweUb9Q0CVmjM5/VIXVhkn1Ag4Z8a60g+PQ8PrQv8qkeuP/Keo67I9/5 4P07KueTJs6kr5znvq4uo1w1ItGMIJ2FzzRIQYNYJ+4l7KPiGsVsH8wCutFP5dBsBr+/ XoCcG0YYzcH7D3/H9nuJVJwZ2AbbHFq1cs0ggKUR9AStChIcVa9gFFbSB0gYJlNuYG/j XOUSCraeQmkj3uEZq7mgYWNlVOlRDM7ZBiQ8yu7TlYvXmr4bn10MyX/RBpHBAWq5gk7/ NKmTNwXU6nZzgP+7KGG5eMJ5m/pMP/RFj740mkqT6JFiXcgkZWXhoQeNQetfR+hG2dTu sBCA== X-Gm-Message-State: AOAM530Z0/B5v1ydfpD8WIhoB94KQSRugllaiCSA7DP2+74KB2VIMiO7 kXRRDq7U/OU3FWy6pbPSHRBvug== X-Received: by 2002:a05:6214:b88:: with SMTP id fe8mr19676729qvb.244.1595801399318; Sun, 26 Jul 2020 15:09:59 -0700 (PDT) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id k5sm15419169qke.18.2020.07.26.15.09.57 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Sun, 26 Jul 2020 15:09:58 -0700 (PDT) Date: Sun, 26 Jul 2020 15:09:44 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Linus Torvalds cc: Hugh Dickins , Oleg Nesterov , Michal Hocko , Linux-MM , LKML , Andrew Morton , Tim Chen , Michal Hocko Subject: Re: [RFC PATCH] mm: silence soft lockups from unlock_page In-Reply-To: Message-ID: References: <20200723124749.GA7428@redhat.com> <20200724152424.GC17209@redhat.com> <20200725101445.GB3870@redhat.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 26 Jul 2020, Linus Torvalds wrote: > On Sun, Jul 26, 2020 at 1:30 PM Hugh Dickins wrote: > > > > I've deduced nothing useful from the logs, will have to leave that > > to others here with more experience of them. But my assumption now > > is that you have successfully removed one bottleneck, so the tests > > get somewhat further and now stick in the next bottleneck, whatever > > that may be. Which shows up as "failure", where the unlock_page() > > wake_up_page_bit() bottleneck had allowed the tests to proceed in > > a more serially sedate way. > > Well, that's the very optimistic reading. > > As the optimistic and happy person I am (hah!) I'm going to agree with > you, and plan on just merging that patch early in the next merge > window. It may fix a real bug in the current trere, but it's much too > late to apply right now, particularly with your somewhat ambiguous > results. Absolutely: it should be good to see it in v5.9, but much too late for a patch like this in v5.8. > > Oleg's theoretical race has probably never been seen, and while the > watchdog triggering is clearly a real bug, it's also extreme enough > not to really be a strong argument for merging this out-of-window.. > > > The xhci handle_cmd_completion list_del bugs (on an older version > > of the driver): weird, nothing to do with page wakeups, I'll just > > have to assume that it's some driver bug exposed by the greater > > stress allowed down, and let driver people investigate (if it > > still manifests) when we take in your improvements. > > Do you have the bug-report, just to google against anybody else > reporting something simialr> Okay, just on that basis, with some reluctance an edited extract: certainly not asking you or anyone on the list to investigate further. [35196.140502] kernel BUG at lib/list_debug.c:53! [35196.141448] RIP: 0010:__list_del_entry_valid+0x8e/0xb0 [35196.141534] Call Trace: [35196.141538] [35196.141557] [] handle_cmd_completion+0x7d4/0x14f0 [xhci_hcd] [35196.141578] [] xhci_irq+0x242/0x1ea0 [xhci_hcd] [35196.141608] [] xhci_msi_irq+0x11/0x20 [xhci_hcd] [35196.141622] [] __handle_irq_event_percpu+0x48/0x2c0 [35196.141636] [] handle_irq_event_percpu+0x32/0x80 [35196.141651] [] handle_irq_event+0x4a/0x80 [35196.141680] [] handle_edge_irq+0xd8/0x1b0 [35196.141697] [] handle_irq+0x2b/0x50 [35196.141712] [] do_IRQ+0xb6/0x1c0 [35196.141725] [] common_interrupt+0x90/0x90 [35196.141732] > > > One nice thing from the comparison runs without your patches: > > watchdog panic did crash one of those with exactly the unlock_page() > > wake_up_page_bit() softlockup symptom we've been fighting, that did > > not appear with your patches. So although the sample size is much > > too small to justify a conclusion, it does tend towards confirming > > your changes. > > You win some, you lose some. But yes, I'll take that as a tentative > success and that the approach is valid. Great, yes, tentative success: and we have three months in which to change our minds if any real trouble surfaces; and I wouldn't call anything I've seen (since that very first version) *real* trouble. > > Thanks, > > Linus