Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38283124rwd; Wed, 12 Jul 2023 05:48:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlGwcuqrP0dsSndAGaGrlkCOsZyHGkIWc8QVKRtOoTR3WQu4VLm9IWDcUjMlP4q3t5XtnBZn X-Received: by 2002:a17:907:6d05:b0:98d:abd4:4000 with SMTP id sa5-20020a1709076d0500b0098dabd44000mr2357440ejc.35.1689166135538; Wed, 12 Jul 2023 05:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689166135; cv=none; d=google.com; s=arc-20160816; b=EFQY3vLWrr238BDX6EDK7GWTdg+nlLushOjxNEivy81LJG6+JnPZkdEKu06VAVdjIt QN+vjunOSw9xpSToSk24/klmYap5m8+f5ESh+mWNVib0M5GOBgGcQpDJ1CerUhxoD1ge qnLXkXzJIykQWz/RrY/T/tmMHkUj7zhhgdahO0Gr5vzS8dq6cQaFGQVjnEK/KOjvWPGM STQazE0j27R52c6atN2HixY1md4g0+/vb78xdHh3krCrZIw1nwOcaKxgiIAx3woUIgcK wvFJB8AvdBTaM1/HPzjRWKw89fMvqPqvesGDgwGxut5vp/ZqtQiqMPO0xRZFMDWjOwjE haTA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZXR+7zHmkWbyYVaIYilEixXpel3+ET8rhBNIy+I7sKc=; fh=H7MgmdqtG3i1uCh7DCik+Z/ORWLJqHl6f8cv7Frewtk=; b=cobYdAedmahRTywQzXXZyfzcjD5BBM9byyLCk0FQs0O//r3Vam4Bhj2dvJUGKngqup nK/carwRyy9WvdqMnUIGniaWt/b5X0t7nHUS0Goi2z8F47Vs1uS9ibMgDQRswcMtOGGL gOKtOWAKDiCX90bKTCNWuMKX777lGcnIMqCLm63za9SqyJ3YcrMj27WtUKrdC6cG9kys stNaGothi1C42eSKIfy1bzuz2lhfMRbEZzvtqpQyueFBJ6Tupal6DDHY0i+SIshQAYQj M9mKYPdUo+aNSkew5jm/ruwZOvhq2r9+XRtcuJ86TpTjiCwRRVQQwjHgtkVKH4UdUOvM t/cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=burEIjw7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a50fb01000000b0051e5c45b42dsi4383746edq.544.2023.07.12.05.48.30; Wed, 12 Jul 2023 05:48:55 -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=@infradead.org header.s=desiato.20200630 header.b=burEIjw7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233269AbjGLM2I (ORCPT + 99 others); Wed, 12 Jul 2023 08:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233507AbjGLM2D (ORCPT ); Wed, 12 Jul 2023 08:28:03 -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 DA9B1A0; Wed, 12 Jul 2023 05:28:00 -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-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=ZXR+7zHmkWbyYVaIYilEixXpel3+ET8rhBNIy+I7sKc=; b=burEIjw7Ax9oR6XyYXgzDOhcuF Xhtc5KYLObU41T0IENhk9G9qohZmC0Yvpb0wRw7l1oWGurx+n06gfe89pV9j1He1PowmLd8jJyW8G 6zVp1GF2gkOuSfQqmnXwyuzEsSHJpzBzRoDcraZR5u1o/H5XlxRZYWJLxZ3Q2LE0UHn9fNAfiTk55 AwKLj1j/r+rbJ4LHiTTJZlao2GGhqWJsjFEZodtwqDNEFYvFkQ0yagZeMU8KXrBVYKFvCwlCCX60H AgkXU1Hco0bnyVOotp2bryNT8o+jpABaFGlsKFzTpw66wm7t7tRLyXKz9AmKG+OeMgsd4mE9EXCCa pxRUvSiw==; 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 1qJYwd-003e8q-0G; Wed, 12 Jul 2023 12:27:47 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AB77B30036B; Wed, 12 Jul 2023 14:27:45 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8E54B243429D2; Wed, 12 Jul 2023 14:27:45 +0200 (CEST) Date: Wed, 12 Jul 2023 14:27:45 +0200 From: Peter Zijlstra To: Geert Uytterhoeven Cc: Tejun Heo , Lai Jiangshan , "torvalds@linux-foundation.org" , Linux Kernel Mailing List , kernel-team@meta.com, Linux PM list , DRI Development , linux-rtc@vger.kernel.org, linux-riscv , netdev , Linux Fbdev development list , Linux MMC List , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , Linux-Renesas 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: <20230712122745.GH3100107@hirez.programming.kicks-ass.net> References: <20230511181931.869812-1-tj@kernel.org> <20230511181931.869812-7-tj@kernel.org> <20230712080504.GA3100107@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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,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 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.