From owner-freebsd-questions Wed Apr 17 3:53:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by hub.freebsd.org (Postfix) with ESMTP id B28EF37B416 for ; Wed, 17 Apr 2002 03:53:36 -0700 (PDT) Received: (qmail 35397 invoked from network); 17 Apr 2002 11:06:01 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 17 Apr 2002 11:06:01 -0000 Message-ID: <3CBD53D9.A601646F@liwing.de> Date: Wed, 17 Apr 2002 12:52:09 +0200 From: Jens Rehsack Organization: LiWing IT-Services X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Alexander Isaev Cc: questions@freebsd.org Subject: Re: FreeBSD 4.5 and network problems References: <215648810.20020415134857@astelit.ru> <3CBAA628.6304E066@liwing.de> <16518703142.20020415143951@astelit.ru> <3CBAB3E2.B47F583B@liwing.de> <13114797867.20020417131609@astelit.ru> <3CBD437E.3027869F@liwing.de> <8819984941.20020417144235@astelit.ru> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alexander Isaev wrote: > > Hello Jens, > > Wednesday, Wednesday, April 17, 2002, you wrote: > > JR> Alexander Isaev wrote: > >> > >> Hello Jens, > >> > >> Monday, Monday, April 15, 2002, you wrote: > >> > >> JR> Alexander Isaev wrote: > >> >> > >> >> Hello Jens, > >> >> > >> >> Monday, Monday, April 15, 2002, you wrote: > >> >> > >> >> JR> Alexander Isaev wrote: > >> >> >> > >> >> >> Hello freebsd-questions, > >> >> >> > >> >> >> I have installed FreeBSD 4.5. Everything worked OK from the console. > >> >> >> But when I tried to connect to it remotely (using SSH) I had some network troubles. > >> >> >> From time to time to time the connection hangs for a short time. > >> >> >> First of all I've tried to install another network card (I've replaced > >> >> >> D-Link 550 with D-Link 538TX). But the problem still exists. Later > >> >> >> I've noticed that network timeouts happen also when sending or > >> >> >> receiving large files over SMTP/POP3. > >> >> JR> Can you login? If not, what user account do you try at login? > >> >> JR> If you can login, is your machine heavy loaded? Or how many routers/firewalls > >> >> JR> are between your remote machine and your freebsd 4.5 box? > >> >> Yes I can login. Machine is idle for 99,9 %. > >> >> > >> >> last pid: 16641; load averages: 0.00, 0.00, 0.00 up 4+23:16:04 14:36:10 > >> >> 21 processes: 2 running, 19 sleeping > >> >> CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle > >> >> Mem: 9880K Active, 77M Inact, 56M Wired, 56K Cache, 33M Buf, 89M Free > >> >> Swap: 465M Total, 465M Free > >> >> > >> >> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND > >> >> 16641 isaev 28 0 1892K 1172K RUN 0:00 1.08% 0.20% top > >> >> 16631 root 2 0 2072K 1756K sbwait 0:00 0.06% 0.05% sendmail > >> >> 16639 candymow 2 0 1104K 812K sbwait 0:00 0.17% 0.05% cucipop > >> >> 91 root 2 0 4392K 4128K select 0:40 0.00% 0.00% drwebd > >> >> 93 drweb 2 0 4400K 1608K poll 0:07 0.00% 0.00% drweb-smf > >> >> 62 root 2 0 964K 668K select 0:02 0.00% 0.00% syslogd > >> >> 72 root 10 0 1004K 736K nanslp 0:02 0.00% 0.00% cron > >> >> 97 root 2 0 2104K 1600K select 0:01 0.00% 0.00% sshd > >> >> 70 root 2 0 1072K 820K select 0:00 0.00% 0.00% inetd > >> >> 16638 root 28 0 2168K 1836K RUN 0:00 0.00% 0.00% sshd > >> >> 16640 isaev 10 0 1032K 884K wait 0:00 0.00% 0.00% bash > >> >> 16612 root 2 0 1784K 1572K select 0:00 0.00% 0.00% sendmail > >> >> 99 root 3 0 948K 652K ttyin 0:00 0.00% 0.00% getty > >> >> 105 root 3 0 948K 656K ttyin 0:00 0.00% 0.00% getty > >> >> 102 root 3 0 948K 656K ttyin 0:00 0.00% 0.00% getty > >> >> 103 root 3 0 948K 656K ttyin 0:00 0.00% 0.00% getty > >> >> 106 root 3 0 948K 656K ttyin 0:00 0.00% 0.00% getty > >> >> 100 root 3 0 948K 656K ttyin 0:00 0.00% 0.00% getty > >> >> 104 root 3 0 948K 656K ttyin 0:00 0.00% 0.00% getty > >> >> 101 root 3 0 948K 656K ttyin 0:00 0.00% 0.00% getty > >> >> 23 root 18 0 208K 92K pause 0:00 0.00% 0.00% adjkerntz > >> >> > >> >> There are 1 firewall and about 1 or 2 routers between me and this machine. > >> >> But, this machine is installed in subnet with another FreeBSD > >> >> machine (let's name it - Machine-B) . When I download large file > >> >> (about 200 Mb at 200 k/s speed) from Machine-B the timeouts on > >> >> first machine become much longer and happen much often. For another > >> >> hand when Dling large file I can login to Machine-B by SSH and work > >> >> without any problems. So the network problems depend on network > >> >> traffic but I can notice problems ONLY on one machine. All other > >> >> machines in network work perfect. > >> JR> I had a similar problem with a machine for 1 year. I do not know the exact > >> JR> reason, but the interrupt of the NIC never works. The card works perfect > >> JR> in other machines. Maybe the motherboard had a defect, but I do not know... > >> > >> JR> By the way, other machine runs in such a problem: solution? Changing interrupt > >> JR> handling from level to edge (or from edge to level). Is in the `dmesg`-output > >> JR> the interrupt found correctly? > >> Maybe I'll try to change the IRQ. Right now network card uses 11 IRQ. > >> But, it's a normal IRQ for network card my Windows based PC uses the > >> same IRQ and everything is OK.. > >> > >> JR> Hope that helps > JR> I don't think, that it would. Only if there is a shared interrupt, where one of the > JR> drivers didn't support. Could you send me the content of the "dmesg" output, please? > Here us my DMESG: > > Copyright (c) 1992-2002 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 4.5-RELEASE #0: Tue Apr 2 16:23:24 MSD 2002 > root@mail.candy.ru:/usr/src/sys/compile/GENERIC > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium III/Pentium III Xeon/Celeron (868.64-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x68a Stepping = 10 > Features=0x383f9ff > real memory = 251641856 (245744K bytes) > config> en fdc0 > config> po fdc0 0x3f0 > config> ir fdc0 6 > config> dr fdc0 2 > config> f fdc0 0 > config> q > avail memory = 240140288 (234512K bytes) > Preloaded elf kernel "kernel" at 0xc0496000. > Preloaded userconfig_script "/boot/kernel.conf" at 0xc049609c. > Pentium Pro MTRR support enabled > md0: Malloc disk > Using $PIR table, 6 entries at 0xc00f1400 > npx0: on motherboard > npx0: INT 16 interface > pcib0: on motherboard > pci0: on pcib0 > atapci0: port 0xd800-0xd80f at device 0.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > isab0: at device 1.0 on pci0 > isa0: on isab0 > pcib2: at device 2.0 on pci0 > pci1: on pcib2 > pci1: at 0.0 irq 11 > rl0: port 0x9800-0x98ff mem 0xe9800000-0xe98000ff irq 11 at device 13.0 on pci0 > rl0: Ethernet address: 00:50:ba:b2:6c:4f > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > pcib1: on motherboard > pci2: on pcib1 > orm0: