From nobody Mon Jan 30 13:27:16 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P589m55R0z3cgQd for ; Mon, 30 Jan 2023 13:27:24 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail2.karels.net (mail2.karels.net [3.19.118.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "freebsd", Issuer "freebsd" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P589m2mJSz3L9W for ; Mon, 30 Jan 2023 13:27:24 +0000 (UTC) (envelope-from mike@karels.net) Authentication-Results: mx1.freebsd.org; none Received: from mail2.karels.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail2.karels.net (8.16.1/8.16.1) with ESMTP id 30UDRHEW087707; Mon, 30 Jan 2023 07:27:17 -0600 (CST) (envelope-from mike@karels.net) Received: from [10.0.2.130] ([73.62.165.147]) by mail2.karels.net with ESMTPSA id FzMLGLXF12OZVgEAs/W3XQ (envelope-from ); Mon, 30 Jan 2023 07:27:17 -0600 From: Mike Karels To: Nikos Vassiliadis Cc: freebsd-stable@freebsd.org Subject: Re: Kernel is using a lot of CPU (was: Re: test) Date: Mon, 30 Jan 2023 07:27:16 -0600 X-Mailer: MailMate (1.14r5937) Message-ID: In-Reply-To: References: List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4P589m2mJSz3L9W X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.16.0.0/14, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 30 Jan 2023, at 5:03, Nikos Vassiliadis wrote: >> Hi, >> >> I just rebooted a system of mine and it seems that the kernel is const= antly doing something. How could I debug this? >> I am thinking of rebooting it tonight >> >> root@aurora:~ # top -S -b >> last pid: 2196; load averages: 1.00, 1.00, 1.00 up 0+01:54:34 = 12:41:35 >> 72 processes: 2 running, 69 sleeping, 1 waiting >> CPU: 0.0% user, 0.0% nice, 24.6% system, 0.0% interrupt, 75.3% idle= >> Mem: 46M Active, 171M Inact, 1429M Wired, 14G Free >> ARC: 919M Total, 354M MFU, 487M MRU, 6912K Anon, 8726K Header, 63M Oth= er >> 234M Compressed, 610M Uncompressed, 2.60:1 Ratio >> Swap: 16G Total, 16G Free >> >> PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU= COMMAND >> 11 root 4 155 ki31 0B 64K RUN 0 345:06 314.31%= idle >> 0 root 49 -16 - 0B 784K swapin 1 112:27 99.85%= kernel >> 30 root 319 -16 - 0B 5120K spa->s 3 0:06 0.00%= zpool-aurora-os >> 1157 root 1 20 0 176M 150M select 2 0:05 0.00%= smbd >> 1154 root 1 20 0 175M 150M select 2 0:05 0.00%= smbd >> >> This is a 12.4-RELEASE system. >> >> Thanks for any ideas, >> Nikos >> >> >> > > Sending the email again with the correct subject You could add -H to the top command, which will show kernel threads withi= n the kernel process. Mike