Module: sip-router
Branch: andrei/raw_sock
Commit: 557ddc199cb532427e16141d9099e4fb024adf73
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=557ddc1…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Aug 11 16:03:55 2010 +0200
NEWS: notes about the new udp4_raw mode
---
NEWS | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/NEWS b/NEWS
index de353af..cd1696f 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,19 @@ $Id$
sip-router 3.1 chages
core:
+ - major performance increase on Linux multi-cpu machines that send a lot
+ of UDP IPv4 packets (40-50% faster in stateless mode). For it to work
+ udp4_raw must be enabled or set into auto mode in sr.cfg and sr must be
+ started as root or with CAP_NET_RAW. Note that even if udp4_raw is
+ off (default), if sr was started with enough privileges, it can be
+ enabled at runtime.
+ The support for using raw sockets is also available on FreeBSD (compiled
+ by default but not tested for performance yet), NetBSD, OpenBSD and
+ Darwin (not tested and not compiled by default, needs
+ make cfg extra_defs=-DUSE_RAW_SOCKS). To check if the support is
+ compiled, use ser -V |grep --color RAW_SOCKS or for a running
+ ser: sercmd core.udp4_raw_info.
+ See udp4_raw, udp4_raw_mtu and udp4_raw_ttl below.
- onreply_route {...} is now equivalent with onreply_route[0] {...}
- global, per protocol blacklist ignore masks (via extended send_flags).
See dst_blacklist_udp_imask a.s.o (dst_blacklist_*_imask).
@@ -13,6 +26,28 @@ core:
- route() now supports rvalue expressions (e.g. route("test"+$i))
new config variables:
+ - udp4_raw - enables raw socket support for sending UDP IPv4 datagrams
+ (40-50% performance increase on linux multi-cpu).
+ Possible values: 0 - disabled (default), 1 - enabled, -1 auto.
+ In "auto" mode it will be enabled if possible (sr started as root or
+ with CAP_NET_RAW).
+ udp4_raw can be used on Linux and FreeBSD. For other BSDs and Darwin
+ one must compile with -DUSE_RAW_SOCKS.
+ On Linux one should also set udp4_raw_mtu if the MTU on any network
+ interface that could be used for sending is smaller then 1500.
+ Can be set at runtime as long as sr was started with enough privileges
+ (core.udp4_raw).
+ - udp4_raw_mtu - MTU value used for UDP IPv4 packets when udp4_raw is
+ enabled. It should be set to the minimum MTU of all the network
+ interfaces that could be used for sending. The default value is 1500.
+ Note that on BSDs it does not need to be set (if set it will be ignored,
+ the proper MTU will be used automatically by the kernel). On Linux it
+ should be set.
+ Can be set at runtime (core.udp4_raw_mtu).
+ - udp4_raw_ttl - TTL value used for UDP IPv4 packets when udp4_raw is
+ enabled. By default it is set to auto mode (-1), meaning that the
+ same TTL will be used as for normal UDP sockets.
+ Can be set at runtime (core.udp4_raw_ttl).
- dst_blacklist_udp_imask - global blacklist events ignore mask for udp
(a blacklist event/reason set in this variable will be ignored when
deciding whether or not to blacklist an udp destination). Can be set
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#83 - ds_reload fails (MySQL backend)
User who did this - Kim Jakobsson (kjakobsson)
----------
Yes, I can confirm it works now, thanks.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=83#comment110
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: master
Commit: 755fe65703f42ced4d3472cd60ffdd6c25ec0204
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=755fe65…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Aug 11 01:32:07 2010 +0200
Merge remote branch 'origin/andrei/counters'
* origin/andrei/counters:
counters: 2nd parameter of cnt.get rpc is now optional
snmp(k): fix direct access to stat vars
counters: doc update
counters: extended declaration syntax
sercmd: cnt.help command line completion support
counters: cnt.help and api update
sctp: switched to counter arrays + more stats
tcp: switched to counter arrays + more stats
core: k statistics counter api update
core: counters arrays and counters descriptions
doc: NEWS counters/stats update
sctp: enable statistics
tcp: enable tcp statistics
kex(k): updated to the lastest statistics changes
kcore stats: rewrote in terms of the counters api
sercmd: added command line completion for counters
counters: added docs
counters: new modules for counters manipulations
core: counters / statistics support
sercmd: fix cfg. var name completion
---
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#83 - ds_reload fails (MySQL backend)
User who did this - Daniel-Constantin Mierla (miconda)
----------
It should be fixed on GIT, there was an issue when executing MI commands via RPC interface, like is done by sercmd. Can you get latest git branch kamailio_3.0 and try?
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=83#comment109
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: andrei/raw_sock
Commit: 2542c0f30f0ce7cd11c437f19afb53a3b3e9f2a8
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2542c0f…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Aug 10 17:43:25 2010 +0200
raw sockets: freebsd support
Support freebsd and theoretically other BSDs (other BSDs not tested):
- on most BSDs the offset and length of the ip header must be
filled in host byte order (when using raw sockets with
IPHDR_INC).
- no need for user-space fragmentation for raw sockets
- use IP_RECVDSTADDR and IPSENDSRCADDR instead of IP_PKTINFO
(for raw sockets without IPHDR_INC)
- fix ip header length (wrongly computed, on linux it worked
because linux always ignores and overwrites it)
---
raw_sock.c | 133 +++++++++++++++++++++++++++++++++++++++++++++++----------
udp_server.c | 4 +-
2 files changed, 111 insertions(+), 26 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=254…
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#83 - ds_reload fails (MySQL backend)
User who did this - Kim Jakobsson (kjakobsson)
----------
>From tarball.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=83#comment108
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.