DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th September 2008
marsjanq marsjanq is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default dhcpd:No Buffer space avaible

Hi everyone!

In my logs i have following messages:

dhcpd: send_packet: No buffer space available

Server is running at openbsd 4.3 and offering such services like: pf+queing(3 interface, altq+hfsc on each one), DHCPD, DNS, MTA.

# netstat -m gives:
627 mbufs in use:
561 mbufs allocated to data
4 mbufs allocated to packet headers
62 mbufs allocated to socket names and addresses
560/974/6144 mbuf clusters in use (current/peak/max)
2276 Kbytes allocated to network (56% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

Interupts are something about 5-9%.

# top
load averages: 0.22, 0.24, 0.24 17:40:04
63 processes: 62 idle, 1 on processor
CPU states: 21.2% user, 0.0% nice, 5.5% system, 7.8% interrupt, 65.5% idle
Memory: Real: 137M/250M act/tot Free: 247M Swap: 0K/1026M used/tot

I also try to increase net.inet.udp.sendspace and recvspace.

What can be causing this message?

Thanks for help
Reply With Quote
  #2   (View Single Post)  
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

YMMV: http://freebsd.monkey.org/freebsd-mo.../msg00159.html
Reply With Quote
  #3   (View Single Post)  
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Additional (older) pointers:
http://marc.info/?l=dhcp-server&w=2&...+available&q=b
Reply With Quote
  #4   (View Single Post)  
Old 12th September 2008
marsjanq marsjanq is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

DutchDaemon:

Like i wrote i tried to change net.inet.udp.recvspace and sendspace, this did not help me.

Network has something about 100 hosts.

Any idea's ?
Reply With Quote
  #5   (View Single Post)  
Old 12th September 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Did you try
net.inet.udp.maxdgram=131072

as well?

Other than the information on the posted links, no one seems to have a real idea.
Reply With Quote
  #6   (View Single Post)  
Old 12th September 2008
marsjanq marsjanq is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

In OpenBSD, there is no such parameter.
There is:

net.inet.udp.sendspace
net.inet.udp.recvspace

but i tried with this....

Thanks for help
Reply With Quote
  #7   (View Single Post)  
Old 12th September 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

The function send_packet, in /usr/src/usr.sbin/dhcpd/bpf.c, makes a call to writev(2), which returns -1 and sets errno(2) upon error.

The errno variable in this case, was set to ENOBUFS, indicating the kernel is unable to allocate any additional memory buffers (i.e: mbuf(9)'s).

Now.. if increasing the UDP buffers didn't help.. net.bpf.bufsize and net.bpf.maxbufsize might need to be increased, but I'm not 100% sure about that.

That's all I can think of.. mailing list archives might also be worth reading as well.

@DutchDaemon, Stop giving FreeBSD advice in the OpenBSD sections.

Last edited by BSDfan666; 12th September 2008 at 05:36 PM.
Reply With Quote
  #8   (View Single Post)  
Old 12th September 2008
marsjanq marsjanq is offline
New User
 
Join Date: Sep 2008
Posts: 5
Default

Thanks i will try this!
Reply With Quote
  #9   (View Single Post)  
Old 13th September 2008
marsjanq marsjanq is offline
New User
 
Join Date: Sep 2008
Posts: 5
Post

I've changed this vaules to:
net.bpf.bufsize=10485760
net.bpf.maxbufsize=10485760
But my logs still alerting me about:
dhcpd: send_packet: No buffer space available
When i was running my server temporary on linux, i was not having problem like this.

Any Ideas ?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error: reexec socketpair: No buffer space available chris FreeBSD General 3 24th July 2009 08:07 PM
dhcpd and dns sputnik OpenBSD General 8 8th May 2009 02:50 PM
dhcpd and multiple subnets vdubjunkie OpenBSD General 5 11th March 2009 11:02 PM
Disk space gone missing EricM FreeBSD General 0 26th February 2009 02:25 AM
dhcpd within ezjail? zelut FreeBSD General 7 10th February 2009 10:31 PM


All times are GMT. The time now is 03:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick