Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2002 12:29:12 -0500
From:      Joe Abley <jabley@automagic.org>
To:        freebsd-questions@freebsd.org
Subject:   NMBCLUSTERS question
Message-ID:  <20020115122911.I13795@buffoon.automagic.org>

next in thread | raw e-mail | index | archive | help
I have a machine running a reasonably recent build of 4-STABLE,
which talks to the rest of the world through an Intel EtherExpress
Pro NIC on fast 100M colo. There are periods when the fxp
interface can get quite full.

Every now and then the machine seems to drop off the net for a
little while, and the kernel spits out lots of these:

  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  m_clalloc failed, consider increase NMBCLUSTERS value
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  m_clalloc failed, consider increase NMBCLUSTERS value
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  m_clalloc failed, consider increase NMBCLUSTERS value
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  m_clalloc failed, consider increase NMBCLUSTERS value
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!
  fxp0: cluster allocation failed, packet dropped!

I don't have an NMBCLUSTERS option set in my kernel conf file. I
see LINT says:

  # 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
  # if this options is not specified or set to 0.
  #
  options         NMBCLUSTERS=1024

Does this auto-sizing not work if interfaces are busy? Any
advice as to what I might set NMBCLUSTERS to?


Joe

jabley@buffoon[130]$ uname -a
FreeBSD buffoon.automagic.org 4.4-STABLE FreeBSD 4.4-STABLE #2: Thu Dec  6 11:30:25 EST 2001     jabley@buffoon.automagic.org:/usr/obj/usr/src/sys/BUFFOON  i386
jabley@buffoon[131]$ netstat -m
1248/2384/8192 mbufs in use (current/peak/max):
        1188 mbufs allocated to data
        60 mbufs allocated to packet headers
1136/2048/2048 mbuf clusters in use (current/peak/max)
4692 Kbytes allocated to network (76% of mb_map in use)
25975 requests for memory denied
165 requests for memory delayed
0 calls to protocol drain routines
jabley@buffoon[132]$ cat /sys/i386/conf/BUFFOON
# $Id: BUFFOON,v 1.2 2001/10/22 18:10:37 jabley Exp $

machine		i386
cpu		I686_CPU
ident		BUFFOON
maxusers	96

options 	MATH_EMULATE		#Support for x87 emulation
options 	INET			#InterNETworking
options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MFS			#Memory Filesystem
options 	MD_ROOT			#MD is a potential root device
options 	NFS			#Network Filesystem
options 	NFS_ROOT		#NFS usable as root device, NFS required
options 	MSDOSFS			#MSDOS Filesystem
options 	CD9660			#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options		MROUTING

device		isa
device		pci

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
device		fd1	at fdc0 drive 1

# ATA and ATAPI devices
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
device		atapifd			# ATAPI floppy drives
device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? flags 0x100

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device		apm0    at nexus? disable flags 0x20 # Advanced Power Management

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device


device		miibus		# MII bus support
device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	md		# Memory "disks"
pseudo-device	gif		# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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