Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1317289rdb; Mon, 19 Feb 2024 11:03:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxmFTEoRk2d07QifcYZBg/8z+kx7waVKLpdr/NqCw+Vh2cOtBL12Yo3az1rykcnrYDEx35WZLdSyeCgU6Rkwg2R2vteElcjvvG5rfKcw== X-Google-Smtp-Source: AGHT+IGs7rW8jXfokjyH0U7+f1saVm5fhE9KgjX2hnkik0Yyh0Hizmr39DwpVrN/nQEza5ynQ5o/ X-Received: by 2002:a05:6a20:9f91:b0:19e:b614:48ad with SMTP id mm17-20020a056a209f9100b0019eb61448admr13350085pzb.5.1708369422310; Mon, 19 Feb 2024 11:03:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708369422; cv=pass; d=google.com; s=arc-20160816; b=ZsTToLQ5Ptgsi6h1ZXi3q6acPqfbz4GRp6QsU/Nw7ZjA0+L5PIOligiCe1jkzExeb/ Z1E0kUswgvrZJQtbj859Wd3py0LPB4kHliv6iTtRtsFzxJD8+OnJ/6B5i0g7XRAiOAfW USEJCEEI9B6DnyhH0zrOQ/t3b5bROdbWl6ptcXqiCff8QmHW/mX6UQogbhWft81GbzJE /bIi7o8EI5HPyoeErSZoBhKkogKnAL00MFSoxtbPHeyzJQNhehVvRMr1M16cTQm2zS2A 3f1cmZoFB7Fy7Jh7WRwMoHyE7Fa9IVfayumsTx7gmvtzQUGP+RD3gsGEWHqaqFYotWd6 Kiww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=b+yTbC3LvSYQUMnGVtqug/Ddhp61GwUTdiFR0Zm9oNM=; fh=uu0DIaI9sDcYJ61nrOeaonijRPD1d9L35aFtddQkBg0=; b=B7rGZ2q1/JJefUei5GUQkbXk/Nx2yzvPXYs4Djzr3vZs6AGcI84dD/NPqqXfQhmWw2 eV1NS91Fvy1JqL9qe3DMQPmUZLhogqYzSJ4EJQ3hu+SyHvGyaSccsQRT4jLIi2pVnWp0 QhPDbv86BnpXcBYDAilH2F5yQ4TlcLwaFKD4yzTlR5xqN+Vfwk4HQk8dePANj1FF0/UU uSfyImN28tynOhjZRZkPxgmFu04Vd+gNyCtrdb6NC9AAi5buAEi+mbSYrlJ3lfxfEIeN cIxhRtJSeTHZUHEzufidRREV8GmxG1Yy5JrE9pOp3yza3Xy1KTqry3bN9GOXR8Wncz2h itRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=3c6aqIUW; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-71630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71630-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a6-20020a056a000c8600b006e04030ef0dsi4947401pfv.195.2024.02.19.11.03.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 11:03:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=3c6aqIUW; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-71630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71630-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A1946B24B04 for ; Mon, 19 Feb 2024 16:01:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DA723B18E; Mon, 19 Feb 2024 16:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="3c6aqIUW" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F5AD3A1DE; Mon, 19 Feb 2024 16:00:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708358460; cv=none; b=rT792Vv6ypuskSeaejTFQId81qkUXV9lRUsLQekfjGFI0bXiKB3GZDvKdljLci3huNPJGcqPNss0u0ug4MKXcxDgjDx48ECLRQJlM6JfBPwpj2Qb8OOmrfHaMYL5Ld6muxaxK2uLPPiBgWKOYtxaZAH1jLgvgKCaXAjHYddTlFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708358460; c=relaxed/simple; bh=mkxQyW1MDhlEE7Juli0Fv11LooCAXtYrnR6kF74B17k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=f1UCtrwKufvbNpW/jiO7rrqwigauNlJyTyxqCOcBx5KbAOaOkxYtL9zv9//uXU9hCIAFlxpow0xOpdCfUPIyPsbbaz2rMMUOhY19HMdYgeeXa0sACErUYCesOUIp2fP6sxPd2bSV8dZZXD9l9qhwUHL5LP3/HwdQ7PYzzDqJwq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=3c6aqIUW; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=b+yTbC3LvSYQUMnGVtqug/Ddhp61GwUTdiFR0Zm9oNM=; b=3c6aqIUWJmSlz+en6n1+VYGdiY V45YvYWl/IpeQDmBAtNCqy5dfEoIkK4HfJGmDzIp2/rKi0u9WdhsoxolrNDMmYU57jDx6Xr75zIwQ CedDxMfjIZ3siY1v/IJigX5bF/qrzF3ldgz1I7FAVnbZFFJDOTwb6mOqh9wDs+zitVjdVA+3Vts2H eUYWX7c4MeLfX73dO017AYxwAT9xVkSpQ5p4/I1idOgQwWW/fhWnONm4Etx+40WW/qcU724twlgyA MJPSB+Y4oBpeCW/4OZzdqaQZLI6OvZDibp4UU1vN48JUcwFr2jOM6kiQP3Ls3eXhRcIWDbQ9ir31T DOCgi5lg==; Received: from [50.53.50.0] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc64a-0000000BFEn-4Bkj; Mon, 19 Feb 2024 16:00:53 +0000 Message-ID: <8cae5358-d1f3-4e86-950f-bb72a940ed3f@infradead.org> Date: Mon, 19 Feb 2024 08:00:52 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] workqueue: Control the frequency of intensive warning through cmdline Content-Language: en-US To: Xuewen Yan , tj@kernel.org, jiangshanlai@gmail.com, corbet@lwn.net Cc: paulmck@kernel.org, peterz@infradead.org, yanjiewtw@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, ke.wang@unisoc.com, xuewen.yan94@gmail.com References: <20240219074634.2039-1-xuewen.yan@unisoc.com> From: Randy Dunlap In-Reply-To: <20240219074634.2039-1-xuewen.yan@unisoc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/18/24 23:46, Xuewen Yan wrote: > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 31b3a25680d0..599fc59fcf70 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -7225,6 +7225,15 @@ > threshold repeatedly. They are likely good > candidates for using WQ_UNBOUND workqueues instead. > > + workqueue.cpu_intensive_warning_per_count= workqueue.cpu_intensive_warning_per_count= or > + If CONFIG_WQ_CPU_INTENSIVE_REPORT is set, the kernel > + will report the work functions which violate the > + intensive_threshold_us repeatedly. In order to prevent > + the kernel log from being printed too frequently. frequently, control > + Control the frequency. > + > + Default, it will print one warning per 4 times. By default, > + -- #Randy