Slow Linux 2.2.x Telnet? 22
RelliK asks:
"I have a small LAN at home, 4 workstations and a gateway
sharing a cable modem. My workstation is running SuSE
6.1 and the gateway is running Debian 2.1. Both machines
are using the 2.2.9 kernel. The problem is that telnet and
rlogin from my workstation to the gateway is slow to the
point of being absolutely unusable. It takes several seconds
for a character to appear on the sccreen after I type it.
FTP is also jerky: It transfers files fast, but it appears
as though it's constanly "hitting speed bumps", so to speak,
especially when it's about 95% done. I've tried everything
I could think of to fix the problem, but no luck. I'd
*greatly* appreciate it if any of you could help me."
Now this just sounds downright strange. Does anyone have
any ideas as to what's causing this? Click below for more.
Rellik gives more details on his problem:
"I know it is not a network problem. Telnet from other machines to the gateway works fine. It is not a problem with my hardware either. When I telnet from windows it works fine. Also, if I boot the gateway with kernel 2.0.36, it works fine. So it appears as though the two boxes have problems talking to each other when both are running 2.2.x (doesn't seem to matter which since I tried it with 2.2.5 before). Also, if I telnet from my workstation to the outside, bypassing the gateway, it works fine. It also works if I telnet from the gateway to my workstation. And here is the weirdest thing: if I run tcpdump or iptraf while I'm telnet'ing it works fast!! But as soon as I stop them it starts crawling again...
Detailed specs:
My workstation:
Cyrix 6x86PR-200
64 Mb SDRAM
Asus TX97e motherboard
6 gig hd
ATI 3d Pro Turbo video card
PCI ne2000 compatible network card (RealTek chip)
SuSE 6.1 / kernel 2.2.9
The gateway:
AMD 486dx4-100
32 Mb RAM
1.2 gig HD
Trident 1Mb PCI video card
2x PCI ne2000 compatible network cards (RealTek chip)
network: coax ethernet
Thanks for any help in advance!"
Re:NE2000 cards are the worse kind of ethernet (Score:2)
The only problem I have had was an ISA NE2000 clone had a problem with my P2B motherboard that is seriously overclocked. It would for some reason not load the address into the card causing the kernel to report the transmitter was busy. It migh have been something to do with the wait states on the bus, but I did not mess with them that much...
gcc versions (Score:1)
gcc 2.7.2.3 usually works much better. Try adding -V2.7.2.3 to CFLAGS, and probably a -b flag to (on my Slack 3.4 box it's -bi486-unknown-linux-gnulibc1, check your
/* Steinar */
Re:gcc versions (Score:1)
/* Steinar */
Re:gcc versions (Score:1)
On the other hand, -O6 (which is equivalent to -O3 in gcc 2.7.2.3), works fine with gcc 2.7.2.3.
/* Steinar */
Re:gcc versions (Score:1)
1. In gcc, -O3 is the highest possible optimization level. Anything above -O3 (-O4, -O5, -O6 and even -O9) gets changed to -O3.
2. If you compile your kernel with gcc 2.7.2.3, and the optimization set to -O3, it works.
And for RH: I don't know, and I don't care. I don't use Red Hat
/* Steinar */
Similar problem (Score:1)
Ifconfiging the server up and down didn't seem to do anything, but as soon as I removed and inserted the ethernet card's module, it started working happily again. I still to this day have not figured the problem out, but I know for a fact, that when that machine was running 2.0.36, it never had a problem like that. It seems to me to be a kernel issue, but I have not been able to reproduce it again.
I have seen about 3 other people post comments to slashdot having the same problem. Hopefully this can get fixed quickly.
I'm currently running 2.2.10 with the latest development 3c59x driver without any problems.
Hmm, about the tcpdump and iptraf, they both are probably putting the card in promiscious mode, you can set this mode manually by typing as root
/sbin/ifconfig eth0 promisc
this may give you a temporary fix.
tcpdump -p (Score:1)
keeping it out of promiscuous mode to observe the problem.
ifconfig eth0 -promisc; tcpdump -np
unfortunately, packets have to get a little ways
through the kernel before tcpdump can grab them.
also, you might look at netstat -nt to see if
the bytes are being queued... I'm not sure what
that stuff really means, but when I have network
woes, queueing usually pops up there.
I have had a similar problem, but I haven't been
able to track it down; it seems to only afflict
my laptop with whole second (often up to 15
second) ping delays. If, when you run ping between
these hosts, you see latencies that are really
close to whole seconds, we might have an epidemic
here.
TCP/IP slowdown (Score:1)
Similar Problem (Score:1)
After the swearing, and about a day, the problem completely disappeared. The only thing I can think of that would have fixed it was that I rebooted...
Re:MSS? (Score:1)
FunOne
Re:NE2000 cards are the worse kind of ethernet (Score:1)
He should see whether upgrading to 2.2.10acx helps. And always use gcc 2.7.2.x for compiling kernels.
Re:NE2000 cards are the worse kind of ethernet (Score:1)
I had more trouble with 3Coms. I guess you're a recent Linux convert, because 3Com PCI models had problems with Linux because they would not release the specs a while back. It left such a bad taste in my mouth that even now I think twice about buying 3Com.
And if you're using 3c509, don't forget to turn the damn plug-and-pray feature OFF.