Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF4FAC0015E for ; Thu, 13 Jul 2023 18:53:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DD1810E766; Thu, 13 Jul 2023 18:53:59 +0000 (UTC) Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by gabe.freedesktop.org (Postfix) with ESMTPS id C635A10E766 for ; Thu, 13 Jul 2023 18:53:57 +0000 (UTC) Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-262ef07be72so525462a91.1 for ; Thu, 13 Jul 2023 11:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689274437; x=1691866437; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=S/Rh3N7Hpk2RvvFOi7xZjggtoYOkILDnWZuYI4DoA10=; b=HW5cIj8f6UrrRKqCSEGCEMigQIuAtz5FZOoyenrcfjQXnkfk3x91KqAgmOfMu8rjb0 Ck7tu7PddO79GoM9qYGS7C5Xmp7NtD3l3Ns10x1+yAakLRUN0IwG4ffbzHFORM5JjEK7 XoqNvaQKUfKQuOFxG8WDYi3aM5Mwe7+AaPuBKK9Iih+Z8SC1e7KILlhVi9WuzfQdrHlp tX9sJsE4pQET7vVqcOht85rsQOHTeT9LGfxwrSPrzw69KHgZP3dH4E01yzu5A0S6DWwQ 7EBTGYF8Cw5Pp86VOfuv5xYomnc9HKvK9VUJmyCveJoOvbxWORxNPPNzkQ1CVAsvt35m O2XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689274437; x=1691866437; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S/Rh3N7Hpk2RvvFOi7xZjggtoYOkILDnWZuYI4DoA10=; b=BpQDNoHXqwTmVWSGwR6X5i0MXJksSE7QMUY8zUIwa1IrrTupwF/exKGL548MNS0bcK BzNKrThAYj9tnM2/nbMDqVG0jk8irq6/3g/6YQb/qnqiX6/dVH0nmIyI8I4c7FUaNeEH F5BgqMFX/Aleh29afVQVt/qonnJCwdM9BWbRzJUuDN7NAs5DvMnA3kgrp2i6lL1oigPG 1wovwlb7pLdVXiSUgiER7rLyDkIAUARX6uBCtEY1KD1YptdGsPGKOJe3O2BoKas8Metv 83GJnc+mWMtBfPng4+a/PYvuq0Jj0rLpHEqH7/mHI/gOmUg8QQ+QfOsVtEma1+dPlAhN 0u6Q== X-Gm-Message-State: ABy/qLaGo//3YZGEn3IetktSPLdhvMnHF4Iiaxoj2UG+qRTGW9Ngk94e fHVqKYCp/KSByHfpn+sjN+c= X-Google-Smtp-Source: APBJJlH+ZBRMwsng5OvfXU8dbB3Xd4jXwQ7bYsHQHvrkPh/St/88lWUsQjEONL/kaZAV4BM6m8npqA== X-Received: by 2002:a17:90a:43c3:b0:260:d8c0:ae79 with SMTP id r61-20020a17090a43c300b00260d8c0ae79mr1339393pjg.35.1689274436784; Thu, 13 Jul 2023 11:53:56 -0700 (PDT) Received: from localhost (dhcp-72-235-13-41.hawaiiantel.net. [72.235.13.41]) by smtp.gmail.com with ESMTPSA id d13-20020a17090a2a4d00b00262eccfa29fsm13036699pjg.33.2023.07.13.11.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 11:53:56 -0700 (PDT) Date: Thu, 13 Jul 2023 08:53:55 -1000 From: Tejun Heo To: Peter Zijlstra Subject: Re: Consider switching to WQ_UNBOUND messages (was: Re: [PATCH v2 6/7] workqueue: Report work funcs that trigger automatic CPU_INTENSIVE mechanism) Message-ID: References: <20230511181931.869812-1-tj@kernel.org> <20230511181931.869812-7-tj@kernel.org> <20230712080504.GA3100107@hirez.programming.kicks-ass.net> <20230712122745.GH3100107@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230712122745.GH3100107@hirez.programming.kicks-ass.net> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rtc@vger.kernel.org, Linux Fbdev development list , Linux PM list , netdev , kernel-team@meta.com, Lai Jiangshan , Linux Kernel Mailing List , DRI Development , Linux-Renesas , "open list:LIBATA SUBSYSTEM \(Serial and Parallel ATA drivers\)" , Geert Uytterhoeven , Linux MMC List , linux-riscv , "torvalds@linux-foundation.org" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed, Jul 12, 2023 at 02:27:45PM +0200, Peter Zijlstra wrote: > On Wed, Jul 12, 2023 at 11:04:16AM +0200, Geert Uytterhoeven wrote: > > Hoi Peter, > > > > On Wed, Jul 12, 2023 at 10:05 AM Peter Zijlstra wrote: > > > On Tue, Jul 11, 2023 at 11:39:17AM -1000, Tejun Heo wrote: > > > > I wonder whether the right thing to do here is somehow scaling the threshold > > > > according to the relative processing power. It's difficult to come up with a > > > > threshold which works well across the latest & fastest and really tiny CPUs. > > > > I'll think about it some more but if you have some ideas, please feel free > > > > to suggest. > > > > > > We could scale by BogoMIPS I suppose, it's a bogus measurement, as per > > > the name, but it does have some relation to how fast the machine is. > > > > That's gonna fail miserably on e.g. ARM and RISC-V, where BogoMIPS > > depends on some timer frequency. > > > > R-Car M2-W with 1.5 GHz Cortex-A15: 40.00 BogoMIPS > > R-Car V4H with 1.8 GHz Cortex-A76: 33.33 BogoMIPS > > > > while the real slow 48 MHz VexRiscV gets 128 BogoMIPS. > > Hehe, OK, really bogus then. Lets file this idea in the bit-bucket then. I think it can still be useful. On ryzen 3975wx, it's 6989.92, so while it may be off by some hundreds of percents, there are still orders of magnitude signal range and that should be enough to suppress most spurious warnings. I'll post something later today. Thanks. -- tejun