Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11781725rwd; Thu, 22 Jun 2023 19:12:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7858D9pZtBEsoJJClGhRxBVpel2CexLOcfkANTMAa9akoN6fmONGZLlhH9edngtKQFAh83 X-Received: by 2002:a05:6a20:72a9:b0:122:7749:780a with SMTP id o41-20020a056a2072a900b001227749780amr8277990pzk.62.1687486326262; Thu, 22 Jun 2023 19:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687486326; cv=none; d=google.com; s=arc-20160816; b=xt/R0eLX+txwFZAXqlypmIjJsMaLLb6cTbkOqaKZ/VdxiR/3FecyjQWaXlgFjmWH62 GP8PQdOWG+7/0dXeUkvaDYjQkkUO/LL77gkL9RpTv0p0EA3GDjBo/llYYFcDhh0q+MPI l5dJGj2vhrll3I3z/BxJXdqaWZl1XzM8irBLzejhPttqH/BlS+kli/bo7FOB3VwH6QLb ydBVKocyK9VlE52TJbTmhYuEdAgyPLe7+6BngP6Pp5wqd6SYVjXdIhogY+A20+S7rjPd 9KCm0w0CjwwWTaUawJ0Vzg1bZyw2phC3A0tSLsO9TVswGT4zhzjB94DFTSZlAGw1/drJ X2Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ckJn4dPOLI0Rb6l3mKCPKnsOYYPNjT7ZlO/694lvKTw=; b=sxVSfICBYKrWt+4wrp532NgIg8ZzNGfYvDnYFa4RO33DEi0Vl41bitUQYKAcOFR7bR LVYvf6L7lJXK3aMn/30F44QXfJFyQPp4K1E6JyuDlIWMDeZRUug4lq3GroYRhYju9lj3 LD5SUuteptsmBZbzbd4yMLuImNwZrMElhfQNjeSxITtGWb4YEIdPwd/u8DXoibpLbJ7K FmaWnfZqpezOrsFB41y9hZ5F13NL0M8ZVYntwSG/C+VdVEn197ohE8615Q2UrIDPXzny jPoE/czhi1REe+XxduFQemZHoMGDNyAMJv1sKx2GUql7A6lXMx5VgJuAf179siPG29GV MIPg== ARC-Authentication-Results: i=1; mx.google.com; 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 c7-20020a170902d48700b001b52ca9f711si3540259plg.585.2023.06.22.19.11.53; Thu, 22 Jun 2023 19:12:06 -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; 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 S229921AbjFWB0W (ORCPT + 99 others); Thu, 22 Jun 2023 21:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjFWB0V (ORCPT ); Thu, 22 Jun 2023 21:26:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E8EF1FCB; Thu, 22 Jun 2023 18:26:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AFCEF61941; Fri, 23 Jun 2023 01:26:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B2E0C433C8; Fri, 23 Jun 2023 01:26:16 +0000 (UTC) Date: Thu, 22 Jun 2023 21:26:14 -0400 From: Steven Rostedt To: Bagas Sanjaya Cc: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lingutla Chandrasekhar , Frederic Weisbecker , "J. Avila" , Vivek Anand , "Rafael J. Wysocki" , Thomas Renninger , Shuah Khan , Linux Kernel Mailing List , Linux Regressions , Linux Netfilter Development , Netfilter Core Developers , Linux Networking , Linux Power Management Subject: Re: High cpu usage caused by kernel process when upgraded to linux 5.19.17 or later Message-ID: <20230622212614.5eb20dad@gandalf.local.home> In-Reply-To: <01ac399d-f793-49d4-844b-72cd8e0034df@gmail.com> References: <01ac399d-f793-49d4-844b-72cd8e0034df@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, 23 Jun 2023 07:58:51 +0700 Bagas Sanjaya wrote: > Hi, > > I notice a regression report on Bugzilla [1]. Quoting from it: > > > kernel process "kworker/events_power_efficient" uses a lot of cpu power (100% on ESXI 6.7, ~30% on ESXI 7.0U3 or later) after upgrading from 5.17.3 to 5.19.17 or later. > > > > dmesg log: > > [ 2430.973102] > > [ 2430.973131] Sending NMI from CPU 1 to CPUs 0: > > [ 2430.973241] NMI backtrace for cpu 0 > > [ 2430.973247] CPU: 0 PID: 22 Comm: kworker/0:1 Not tainted 6.3.3 #1 > > [ 2430.973254] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020 > > [ 2430.973258] Workqueue: events_power_efficient htable_gc [xt_hashlimit] > > [ 2430.973275] RIP: 0010:preempt_count_sub+0x2e/0xa0 > > [ 2430.973289] Code: 36 01 85 c9 75 1b 65 8b 15 a7 da f8 5e 89 d1 81 e1 ff ff ff 7f 39 f9 7c 16 81 ff fe 00 00 00 76 3b f7 df 65 01 3d 8a da f8 5e cc cc cc cc e8 98 aa 25 00 85 c0 74 f2 8b 15 da 71 ed 00 85 d2 > > [ 2430.973294] RSP: 0018:ffffb15ec00dbe58 EFLAGS: 00000297 > > [ 2430.973299] RAX: 0000000000000000 RBX: ffffb15ec12ad000 RCX: 0000000000000001 > > [ 2430.973302] RDX: 0000000080000001 RSI: ffffffffa1c3313b RDI: 00000000ffffffff > > [ 2430.973306] RBP: dead000000000122 R08: 0000000000000010 R09: 0000746e65696369 > > [ 2430.973309] R10: 8080808080808080 R11: 0000000000000018 R12: 0000000000000000 > > [ 2430.973312] R13: 0000000000001e2b R14: ffffb15ec12ad048 R15: ffff91c279c26a05 > > [ 2430.973316] FS: 0000000000000000(0000) GS:ffff91c279c00000(0000) knlGS:0000000000000000 > > [ 2430.973320] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > [ 2430.973324] CR2: 000055fc138890e0 CR3: 000000010810e002 CR4: 00000000001706f0 > > [ 2430.973374] Call Trace: > > [ 2430.973388] > > [ 2430.973390] __local_bh_enable_ip+0x32/0x70 > > [ 2430.973413] htable_selective_cleanup+0x95/0xc0 [xt_hashlimit] > > [ 2430.973428] htable_gc+0xf/0x30 [xt_hashlimit] I take it that the "gc" in "htable_gc" means "garbage collection". It may not have anything to do with changes to this thread. It could very well be something is feeding it too much garbage! -- Steve > > [ 2430.973440] process_one_work+0x1d4/0x360 > > [ 2430.973459] ? process_one_work+0x360/0x360 > > [ 2430.973467] worker_thread+0x25/0x3b0 > > [ 2430.973476] ? process_one_work+0x360/0x360 > > [ 2430.973483] kthread+0xe1/0x110 > > [ 2430.973499] ? kthread_complete_and_exit+0x20/0x20 > > [ 2430.973507] ret_from_fork+0x1f/0x30 > > [ 2430.973526] > > See Bugzilla for the full thread and perf output. > > Anyway, I'm tracking it in regzbot so that it doesn't fall through > cracks unnoticed: > > #regzbot introduced: v5.17.3..v5.19.17 https://bugzilla.kernel.org/show_bug.cgi?id=217586 > #regzbot title: kworker/events_power_efficient utilizes full CPU power after kernel upgrade > > Thanks. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=217586 >