Project

General

Profile

Actions

Bug #3614

closed

dhcpd: send_packet: No buffer space available

Added by Eugene Vignanker over 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv4)
Target version:
Start date:
04/21/2014
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1.2
Affected Architecture:
amd64

Description

DHCPD service fails with "No buffer space available" error in the log after period of interface inactivity. pfSense version is 2.1.2 on x64 platform.
Reproduction steps:
1. Create a LAN, assign a static IP and start DHCP Demon on the LAN;
2. Connect an external switch to the LAN;
3. Connect a computer to the switch and obtain an IP address;
4. Disconnect the external switch and leave pfSense for a couple of hours;
5. Reconnect the external switch;
6. Attempt to get an IP address fails.


Files

logs.zip (47.6 KB) logs.zip Eugene Vignanker, 04/21/2014 11:40 PM
Actions #1

Updated by Chris Buechler over 10 years ago

  • Status changed from New to Feedback

guessing this is probably either misconfigured traffic shaper, or needing to tune some parameters, maybe mbufs (kern.ipc.nmbclusters) or kern.ipc.maxsockbuf possibly.

Actions #2

Updated by Eugene Vignanker over 10 years ago

Traffic shaper is disabled on all interfaces. I read about traffic shaper possibly causing this, but this is not the case. Attached zip archive has "netstat -m" output that shows no issues in mbuf allocation.
In my case the only way to reliably reproduce the problem is to power-off a switch that connected to the internal interface and power-on after a couple of hours (overnight, for example). I cannot reproduce the problem when switch is up all the time.

Actions #3

Updated by Chris Buechler over 10 years ago

  • Status changed from Feedback to Resolved
  • Target version set to 2.2

someone else who could reliably replicate this issue confirmed it's fixed in 2.2

Actions #4

Updated by Anonymous about 9 years ago

Same happens on my Soekris net6501-70:
  • Release "2.2.5-DEVELOPMENT (i386) built on Tue Oct 20 09:14:46 CDT 2015".
  • Notebook with Intel 82579LM ethernet adapter connected directly to the LAN port of the firewall (no switch).

Logs:
Oct 21 17:55:13 router dhcpd: DHCPDISCOVER from a0:b3:cc:26:d1:66 via em1
Oct 21 17:55:13 router dhcpd: DHCPOFFER on 192.168.229.4 to a0:b3:cc:26:d1:66 via em1
Oct 21 17:55:13 router dhcpd: send_packet: No buffer space available
Oct 21 17:55:13 router dhcpd: dhcp.c:3271: Failed to send 300 byte long packet over em1 interface.

Shortly after, garbage is logged to /var/log/dhcpd.log. Client gets no ip address.

No traffic shaper, no System Tunables changed.

Output of netstat -m :
12457/1718/14175 mbufs in use (current/cache/total)
4093/973/5066/26584 mbuf clusters in use (current/cache/total/max)
4093/967 mbuf+clusters out of packet secondary zone in use (current/cache)
0/12/12/13291 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/3938 9k jumbo clusters in use (current/cache/total/max)
0/0/0/2215 16k jumbo clusters in use (current/cache/total/max)
11300K/2423K/13723K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters delayed (4k/9k/16k)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/9/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile

Actions

Also available in: Atom PDF