Bug 258382 - comms/ser2net: uses 100% of CPU
Summary: comms/ser2net: uses 100% of CPU
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Vinícius Zavam
Depends on:
Reported: 2021-09-09 07:46 UTC by Chris Johns
Modified: 2021-09-09 07:46 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (egypcio)


Note You need to log in before you can comment on or make changes to this bug.
Description Chris Johns 2021-09-09 07:46:01 UTC
# uname -v
FreeBSD 13.0-RELEASE-p1 #0: Wed May 26 22:15:09 UTC 2021     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC 

I have a hardware board (Xilinx Ultrascale Cortex-A53) with a USB FDTI serial console configured at 115200 baud and if I connect using telnet or the `rtems-test` command `ser2net` seems to spin with 100% CPU load.

I ran `ser2net` from the command line with a number of threads and a number of CPUs seems to max at 100%.

The serial output `set2net` sents over the telnet connection has dropped data. Observing the data stream from the RTEMS applications running on the Utlrascale hardware it seems the dropped data is from the start of a block. The UART has a TX FIFO and it is being used. 

Note, the `rtems-test` command uses Python's `telnetlib` to connect using the telnet protocol.