Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1030809pxb; Fri, 15 Apr 2022 18:58:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5QIW/7aqBhibglPGKCPh/7NQAT4e6OdXZaTsWFxmGWu4mPwuQM3ZE92bpcIfTa8g9Lqbl X-Received: by 2002:a17:903:31d5:b0:158:27f4:fc9f with SMTP id v21-20020a17090331d500b0015827f4fc9fmr1530612ple.60.1650074287265; Fri, 15 Apr 2022 18:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650074287; cv=none; d=google.com; s=arc-20160816; b=YG5js6xZ6EoeP1Jx8MzEL0OzonQNCwYCbmqgGXXV5gJdTe185hp//JLNwtw5noDw+E 1Da3Oi7bAQG8rMkTs4z8Igdq09DI13RbGEgVIPawVo+CK5uSc+WcpxaRDSIKlbMsGKKj 1Ca5cNit9pK4TuN+beTZ4TjYkvXwUjFK0zNDNBQ1mKJLpOM/VT7F43j/n4K2VGQSp3/A 1fryiGmftun1xv3lu0HMMqDE+E2lPQ+4SGL2RVhFBxwlf281jog+brZQxdsBNWst9Gv0 uOTYc+kHZN6VU/Dhu/6pfgkTjCbbbk4FJcpM9A093QmZl/GeA6VWfPoKKyWchLIlNyr1 9mRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Maymh2MrV1jISeToWbYmaZRo07zKhpb63QtPmZTv7xg=; b=TUTmjso1e9f51ABX2NpclHLpb7uCq97VT6nmBdlcpn8W6Fp7sYFOIqAgDl9DjhAlnv J+yG/ILDI77tMfq77IHLr9wbhEjUE1hCE4W6C6vpHHscueNgj32AhAtLJ2zMU+yM1Jp6 zmfe4ZfRsm/XWfwOcmoaAZ6d8+e6hbsBlkRWHkOp1RH8xOUUfrSbLjZlRz3el6Cv0H8P 6u0UaEwAnHMN32UCf3giir18BtKeoL6Xa5Xs9kXoCNdhYDi097oozI0/jVEG8O+By7Mg TPAr+aFXaU1t2Q3VWjGRFltxOaTtOTRuX3sIUs4i07oLABg/astIA5f8Dmb90RessqvC uQpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="e6NCa/1p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m9-20020a635809000000b00398eab86189si2934114pgb.382.2022.04.15.18.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="e6NCa/1p"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 558161AA069; Fri, 15 Apr 2022 18:18:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241246AbiDOXeq (ORCPT + 99 others); Fri, 15 Apr 2022 19:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356578AbiDOXem (ORCPT ); Fri, 15 Apr 2022 19:34:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63DA07246D; Fri, 15 Apr 2022 16:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Maymh2MrV1jISeToWbYmaZRo07zKhpb63QtPmZTv7xg=; b=e6NCa/1p/FL935pR/uKS7VVL9i NxQnlxKWSJ+Ta17K4gYFWJzNJxaihd8RTbIG62Xl/cDePuFPsB30gWB0IcujU2gd2gfIoljv8kQWO a4vkc0OuVSydPevgNNt6rL2VgEbG29LDZ1FfJZ57cwqVmS5EKHamBYm8UIT3i5D8R9KlKtcVG+ble STvluOBWwYBbjHwrFiqkAnABEhloL7s/LtsDqOchuG+G1mM7EccYDiMhrFJe8oDuHSMfsmaQ8X2ZO ulDAhPZJC0uuEEiyM3RkXZI1CV+mIrNhruJHvBcWrbnL/74JsnfYmPNwQUGQEobNYpz1o7MRUgG+O UT4DzE+g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfVP8-00Gbuq-8e; Fri, 15 Apr 2022 23:31:06 +0000 Date: Sat, 16 Apr 2022 00:31:06 +0100 From: Matthew Wilcox To: Jesse Barnes Cc: Linus Torvalds , Yu Zhao , Andrew Morton , Justin Forbes , Stephen Rothwell , Linux-MM , Andi Kleen , Aneesh Kumar , Barry Song <21cnbao@gmail.com>, Catalin Marinas , Dave Hansen , Hillf Danton , Jens Axboe , Johannes Weiner , Jonathan Corbet , Mel Gorman , Michael Larabel , Michal Hocko , Mike Rapoport , Rik van Riel , Vlastimil Babka , Will Deacon , Ying Huang , Linux ARM , "open list:DOCUMENTATION" , linux-kernel , Kernel Page Reclaim v2 , the arch/x86 maintainers , Brian Geffon , Jan Alexander Steffens , Oleksandr Natalenko , Steven Barrett , Suleiman Souhlal , Daniel Byrne , Donald Carr , Holger =?iso-8859-1?Q?Hoffst=E4tte?= , Konstantin Kharlamov , Shuang Zhai , Sofia Trinh , Vaibhav Jain Subject: Re: [page-reclaim] Re: [PATCH v10 08/14] mm: multi-gen LRU: support page table walks Message-ID: References: <20220414185654.e7150bcbe859e0dd4b9c61af@linux-foundation.org> <20220415121521.764a88dda55ae8c676ad26b0@linux-foundation.org> <20220415143220.cc37b0b0a368ed2bf2a821f8@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 15, 2022 at 04:24:14PM -0700, Jesse Barnes wrote: > On Fri, Apr 15, 2022 at 4:04 PM Linus Torvalds > wrote: > > And for ordinary users, a WARN_ON_ONCE() is about a million times > > better, becasue: > > > > - the machine will hopefully continue working, so they can report the warning > > > > - even when they don't notice them, distros tend to have automated > > reporting infrastructure > > > > That's why I absolutely *DETEST* those stupid BUG_ON() cases - they > > will often kill the machine with nasty locks held, resulting in a > > completely undebuggable thing that never gets reported. > > > > Yes, you can be careful and only put BUG_ON() in places where recovery > > is possible. But even then, they have no actual _advantages_ over just > > a WARN_ON_ONCE. > > Generally agreed, and not to belabor this relatively small issue, but in some > environments like cloud or managed client deployments, a crash can actually > be preferable so we can get a dump, reboot the machine, and get things going > again for the application or user, then debug offline. So having the > flexibility to > do that in those situations is helpful. And there, a full crash dump is better > than just a log report with the WARN info, since debugging may be easier with > all the kernel memory. But for those situations, don't you set panic_on_warn anyway?