Performance on udp socket



Hi,
I've seen a packets drop with high rate of radius authentication request
(UDP 150 byte)
The software is radiator (perl), and it seems not to be dependent on CPU speed.
How is possible to avoid this with a more accurate tuning?


#netstat -s -p udp

udp:
1917 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
0 with no checksum
0 dropped due to no socket
0 broadcast/multicast datagrams dropped due to no socket
557 dropped due to full socket buffers
0 not for hashed pcb
1360 delivered
1226 datagrams output


#netstat -na

Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
udp4 5162 0 *.1813 *.*
udp4 13615 0 *.1812 *.*


#sysctl -a

...
udpcb: 192, 1992, 8, 34, 26713
...
net.inet.udp.maxdgram: 9216
net.inet.udp.recvspace: 42080
...
kern.ipc.maxsockbuf: 1048576
kern.ipc.nmbclusters: 1488


#netstat -s -p udp

udp:
4333 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
0 with no checksum
0 dropped due to no socket
0 broadcast/multicast datagrams dropped due to no socket
724 dropped due to full socket buffers
0 not for hashed pcb
3609 delivered
3582 datagrams output


udp:
6366 datagrams received
0 with incomplete header
0 with bad data length field
0 with bad checksum
1 with no checksum
4 dropped due to no socket
8 broadcast/multicast datagrams dropped due to no socket
724 dropped due to full socket buffers
0 not for hashed pcb
6293 delivered
6315 datagrams output



netstat -m
158/720/5952 mbufs in use (current/peak/max):
135 mbufs allocated to data
23 mbufs allocated to packet headers
128/368/1488 mbuf clusters in use (current/peak/max)
916 Kbytes allocated to network (20% of mb_map in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines


_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: UDP recvmsg blocks after select(), 2.6 bug?
    ... > - select returns success with descriptor ready for reading ... against having a socket operation block is found in non-blocking sockets. ... then checks the UDP checksum. ...
    (Linux-Kernel)
  • Re: Loosing UDP packets...
    ... The applications I support send lots of UDP via ... Sometimes all the packets hit the wire, ... Perhaps that is only for a non-blocking socket - per my stuff above? ... as I don't send> MTU datagrams. ...
    (comp.os.linux.networking)
  • Re: problem with UDP socket & recvfrom()
    ... of without checksum (which it does in linux). ... get recognized as udp and/or are immediately discarded. ... socket, I somehow never receive any data on it, even though I'm ...
    (comp.unix.programmer)
  • wierd errors with USB drive & syslog
    ... Im runnign FBSD 4.9 rc ...this box is running syslog server for a bunch of ... syslog is basically UDP and udp not being a reliable protocal (no ... 386465 broadcast/multicast datagrams dropped due to no socket ...
    (freebsd-questions)
  • udp drops due to no socket
    ... I am struggling with udp drops that show up with netstat -s -p udp as ... 'dropped due to no socket' and 'dropped due to full socket buffers'. ... 236582 broadcast/multicast datagrams dropped due to no socket ...
    (freebsd-net)