From owner-freebsd-current@freebsd.org Wed Apr 7 14:40:30 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 00BC75B8CE0 for ; Wed, 7 Apr 2021 14:40:30 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFnB5613Sz3QQl for ; Wed, 7 Apr 2021 14:40:29 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: by mailman.nyi.freebsd.org (Postfix) id CC7DC5B8CDF; Wed, 7 Apr 2021 14:40:29 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CC4445B8CDE for ; Wed, 7 Apr 2021 14:40:29 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFnB54g6rz3QF5 for ; Wed, 7 Apr 2021 14:40:29 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1lU9M0-000G0k-N6; Wed, 07 Apr 2021 17:40:24 +0300 Date: Wed, 7 Apr 2021 17:40:24 +0300 From: Slawa Olhovchenkov To: Poul-Henning Kamp Cc: current@freebsd.org Subject: Re: console getty uses 1.5% of CPU Message-ID: <20210407144024.GS1073@zxy.spb.ru> References: <69119.1617772960@critter.freebsd.dk> <20210407130836.GA80160@zxy.spb.ru> <70521.1617806037@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70521.1617806037@critter.freebsd.dk> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 4FFnB54g6rz3QF5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 14:40:30 -0000 On Wed, Apr 07, 2021 at 02:33:57PM +0000, Poul-Henning Kamp wrote: > > T.e. if all system eat 985 ticks of CPU each second and getty eat 15 > > ticks of CPU each second -- top show 1.5% for getty. > > That may be, but getty should not wake up at all in this situation, > it should be sleeping, waiting for modem-control signals. May be some kernel-side ticks counted for getty. You can try check this by dtrace, I mean. Snoop scheduler activation and check process accounting.