From owner-freebsd-questions Thu Jun 20 21:21:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ourservers.net (dn11-1-13-197.nap.wideopenwest.com [64.233.197.13]) by hub.freebsd.org (Postfix) with ESMTP id AA55037B409 for ; Thu, 20 Jun 2002 21:21:15 -0700 (PDT) Received: (from dcarmich@localhost) by ourservers.net (8.11.4/8.11.4) id g5L4JU615987; Thu, 20 Jun 2002 23:19:30 -0500 From: Douglas Carmichael Message-Id: <200206210419.g5L4JU615987@ourservers.net> Subject: 'No buffer space available' with only 192 mbufs out of 2048 used?? To: freebsd-questions@freebsd.org Date: Thu, 20 Jun 2002 23:19:30 -0500 (CDT) Reply-To: dcarmich@ourservers.net X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 I have a Pentium-200 with 32MB RAM running 4.6-RELEASE that I am using as a firewall/NAT gateway. Interface xl0 is my local network (192.168.1.1) and sis0 is the cable modem (addressed by DHCP.) The system forwards data across the interfaces fine (and I can telnet/ssh to it), but when I try to scp into the box or ftp files to it (even ftp/scp _from_ a shell on the box), it complains about having no buffer space available even though a netstat -m says that only 193 out of 8192 mbufs and 192 out of 2048 mbuf clusters are in use! What gives? i.e.: dcarmich@bsdserver:~$ ftp -v localhost ftp: socket: No buffer space available ftp> quit dcarmich@bsdserver:~$ ftp -v ftp.kernel.org ftp: socket: No buffer space available ftp> quit (This is from my laptop): dcarmich@nightfly:~$ ftp bsdserver.carmichael.lan Connected to bsdserver.carmichael.lan. 220 bsdserver.carmichael.lan FTP server (Version 6.00LS) ready. Name (bsdserver.carmichael.lan:dcarmich): 331 Password required for dcarmich. Password: 230 User dcarmich logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> put turbofloodlight.pdf local: turbofloodlight.pdf remote: turbofloodlight.pdf 200 PORT command successful. 425 Can't create data socket (....gibberish....): No buffer space available. ftp> quit dcarmich@nightfly:~$ scp turbofloodlight.pdf 192.168.1.1:. dcarmich@192.168.1.1's password: Received disconnect from 192.168.1.1: 2: Could not create socket pairs: No buffe r space available lost connection Here's a 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.6-RELEASE #1: Wed Jun 19 03:25:17 CDT 2002 dcarmich@bsdserver.carmichael.lan:/usr/src/sys/compile/BSDSERVER Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 200455458 Hz CPU: Pentium/P55C (200.46-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x544 Stepping = 4 Features=0x8001bf real memory = 33554432 (32768K bytes) avail memory = 30076928 (29372K bytes) Preloaded elf kernel "kernel" at 0xc02b3000. Intel Pentium detected, installing workaround for F00F bug Using $PIR table, 6 entries at 0xc00fdb40 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 11 chip1: port 0x5f00-0x5f0f at device 7.3 on pci0 sis0: port 0x6500-0x65ff mem 0xe2008000-0xe2008ff f irq 10 at device 17.0 on pci0 sis0: Ethernet address: 00:40:f4:52:be:58 miibus0: on sis0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0x6600-0x667f mem 0xe2009000-0xe200 907f irq 9 at device 18.0 on pci0 xl0: Ethernet address: 00:50:04:6d:db:ec miibus1: on xl0 xlphy0: <3Com internal media interface> on miibus1 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 20.0 orm0: