Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2002 08:17:09 -0700
From:      Benjamin Krueger <benjamin@seattleFenix.net>
To:        Max Clark <max@clarksys.com>
Cc:        freebsd-stable@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Loosing network connection repeatedly without an identifiable cause
Message-ID:  <20020815081708.E3109@mail.seattleFenix.net>
In-Reply-To: <003501c2446c$e6dc7700$6445a8c0@princess>; from max@clarksys.com on Thu, Aug 15, 2002 at 08:03:23AM -0700
References:  <003501c2446c$e6dc7700$6445a8c0@princess>

next in thread | previous in thread | raw e-mail | index | archive | help
* 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,LOOPBACK,RUNNING,MULTICAST> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020815081708.E3109>