Thread View: comp.sys.next.sysadmin
5 messages
5 total messages
Started by Ulrich Grepel
Tue, 17 Nov 1992 14:26
SUMMARY: cpu usage of unused but enabled serial port
Author: Ulrich Grepel
Date: Tue, 17 Nov 1992 14:26
Date: Tue, 17 Nov 1992 14:26
30 lines
1913 bytes
1913 bytes
Hi all,
this is a summary of the hints I've got for my problem with my unused but
enabled serial ports eating up my CPU:
1. Many others have the same problem.
2. It seems to be the case that the ports generate interrupts.
3. You can decrease CPU usage in several ways:
a) don't enable the ports
b) plug something into the ports that quiet them down (e.g. modem turned on,
a terminal plugged in, logged in and then turned off)
c) use the dsp together with additional hardware to get a high speed
serial port that doesn't use up your CPU
4. The whole thing seems to be irrelevant of the OS version. I have 3.0, but
it was that bad much earlier. That's easy to understand since it is a
hardware problem.
5. If you think your '40 NeXT is standing still, a '30 one is running
backwards.
6. A port that is configured to a higher baud rate is eating more CPU.
7. 19200 baud need approx. 30-40 percent of the CPU if it can get that much
8. A second port needs additional 30-40 percent.
9. A port configured to 1200 baud doesn't need any CPU, ps xu only shows 240K
of RSIZE.
10.Modifying /etc/ttys and 'kill -HUP 1' takes effect immediately in both
directions.
11.Ports without hardware flow control eat up the same amount of CPU.
Thanks to all who responded, even if there's no real solution,
Uli
Re: SUMMARY: cpu usage of unused but enabled serial port
Author: Mike Dixon
Date: Tue, 17 Nov 1992 19:51
Date: Tue, 17 Nov 1992 19:51
24 lines
1362 bytes
1362 bytes
(this should probably be put in the FAQ)
why does an unused serial port consume cpu?
because you've got a (probably fairly long) unshielded serial cable
attached to it, with either nothing at the other end or a powered-off
device at the other end. EE's call this an antenna. it's probably
picking up most of the radio stations in your area, which the serial
chip is interpreting as a continuous stream of garbage bytes, which
it feeds to getty, which tries to interpret them as login attempts.
how do you avoid this problem?
- leave the device at the other end switched on (even when it's not
transmitting, it will assert a voltage that overrides the noise)
- unplug the cable from the next when you're not using it
- use 'kill -STOP' & 'kill -CONT' to stop & resume the getty process
as needed
- buy an adequately shielded serial cable
.mike.
Re: SUMMARY: cpu usage of unused but enabled serial port
Author: Heiko W.Rupp
Date: Wed, 18 Nov 1992 11:00
Date: Wed, 18 Nov 1992 11:00
35 lines
1811 bytes
1811 bytes
uli@kino.intellektik.informatik.th-darmstadt.de (Ulrich Grepel) writes: >this is a summary of the hints I've got for my problem with my unused but >enabled serial ports eating up my CPU: Just disable them. - see 3a >2. It seems to be the case that the ports generate interrupts. They need to work correctly. Where other should the device driver know from that the fifo needs to be emptied? It could busy wait, but this would even nned more CPU. >3. You can decrease CPU usage in several ways: > a) don't enable the ports > c) use the dsp together with additional hardware to get a high speed > serial port that doesn't use up your CPU Would be interesting, but there are still many things to go on the DSP-Port. >4. The whole thing seems to be irrelevant of the OS version. I have 3.0, but > it was that bad much earlier. That's easy to understand since it is a > hardware problem. It is not a problem! That's the way a device driver works. If NeXT had used serial chips with 16 byte fifo for each serial port (and enabled this 16 bytes fifo), interrupt load would have decreased. -- Heiko W.Rupp Gerwigstr.5 7500 Kh'e 1 hwr@pilhuhn.ka.sub.org +49 721 693642 Mustgo, n.: Any item of food that has been sitting in the refrigerator so long it has become a science project. -- Sniglets, "Rich Hall & Friends"
Re: SUMMARY: cpu usage of unused but enabled serial port
Author: andrew
Date: Thu, 19 Nov 1992 17:16
Date: Thu, 19 Nov 1992 17:16
11 lines
955 bytes
955 bytes
In article <1992Nov18.110002.17869@pilhuhn.ka.sub.org> hwr@pilhuhn.ka.sub.org (Heiko W.Rupp) writes: >It is not a problem! That's the way a device driver works. If NeXT had >used serial chips with 16 byte fifo for each serial port (and enabled >this 16 bytes fifo), interrupt load would have decreased. NeXT uses one of the Zilog serial controllers, which is a good serial controller, but I think it's a combination of the device-driver and the apparent lack of DMA (or use of it) in moving bits around. andrew
Re: SUMMARY: cpu usage of unused but enabled serial port
Author: Mike Dixon
Date: Mon, 23 Nov 1992 01:58
Date: Mon, 23 Nov 1992 01:58
10 lines
865 bytes
865 bytes
hwr@pilhuhn.ka.sub.org (Heiko W.Rupp) writes:
[ ... ]
you've misunderstood the original posting. the problem isn't that serial
port communications generate interrupts and consume cpu time when they're
being used; it's that they generate interrupts and consume *more* cpu time
when they're not being used (under some circumstances; see my previous
posting for details).
.mike.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads