console getty uses 1.5% of CPU
slw at zxy.spb.ru
Wed Apr 7 13:08:45 UTC 2021
On Wed, Apr 07, 2021 at 05:22:40AM +0000, Poul-Henning Kamp wrote:
> I have two 12.2-R systems where the serial console is attached to a terminal server.
> When there are no TCP connections to the terminal server, getty soaks up 1.5% of the
> CPU in the kernel (sleeping in "ttyin"), ktrace shows no system calls.
> When a TCP connection is made to the terminal server, which raises the modem-handshake
> on the DE-9 connector, the CPU usage stops.
> Anybody else seeing something like this ?
Problem of comparing low number?
Top's "getty 1.5% of the CPU" is not "getty eat 1.5% of the ALL CPU
power", this is "getty 1.5% of off all other curerent eats of CPU
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.
Load is raised to 99_985 ticks for system, getty eat 15 ticks -- top
show 0% ( 15/(99985+15) = .015% ).
More information about the freebsd-current