From owner-freebsd-stable Thu Aug 15 8:29:21 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEEB337B400 for ; Thu, 15 Aug 2002 08:29:12 -0700 (PDT) Received: from jack.clarksys.com (jack.clarksys.com [64.70.36.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61C8B43E42 for ; Thu, 15 Aug 2002 08:29:12 -0700 (PDT) (envelope-from max@clarksys.com) Received: (qmail 317 invoked from network); 15 Aug 2002 15:29:11 -0000 Received: from unknown (HELO princess) (4.47.62.87) by jack.clarksys.com with SMTP; 15 Aug 2002 15:29:11 -0000 Message-ID: <004a01c24470$8bae0a20$6445a8c0@princess> From: "Max Clark" To: "Benjamin Krueger" Cc: , References: <003501c2446c$e6dc7700$6445a8c0@princess> <20020815081708.E3109@mail.seattleFenix.net> Subject: Re: Loosing network connection repeatedly without an identifiable cause Date: Thu, 15 Aug 2002 08:29:28 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have MAXUSERS=0 set in my kernel configuration. This machine has 384MB Ram, when it goes down again I will check this. If I see the tables full is there a recommended way to size these values based on system resources? Thanks, Max (root@jack)~# netstat -m 70/144/14208 mbufs in use (current/peak/max): 65 mbufs allocated to data 5 mbufs allocated to packet headers 64/88/3552 mbuf clusters in use (current/peak/max) 212 Kbytes allocated to network (1% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines ----- Original Message ----- From: "Benjamin Krueger" To: "Max Clark" Cc: ; Sent: Thursday, August 15, 2002 8:17 AM Subject: Re: Loosing network connection repeatedly without an identifiable cause * Max Clark (max@clarksys.com) [020815 08:03]: > Hi, > > I am experiancing some incredibly odd behaivor with a 4.6-Stable box. > > I recently moved this machine to a different network replacing an old > computer. Without obvious cause I lose connectivity to this server. I > initially thought that there was another device trying to advertise the same > IP address (odd because I swapped IPs when I swapped machines) so I changed > the IP addresss to something that I knew wasn't in use and cleared arp on my > router. Same behavior, so I figured bad network cable/hub port so I > replaced, same behavior. > > I now have a serial console cable on this machine, after I lost connectivity > again tonight I connected on the console. ifconfig -a shows the interface > up, the machine hasn't rebooted. The only thing that I can see that is odd > was an arp -a didn't show neighbor computers nor the local interface > ([permanent]) entry. > > I'm kind of at a loss as to what to try next. This machine worked fine on my > home LAN. Below is the dmesg, I'm using the fxp interface, I added the ed > today out of despiration. > > Any help would be greatly appreciated. > Thanks in advance! > -Max > > fxp0: flags=8843 mtu 1500 > inet x.x.x.4 netmask 0xffffffc0 broadcast x.x.x.63 > ether 00:90:27:de:8c:dc > media: Ethernet autoselect (10baseT/UTP) > status: active > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 Check the number of available mbufs. roo@overcast:~> netstat -m 68/464/10112 mbufs in use (current/peak/max): 66 mbufs allocated to data 2 mbufs allocated to packet headers 64/292/2528 mbuf clusters in use (current/peak/max) 700 Kbytes allocated to network (9% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines If your system uses all available mbufs it will stop responding on the network until some are cleared up. The following options from LINT should help you if you need to increase the number of available mbufs. See LINT for more info. # Set the size of the mbuf KVM reservation, in clusters. This is scaled # by approximately 2048 bytes. The system will auto-size the mbuf area # to (512 + maxusers*16) if this option is not specified. # maxusers is in turn computed at boot time depending on available memory # or set to the value specified by "options MAXUSERS=x" (x=0 means # autoscaling). # So, to take advantage of autoscaling, you have to remove both # NMBCLUSTERS and MAXUSERS (and NMBUFS) from your kernel config. # options NMBCLUSTERS=1024 # Set the number of mbufs available in the system. Each mbuf # consumes 256 bytes. The system will autosize this (to 4 times # the number of NMBCLUSTERS, depending on other constraints) # if this option is not specified. # options NMBUFS=4096 -- Benjamin Krueger "Life is far too important a thing ever to talk seriously about." - Oscar Wilde (1854 - 1900) ---------------------------------------------------------------- Send mail w/ subject 'send public key' or query for (0x251A4B18) Fingerprint = A642 F299 C1C1 C828 F186 A851 CFF0 7711 251A 4B18 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message