Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1537895rwd; Thu, 25 May 2023 14:13:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7J8owydaAIJ4CkUZzxNrStszgIk2iAtPluCCx7Gyk6zG0lC06z2R1FyBKG4rOXlYAE0YoS X-Received: by 2002:a05:6a20:1587:b0:104:d82a:63c5 with SMTP id h7-20020a056a20158700b00104d82a63c5mr26862687pzj.53.1685049228789; Thu, 25 May 2023 14:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685049228; cv=none; d=google.com; s=arc-20160816; b=gPY3v4jVAWPXzZP8coZC4Mc5Dl9oD3nryPE8sb8jUhUdGQhAC2V47OjfSQHPWc0utc YpIAVS3LHQtUKdAFGoUCHFdsaoKVRO7RnMjHrva6ggv6RTTHxnqM6Ogj0ENpgi2Eiktm OnGrdklCIQvijSaHvrjFNgcTG6aLCQV8Emv7c+pBfp2ng4qkAZ4rfWSg5W8q/dN1j83C aPC9tBAPrpJ6I7dsI1qCJwg6BxLcD7Z70woL0EKfLECYzND0xeVxuOxsf4RJWDEll6kY 1rOV9OuzLaZlLX2BS3BzzkEakxdjGIYIwft5BYanomZxWnyrL282OkL9MxTyCVgBHDAT l5IQ== 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:sender:dkim-signature; bh=whxtKs3zY5o7lOi2M0b4sH5ZglTh45UXMdseNgG74N4=; b=hH2uuvC8JC7JX7aTxl6km9+HOSHXpdZvCCWKRe4rPemcMxqL5S5fgzVBTTHEGyysU3 p+AWHNq5S/snF34ofpoDG6LxI2ObwiexY/9sVBdw58s4aBLkcMnWGancb/ktimS9Msio 93R15rHFkKN+r/iWodGaE9ftDV+jF8jPbjFjJ9GqZ0uAWi0qtA3j78HLBNYV3Ju/VJ3C oQebWSpq9/dO+cxnpaN9D0uSdlsI9gS221DZ7rI/sKLBVbUBzzwgV0c3iLkjFvu43nR9 fkOkX6+rnmKSRe1ZJmIzrLJEWPb2kc45+M6RJBMp+MZdhu8Q4BgcOqHnx7T80Sv9K6Xv M4BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fwgTrAqH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a63b544000000b005343c3db9ebsi1788257pgo.616.2023.05.25.14.13.35; Thu, 25 May 2023 14:13:48 -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=@gmail.com header.s=20221208 header.b=fwgTrAqH; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236289AbjEYUtE (ORCPT + 99 others); Thu, 25 May 2023 16:49:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbjEYUtD (ORCPT ); Thu, 25 May 2023 16:49:03 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35F1097 for ; Thu, 25 May 2023 13:49:02 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1ae51b07338so286725ad.0 for ; Thu, 25 May 2023 13:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685047741; x=1687639741; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=whxtKs3zY5o7lOi2M0b4sH5ZglTh45UXMdseNgG74N4=; b=fwgTrAqHvHwj8d6TliW8P0im5qW7xToIJciZwg7zsD6c9SsrC9Ua5Dl406Iz1IoowO APk6FBcL1gETui+h/pga+YZrFmbwW0yhyXtG5jlnyihzKAaPNT/wakbg3MkbmDepLAIt 2BiX54GvC+Bp89+bqKaH3dl+InPwUfdckjzUJGtZ9v/jjA4SyWVkqPwvdTbjSGm0sXkx aYcE6W2I48fK81kVGcIb1DSsmNyAiaPKHZZOmQris4Us154GRkDAw+C1PRKngn6j5lnx LD4wKwiinNtnosSSe3RT9ARsHien9Z364BGIl/zHBPQqb8iO987F5DAhU/aIM9NNHT04 0dSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685047741; x=1687639741; h=in-reply-to: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=whxtKs3zY5o7lOi2M0b4sH5ZglTh45UXMdseNgG74N4=; b=JZ5PMNcmM7vRlOF0Djk/qo8/Sj4uSZY4oOB5C+9lrCxh/mn40Wyq4RG1b3RYw6juU0 sxPxW00ZyFMRUIehTjrXWWECXMu4Vy9Xb1DOQUBu3/rBceyJ6u/U1+PL1d1ACaMWrOZk nKpMzPEIwjsPwlRrhhnDi2UgwV5m1I1JpbOZz4TGVTYZ7QwCgZoDcHVgb/MdPfdL9PvV lf+udZHINAYKqh/kcZWio7sAV8TdRjkzu+ZiX3FybCpqnPaHUeFSlq94MrDhRPqoaslS NfUDWNV7oYApIEGT1y1QdIoe+22XKzousYJF+6aj8fnp5W4udN9tY/3wJorigb8g3Bmi kC2g== X-Gm-Message-State: AC+VfDy3LzV0G6ndkk7zS2akeT39CKj9QpPU+u8VTjGumhGO1f/najNH LYoRwBbBAoP9OXoGKUMYomNNNATTTqg= X-Received: by 2002:a17:902:a704:b0:1b0:ebd:c52e with SMTP id w4-20020a170902a70400b001b00ebdc52emr162855plq.48.1685047741265; Thu, 25 May 2023 13:49:01 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id u16-20020a170902e5d000b001a260b5319bsm1817918plf.91.2023.05.25.13.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 13:49:00 -0700 (PDT) Sender: Tejun Heo Date: Thu, 25 May 2023 10:48:59 -1000 From: Tejun Heo To: Zqiang Cc: jiangshanlai@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] workqueue: Do not set CPU_INTENSIVE worker flags with wq_cpu_intensive_thresh_us=0 Message-ID: References: <20230525040038.12346-1-qiang.zhang1211@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230525040038.12346-1-qiang.zhang1211@gmail.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,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 Hello, I rewrote the patch description and separated it out into a separate if statement for readability. Applied to wq/for-6.5. Thanks. From 18c8ae813156a6855f026de80fffb91e1a28ab3d Mon Sep 17 00:00:00 2001 From: Zqiang Date: Thu, 25 May 2023 12:00:38 +0800 Subject: [PATCH] workqueue: Disable per-cpu CPU hog detection when wq_cpu_intensive_thresh_us is 0 If workqueue.cpu_intensive_thresh_us is set to 0, the detection mechanism for CPU-hogging per-cpu work item will keep triggering spuriously: workqueue: process_srcu hogged CPU for >0us 4 times, consider switching to WQ_UNBOUND workqueue: gc_worker hogged CPU for >0us 4 times, consider switching to WQ_UNBOUND workqueue: gc_worker hogged CPU for >0us 8 times, consider switching to WQ_UNBOUND workqueue: wait_rcu_exp_gp hogged CPU for >0us 4 times, consider switching to WQ_UNBOUND workqueue: kfree_rcu_monitor hogged CPU for >0us 4 times, consider switching to WQ_UNBOUND workqueue: kfree_rcu_monitor hogged CPU for >0us 8 times, consider switching to WQ_UNBOUND workqueue: reg_todo hogged CPU for >0us 4 times, consider switching to WQ_UNBOUND This commit therefore disables the CPU-hog detection mechanism when workqueue.cpu_intensive_thresh_us is set to 0. tj: Patch description updated and the condition check on cpu_intensive_thresh_us separated into a separate if statement for readability. Signed-off-by: Zqiang Can you please use your full name as in "FIRST_NAME LAST_NAME " when signing-off patches in the future? Thanks. -- tejun