Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2021 17:40:24 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        current@freebsd.org
Subject:   Re: console getty uses 1.5% of CPU
Message-ID:  <20210407144024.GS1073@zxy.spb.ru>
In-Reply-To: <70521.1617806037@critter.freebsd.dk>
References:  <69119.1617772960@critter.freebsd.dk> <20210407130836.GA80160@zxy.spb.ru> <70521.1617806037@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210407144024.GS1073>