Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp657657rwo; Wed, 2 Aug 2023 01:54:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlF2mbpe8xsFzctRNlMdJjAYOqhQQEyG5ou9Pq93grPr3LXe8cW7WKgZedQCPir/PdrSgWSt X-Received: by 2002:a05:6a00:390e:b0:684:bb4a:b86e with SMTP id fh14-20020a056a00390e00b00684bb4ab86emr17501161pfb.1.1690966451882; Wed, 02 Aug 2023 01:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690966451; cv=none; d=google.com; s=arc-20160816; b=fMs3KjYOsZFQDt7lWwJAGgZgyeqkhoxsMH1qg0iKMyj19IG7vsNumW0AvtREZ+CnMV iJlVgkU8TIy4JeP/nO00MGGDy391CqhnSa2Io2Yn719FSmh9u+NaG1JE8DOJL2c4vZbI CV0FprQ7AGGAg2YA+c/fva3YwaDZGT3o3EISR3ZkaHyZVykAHwRISxZVGT523+Z6Alac sJfWOqhnjNb20/PHdi2G+BKO+cVgNRKA2dR/qxzYij00sXyUCDKpNAGT2WY3pUy267w0 t9dpbP43hoYFrDjJR4xTUYmU3E2ks7OCYiqp7Kxzo8l5sZQslhzw/ZWtfcIzX2lIX0c/ NPxQ== 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=7QuTI4px0svJS3sCffeA4A0UjcpYXiTrC7fEWOC9D6g=; fh=uEUmYYc6C5/pWlHrvsRI/JhzvJiTA7ApEvpZdQnbfhU=; b=gpfoq58PBfm425lkFRILot/gUFnjnpBz6jQtmR+JggCQlWTOMoPVMu/BaGbKsDIm3q d9twps53rD5+6vMIijEfuXrsLRSaM1AdtQ7G0iXEsFusiiqx2dOrIU1u/0DsrbbUWlVR BEZl3TdelEONxXx4V8vpEZoHcB0+b8jimdOl+cjLRgFKkMkPHfeS8MJsET/9urPgfccY 9VVn3HpCEQAF9v7A3oCDgzXLlpvjFSlvWEFgzNi1Z8EoJpsQgXaZWJkwO/8XwdHzB7UJ l3O5dVabqDHiLmSt+mpaE7sDKeE4g7xgLIorhAIUzFj6U/IWQt9/pxSRgViIE2NoyI2b BxwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=q9GnhUzt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s12-20020a056a00178c00b0063b356e36fesi10768523pfg.372.2023.08.02.01.53.59; Wed, 02 Aug 2023 01:54:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=q9GnhUzt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232102AbjHBH1d (ORCPT + 99 others); Wed, 2 Aug 2023 03:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbjHBH1c (ORCPT ); Wed, 2 Aug 2023 03:27:32 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23FFF1999 for ; Wed, 2 Aug 2023 00:27:28 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CD1151F8A4; Wed, 2 Aug 2023 07:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1690961240; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7QuTI4px0svJS3sCffeA4A0UjcpYXiTrC7fEWOC9D6g=; b=q9GnhUzteZ7WeqCb/K2wNYIOgLHxWaC/qKVjPyIyujnATskvP+Wnb12IBTCJH0m9Te3so/ fK+SnyWvoq8h/gTxMm9+LHM0HothuAIAioO37nxLVKQ4J3bso7UZo+BCNcZsGKEn5MRl+h Vq2WqL/r+hNf1LGM7ABUqFF61o00WXg= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id AABD113909; Wed, 2 Aug 2023 07:27:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Kg8sJ1gFymQ7HwAAMHmgww (envelope-from ); Wed, 02 Aug 2023 07:27:20 +0000 Date: Wed, 2 Aug 2023 09:27:20 +0200 From: Michal Hocko To: Doug Anderson Cc: Andrew Morton , Petr Mladek , kernel test robot , Lecopzer Chen , Pingfan Liu , linux-kernel@vger.kernel.org Subject: Re: [PATCH] watchdog/hardlockup: Avoid large stack frames in watchdog_hardlockup_check() Message-ID: References: <20230731091754.1.I501ab68cb926ee33a7c87e063d207abf09b9943c@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,URIBL_BLOCKED autolearn=ham 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 Tue 01-08-23 08:41:49, Doug Anderson wrote: [...] > Ah, I see what you mean. The one issue I have with your solution is > that the ordering of the stack crawls is less ideal in the "dump all" > case when cpu != this_cpu. We really want to see the stack crawl of > the locked up CPU first and _then_ see the stack crawls of other CPUs. > With your solution the locked up CPU will be interspersed with all the > others and will be harder to find in the output (you've got to match > it up with the "Watchdog detected hard LOCKUP on cpu N" message). > While that's probably not a huge deal, it's nicer to make the output > easy to understand for someone trying to parse it... Is it worth to waste memory for this arguably nicer output? Identifying the stack of the locked up CPU is trivial. -- Michal Hocko SUSE Labs