Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Linux Software

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!"

This discussion has been archived. No new comments can be posted.

Slow Linux 2.2.x Telnet?

Comments Filter:
  • I'm happy with NE2000 clones as they seem to meet my needs. Between the PCI Realtek NE2000 clone on my workstation and the PCMCIA NE2000 clone on my laptop, they ftp about 1MBs between eachother when transferring ISO images. All that between 75 feet of cheap 8 conductor telephone cable too.

    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...
  • I'm not sure which gcc version you are using, but using egcs or pgcc on 2.x kernels gives me big trouble with networking code (like only replying to the first ping it gets from any machine...).

    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 /usr/lib and find it there)

    /* Steinar */
  • I've been using about the same versions as you, and I've found problems both with 2.1 and 2.2. In fact, 2.2 is worse for me than 2.1. (Well, I bootstrap with -O6 -- I guess some pgcc bugs went back into the compiler...)

    /* Steinar */
  • It bombs with -O2 also.

    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 */
  • What's so confusing? OK, to take it again:

    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 */
  • I've had a similar problem with a computer running a 2.2.9 kernel. While doing a redhat 6.0 installation over ftp on a 10bT network, the server all of a sudden decided to slow down to the point that it was almost not responding. I couldn't even telnet into it. If you pinged it, the response time would be in the >2000 ms range. It has a 3com 3c905 card in it, while the receiving computer had a 3com 3c905B.

    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.
  • if you can't observe it with normal tcpdump, try
    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.
  • I have heard that the current Linux kernel (2.2) mainly the ppp code experiences slowdowns.
  • A while back, after first installing RH6 on my gateway (3c509), it began acting suspicious. Any traffic between my desktop (3c905TX, Win98, ugh), and the gateway would slow down to a crawl, then eventually drop packets. Bringing the interfaces down and up would fix it, but 5 mins later, it would slow back down again. I had a continuous ping -t running from my desktop to the gateway, and I noticed that it started slowing down when I started downloading/browsing from the 'net. If the line was idle, everything was fine.

    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...
  • Sorry, what is MSS? I've never hear of it.

    FunOne
  • I can easily get transfer rates of 800kb/s between two NE2000 clones. OS doesn't matter (if you care, over the time it was Linux 2.[02], FreeBSD 2.2.x,3.1, and now 4.0-current, NetBSD 1.[34], Solaris 2.6)

    He should see whether upgrading to 2.2.10acx helps. And always use gcc 2.7.2.x for compiling kernels.
  • Actually, some of my favorite ethernet cards are LinkSys and Realteks - NE2000 compat cards. They never failed me on Linux installations.

    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.

Remember, UNIX spelled backwards is XINU. -- Mt.

Working...