Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp168669rdg; Tue, 10 Oct 2023 07:13:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFku1HK0r+RW4CmXWRn3ISOZpvKeF4TBVy62sVio57XFJ6/d8q43hvhmFv8lrYVcuEbW5yZ X-Received: by 2002:a17:903:192:b0:1c9:bfdb:aad5 with SMTP id z18-20020a170903019200b001c9bfdbaad5mr912372plg.24.1696947191748; Tue, 10 Oct 2023 07:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696947191; cv=none; d=google.com; s=arc-20160816; b=ce5CFnWxC4MNkJt7iruTCmFoza9UBmqbqOadDN2q6/rK7IYA4EtGpotEIhFdIz1db8 AUvW/u0l7rYdnCcpolQ3LbEuC/ETHSVqaGSAr4YbKnKW0hrubM6k5q8/8QwmWClLuhGq gCB68fAhIcmluc5rWAiBEMbtaeyrnbSx1rVPqnaUluOY5jOc1Vf7BJhcQai0bh5Og9Ko 8KapPQyW1ACTgLj+FZd3wumwSQp32kS61LDGLZDm9qFnUw7vxDkM86zYdE8hcl09E5n2 xUaVERB20EGH2e7DWGL9TJmS/F8sLBPUjHWcGUJksZBwnNXSg87ni6nv6FBfsRxsYNMH zAGg== 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=oT8vyW0rcd9dmGUW7gq6FLmT8hw5IrIbn9c99vaOk+A=; fh=zVYoY0QiQN1UU1e557JWB5eXzLQUb9C0Zo7cMBHJ42s=; b=PFGffDICVjBeP30w3tBHXzhYKGDlqCeLjqCR4Wf61PzQLNhRaPm2FRQXMrsI02BNp4 ud2tSZGOo6CfnCg1xlVXDI5PWmi/crTmjXtPSlDdvVcOKbdn9xEte+f4voAtpHon3M4T 6xVgmmpe6LgDEqauoEiIagR8KqgDTry3rHTZ4pIdOuULyrYF0n37jvTiTsT27lCMspoQ 91IprEZhDTrBoPqkbatYABImUAKRwCetWPiOmmNEFSMXbA/X+4inabEOayOabtskW/0Q GBRLTkLYFHy75klYdSbUUWreW62aqMU2Vzz4FAjtT3ey4J++ulcV9cl0K+5baj2LGqAY VyVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="OmaQV/tP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z8-20020a170903018800b001c9ad75c067si2224513plg.149.2023.10.10.07.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:13:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="OmaQV/tP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 82773802A836; Tue, 10 Oct 2023 07:13:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232433AbjJJONH (ORCPT + 99 others); Tue, 10 Oct 2023 10:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjJJONG (ORCPT ); Tue, 10 Oct 2023 10:13:06 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8D7C99 for ; Tue, 10 Oct 2023 07:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=oT8vyW0rcd9dmGUW7gq6FLmT8hw5IrIbn9c99vaOk+A=; b=OmaQV/tP8+GGn+Nwl/ceaJ9lDN xnXTNTwHFX5gBNgoCOm704oPcIozMgB643BZJC3PxZwwQ8u+B0jrHKzk9VovmyCK2DDU7pNtPO63Y 9ljMIeQ5rjXrtfmYgQ0Gprhj7EjWrpjRysRoXEZInM2unJFKsLaNIfLbDlCr3U/1jje+/mR2quocX NDeHg6xiSXjCKC3a/tkNreYY0uRB1KtcRfVo9aNINZs9gsXiE5KN/Ei8dbNMT5Zigl+TAmuc1aY94 PYP0t59ZZhJfXnfVz+SQ5e0GfiqIsh6EnnsAR4rTw9yygQZwJ85tboKrPLx8PuPRFe8//uACoUXsk RXK8UiGA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qqDTX-00GtuQ-36; Tue, 10 Oct 2023 14:12:45 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id CA283300392; Tue, 10 Oct 2023 16:12:44 +0200 (CEST) Date: Tue, 10 Oct 2023 16:12:44 +0200 From: Peter Zijlstra To: Phil Auld Cc: Chen Yu , Ingo Molnar , Juri Lelli , Vincent Guittot , Biju Das , Marek Szyprowski , linux-kernel@vger.kernel.org, Tim Chen , Chen Yu Subject: Re: [PATCH] sched/fair: Use printk_deferred instead of printk in pick_eevdf() Message-ID: <20231010141244.GM377@noisy.programming.kicks-ass.net> References: <20231010032541.339606-1-yu.c.chen@intel.com> <20231010075928.GA377@noisy.programming.kicks-ass.net> <20231010122600.GA477540@lorien.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231010122600.GA477540@lorien.usersys.redhat.com> 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, SPF_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:13:09 -0700 (PDT) On Tue, Oct 10, 2023 at 08:26:00AM -0400, Phil Auld wrote: > > No.. I detest printk_deferred with a passion. This is effectively a WARN > > and we don't do silly buggers for them either. > > > > Sure, printk_deferred is not ideal, but is getting this message in the right > order worth locking up people's machines? Not sure you get the message at > all when that happens. I have to dig the code location out of the crash > dump to find which sched warning fired and took down the (usually virtual) > machine. Same thing with WARN(), we don't have a silly bugger version of that either. Just use a sane printk() / console or whatever. Virt stuff has perfectly functional serial consoles that works just fine and don't lock up the machine -- mostly. Use my early_printk hacks if you want something reliable: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=debug/experimental Boot with: "earlyprintk=serial,ttyS0,115200 force_early_printk". And all will be well. The fact that crashdump is more reliable than printk is a *BIG* problem and the only solution is fixing printk() (people are sorta working on that). We should not try and work around this problem. I fundamentally despise the delayed stuff, I've had countless insteances where delaying output means you have no output because the machine is dead.