Re: Multiple routing tables in action...

2008-05-11 Thread Igor Sysoev
incoming packets ? -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

FIB MFC

2008-07-24 Thread Igor Sysoev
XX SYN_RCVD tcp4 0 0 192.168.1.100.80 XX SYN_RCVD tcp4 0 0 192.168.1.100.80 XX SYN_RCVD Can TCP connection inherit FIB from first SYN packet or not ? -- Igor Sysoev http://sysoev.ru/en

Re: FIB MFC

2008-07-24 Thread Igor Sysoev
On Thu, Jul 24, 2008 at 08:33:09AM -0700, Julian Elischer wrote: Igor Sysoev wrote: Julian, thank you for FIB. I have tried in on FreeBSD-7. I've found that ipfw does not know about setfib: ipfw: invalid action setfib Oh I have not finished MFC.. will finish today.. the svn server

Re: FIB MFC

2008-07-24 Thread Igor Sysoev
On Thu, Jul 24, 2008 at 09:44:15AM -0700, Julian Elischer wrote: Igor Sysoev wrote: On Thu, Jul 24, 2008 at 08:33:09AM -0700, Julian Elischer wrote: I was thinking that it might be possible to tag a socket to accept the fib of the packet coming in, but if we do this, we should decide

bge interrupt coalescing sysctls

2009-06-10 Thread Igor Sysoev
dev.bge.0.tx_coal_ticks=1 dev.bge.0.rx_max_coal_bds=64 dev.bge.0.tx_max_coal_bds=128 # apply the above parameters dev.bge.0.program_coal=1 Could anyone commit it ? -- Igor Sysoev http://sysoev.ru/en/ --- sys/dev/bge/if_bge.c2009-05-21 01:17:10.0 +0400 +++ sys/dev/bge/if_bge.c

Re: bge interrupt coalescing sysctls

2009-06-18 Thread Igor Sysoev
On Thu, Jun 11, 2009 at 11:54:29AM +1000, Bruce Evans wrote: On Wed, 10 Jun 2009, Igor Sysoev wrote: For a long time I used Bruce Evans' patch to tune bge interrupt coalescing: http://lists.freebsd.org/pipermail/freebsd-net/2007-November/015956.html However, recent commit SVN r192478 in 7

stuck TIME_WAIT sockets

2009-10-02 Thread Igor Sysoev
is 3. The host uptime is 24 days, 21:53. I have saved a coredump and may try to help to debug the issue. -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe

Re: stuck TIME_WAIT sockets

2009-10-02 Thread Igor Sysoev
On Fri, Oct 02, 2009 at 05:06:46PM +0400, Igor Sysoev wrote: The TIME_WAIT sockets suddenly started to grow on a host running FreeBSD 7.2-STABLE, date=2009.09.06.23.59.59 Usually there are 3,000-5,000 TIME_WAIT sockets on the host. However, today they stared to grow, have reached 110,000

Re: stuck TIME_WAIT sockets

2009-10-02 Thread Igor Sysoev
On Fri, Oct 02, 2009 at 02:06:21PM -0400, Skip Ford wrote: Igor Sysoev wrote: The TIME_WAIT sockets suddenly started to grow on a host running FreeBSD 7.2-STABLE, date=2009.09.06.23.59.59 Usually there are 3,000-5,000 TIME_WAIT sockets on the host. However, today they stared to grow

interface FIB

2009-11-27 Thread Igor Sysoev
... -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

Re: interface FIB

2009-11-28 Thread Igor Sysoev
On Fri, Nov 27, 2009 at 09:12:37PM -0800, Julian Elischer wrote: Igor Sysoev wrote: Currently only packets generated during encapsulation can use interface's FIB stored during interface creation: setfib 1 ifconfig gif0 ... setfib 1 ifconfig tun0 ... not sure if tun actually does

hw.bge.forced_collapse

2009-12-03 Thread Igor Sysoev
I saw commit introducing hw.bge.forced_collapse loader tunable. Just intresting, why it can not be a sysctl ? -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net

Re: hw.bge.forced_collapse

2009-12-04 Thread Igor Sysoev
On Fri, Dec 04, 2009 at 09:32:43AM -0800, Pyun YongHyeon wrote: On Fri, Dec 04, 2009 at 10:54:40AM +0300, Igor Sysoev wrote: I saw commit introducing hw.bge.forced_collapse loader tunable. Just intresting, why it can not be a sysctl ? I didn't think the sysctl variable would be frequently

Re: hw.bge.forced_collapse

2009-12-04 Thread Igor Sysoev
On Fri, Dec 04, 2009 at 11:51:40AM -0800, Pyun YongHyeon wrote: On Fri, Dec 04, 2009 at 10:11:14PM +0300, Igor Sysoev wrote: On Fri, Dec 04, 2009 at 09:32:43AM -0800, Pyun YongHyeon wrote: On Fri, Dec 04, 2009 at 10:54:40AM +0300, Igor Sysoev wrote: I saw commit introducing

Re: hw.bge.forced_collapse

2010-01-14 Thread Igor Sysoev
On Fri, Dec 04, 2009 at 12:22:13PM -0800, Pyun YongHyeon wrote: On Fri, Dec 04, 2009 at 11:13:03PM +0300, Igor Sysoev wrote: On Fri, Dec 04, 2009 at 11:51:40AM -0800, Pyun YongHyeon wrote: On Fri, Dec 04, 2009 at 10:11:14PM +0300, Igor Sysoev wrote: On Fri, Dec 04, 2009 at 09:32:43AM

Re: hw.bge.forced_collapse

2010-01-15 Thread Igor Sysoev
On Thu, Jan 14, 2010 at 10:10:31AM -0800, Pyun YongHyeon wrote: On Thu, Jan 14, 2010 at 07:03:33PM +0300, Igor Sysoev wrote: On Fri, Dec 04, 2009 at 12:22:13PM -0800, Pyun YongHyeon wrote: On Fri, Dec 04, 2009 at 11:13:03PM +0300, Igor Sysoev wrote: On Fri, Dec 04, 2009 at 11:51:40AM

Re: hw.bge.forced_collapse

2010-01-15 Thread Igor Sysoev
On Thu, Jan 14, 2010 at 10:10:31AM -0800, Pyun YongHyeon wrote: On Thu, Jan 14, 2010 at 07:03:33PM +0300, Igor Sysoev wrote: On Fri, Dec 04, 2009 at 12:22:13PM -0800, Pyun YongHyeon wrote: On Fri, Dec 04, 2009 at 11:13:03PM +0300, Igor Sysoev wrote: On Fri, Dec 04, 2009 at 11:51:40AM

net.inet.tcp.slowstart_flightsize in 8-STABLE

2010-05-12 Thread Igor Sysoev
It seems that net.inet.tcp.slowstart_flightsize does not work in 8-STABLE. For a long time I used slowstart_flightsize=2 on FreeBSD 4, 6, and 7 hosts. However, FreeBSD-8 always starts with the single packet. I saw this on different versions of 8-STABLE since 8 Oct 2009 till 04 Apr 2010. -- Igor

bge hangs on recent 7.3-STABLE

2010-09-09 Thread Igor Sysoev
: 173 parent interface: bge0 [ ... ] -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

bge hangs on recent 7.3-STABLE

2010-09-09 Thread Igor Sysoev
vlan: 173 parent interface: bge0 [ ... ] -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

Re: bge hangs on recent 7.3-STABLE

2010-09-13 Thread Igor Sysoev
On Fri, Sep 10, 2010 at 07:39:15AM +0400, Igor Sysoev wrote: On Thu, Sep 09, 2010 at 01:10:50PM -0700, Pyun YongHyeon wrote: On Thu, Sep 09, 2010 at 02:28:26PM +0400, Igor Sysoev wrote: Hi, I have several hosts running FreeBSD/amd64 7.2-STABLE updated on 11.01.2010

Re: bge hangs on recent 7.3-STABLE

2010-09-13 Thread Igor Sysoev
On Mon, Sep 13, 2010 at 11:04:47AM -0700, Pyun YongHyeon wrote: On Mon, Sep 13, 2010 at 06:27:08PM +0400, Igor Sysoev wrote: On Thu, Sep 09, 2010 at 02:18:08PM -0700, Pyun YongHyeon wrote: On Thu, Sep 09, 2010 at 01:10:50PM -0700, Pyun YongHyeon wrote: On Thu, Sep 09, 2010 at 02:28

syncookie in 6.x and 7.x

2007-08-16 Thread Igor Sysoev
267 stale 0 aborted 0 badack 20 unreach 0 zone failures 76018 cookies sent 24 cookies received -- Igor Sysoev http://sysoev.ru/en/ --- sys/netinet/tcp_syncache.c 2006-02-16 04:06:22.0 +0300

Re: syncookie in 6.x and 7.x

2007-08-20 Thread Igor Sysoev
On Sun, Aug 19, 2007 at 04:42:51AM -0500, Mike Silbersack wrote: On Thu, 16 Aug 2007, Igor Sysoev wrote: I have looked sources and found that in early versions the sent counter was simply not incremented at all. The patch attached. The patch looks ready to commit to me. Do you want me

maximum number of outgoing connections

2007-08-20 Thread Igor Sysoev
, 142102, 147631805,0 tcptw:48,41028, 6493,11213, 29804665,0 I saw it on 6.2-STABLE. -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net

Re: maximum number of outgoing connections

2007-08-20 Thread Igor Sysoev
On Mon, Aug 20, 2007 at 05:19:14PM +0100, Tom Judge wrote: Igor Sysoev wrote: It seems that FreeBSD can not make more than net.inet.ip.portrange.last - net.inet.ip.portrange.first simultaneous outgoing connections, i.e., no more than about 64k. If I made ~64000 connections 127.0.0.1

Re: maximum number of outgoing connections

2007-08-20 Thread Igor Sysoev
On Mon, Aug 20, 2007 at 09:53:55AM -0700, John-Mark Gurney wrote: Igor Sysoev wrote this message on Mon, Aug 20, 2007 at 19:11 +0400: It seems that FreeBSD can not make more than net.inet.ip.portrange.last - net.inet.ip.portrange.first simultaneous outgoing connections, i.e., no more

Re: maximum number of outgoing connections

2007-08-22 Thread Igor Sysoev
On Mon, Aug 20, 2007 at 10:30:12PM +0400, Igor Sysoev wrote: On Mon, Aug 20, 2007 at 09:53:55AM -0700, John-Mark Gurney wrote: Igor Sysoev wrote this message on Mon, Aug 20, 2007 at 19:11 +0400: It seems that FreeBSD can not make more than net.inet.ip.portrange.last

Re: Add socket related statistics to netstat(1)?

2007-08-29 Thread Igor Sysoev
think socket memory calculation should include tcpcb, udpcb, inpcb, unpcb and probably tcptw items. -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send

Re: Add socket related statistics to netstat(1)?

2007-08-29 Thread Igor Sysoev
On Wed, Aug 29, 2007 at 02:39:57PM +0100, Robert Watson wrote: On Wed, 29 Aug 2007, Igor Sysoev wrote: On Wed, Aug 29, 2007 at 02:48:57PM +0800, LI Xin wrote: Here is a proof-of-concept patch that adds sockets related statistics to netstat(1)'s -m option, which could make SA's life

setup_loopback() in /etc/rc.firewall

2007-10-19 Thread Igor Sysoev
After 1.49 src/etc/rc.firewall setup_loopback() is called in any firewall type including custom firewall defined filename. I think setup_loopback() should be called for predefined firewalls. -- Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net

Re: bge loader tunables

2007-11-16 Thread Igor Sysoev
On Sat, Nov 17, 2007 at 08:30:58AM +1100, Bruce Evans wrote: On Fri, 16 Nov 2007, Igor Sysoev wrote: The attached patch creates the following bge loader tunables: I plan to commit old work to do this using sysctls. Tunables are harder to use and aren't needed since changes

Re: zonelimit issues...

2008-04-21 Thread Igor Sysoev
I can use something like this: # 256M KVA/KVM kern.ipc.nmbjumbop=64000 # 216M KVA/KVM kern.ipc.nmbclusters=98304 # 162M KVA/KVM kern.ipc.maxsockets=163840 # 8M KVA/KVM net.inet.tcp.maxtcptw=163840 # 24M KVA/KVM kern.maxfiles=204800 -- Igor Sysoev http://sysoev.ru/en

Re: bge loader tunables

2008-04-21 Thread Igor Sysoev
On Sat, Nov 17, 2007 at 09:13:50PM +1100, Bruce Evans wrote: On Sat, 17 Nov 2007, Igor Sysoev wrote: On Sat, Nov 17, 2007 at 08:30:58AM +1100, Bruce Evans wrote: On Fri, 16 Nov 2007, Igor Sysoev wrote: The attached patch creates the following bge loader tunables: I plan to commit old

Re: bge loader tunables

2008-04-22 Thread Igor Sysoev
On Tue, Apr 22, 2008 at 12:20:38AM +0400, Igor Sysoev wrote: Finally I have tested your second (without debug stuff) patch in production environment (~45K in/out packets) on FreeBSD 7.0-STABLE. I think it should be commited. I use my usual static settings in /etc/sysctl.conf: dev.bge.0

Re: zonelimit issues...

2008-04-24 Thread Igor Sysoev
On Mon, Apr 21, 2008 at 03:27:53PM +0400, Igor Sysoev wrote: The problem that FreeBSD has small KVA space: only 2G even on amd64 32G machines. So with vm.kmem_size=1G # 64M KVA kern.maxbcache=64M # 4M KVA kern.ipc.maxpipekva=4M I can use something like this: # 256M KVA/KVM

Re: turning off TCP_NOPUSH

2003-05-29 Thread Igor Sysoev
On Wed, 28 May 2003, Garrett Wollman wrote: On Wed, 28 May 2003 17:05:59 +0400 (MSD), Igor Sysoev [EMAIL PROTECTED] said: always calls tcp_output() when TCP_NOPUSH is turned off. I think tcp_output() should be called only if data in the send buffer is less than MSS: I believe

Re: mbuf tuning

2004-01-19 Thread Igor Sysoev
user, 2GB kernel). # options KVA_PAGES=260 --- Default KVA_PAGES are 256. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL

Re: strange timeout error returned by kevent() in 6.0

2005-09-01 Thread Igor Sysoev
On Thu, 1 Sep 2005, Igor Sysoev wrote: I found strange timeout errors returned by kevent() in 6.0 using my http server named nginx. The nginx's run on three machines: two 4.10-RELEASE and one 6.0-BETA3. All machines serve the same content (simple cluster) and each handles about 200 requests

Re: strange timeout error returned by kevent() in 6.0

2005-12-01 Thread Igor Sysoev
On Thu, 1 Sep 2005, Igor Sysoev wrote: On Thu, 1 Sep 2005, Igor Sysoev wrote: I found strange timeout errors returned by kevent() in 6.0 using my http server named nginx. The nginx's run on three machines: two 4.10-RELEASE and one 6.0-BETA3. All machines serve the same content (simple

Re: strange timeout error returned by kevent() in 6.0

2005-12-06 Thread Igor Sysoev
On Thu, 1 Dec 2005, Igor Sysoev wrote: On Thu, 1 Sep 2005, Igor Sysoev wrote: On Thu, 1 Sep 2005, Igor Sysoev wrote: I found strange timeout errors returned by kevent() in 6.0 using my http server named nginx. The nginx's run on three machines: two 4.10-RELEASE and one 6.0-BETA3. All

Re: strange timeout error returned by kevent() in 6.0

2005-12-06 Thread Igor Sysoev
On Tue, 6 Dec 2005, John-Mark Gurney wrote: Igor Sysoev wrote this message on Thu, Sep 01, 2005 at 18:26 +0400: On Thu, 1 Sep 2005, Igor Sysoev wrote: I found strange timeout errors returned by kevent() in 6.0 using my http server named nginx. The nginx's run on three machines: two 4.10

Re: Improved TCP syncookie implementation

2006-09-13 Thread Igor Sysoev
the client will see timed out error. Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Improved TCP syncookie implementation

2006-09-13 Thread Igor Sysoev
On Wed, 13 Sep 2006, Andre Oppermann wrote: Igor Sysoev wrote: On Sun, 3 Sep 2006, Andre Oppermann wrote: I've pretty much rewritten our implementation of TCP syncookies to get rid of some locking in TCP syncache and to improve their functionality. The RFC1323 timestamp option is used

Re: Improved TCP syncookie implementation

2006-09-14 Thread Igor Sysoev
On Thu, 14 Sep 2006, Ruslan Ermilov wrote: On Wed, Sep 13, 2006 at 10:31:43PM +0200, Andre Oppermann wrote: Igor Sysoev wrote: Well, suppose protocol similar to SSH or SMTP: 1) the client calls connect(), it sends SYN; 2) the server receives SYN and sends SYN/ACK with cookie; 3) the client

Re: sendfile returning ENOTCONN under heavy load

2004-03-27 Thread Igor Sysoev
return ENOTCONN instead EPIPE. See the message: http://freebsd.rambler.ru/bsdmail/freebsd-hackers_2004/msg00019.html and its follow-ups. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

thundering herd problem in accept

2004-05-20 Thread Igor Sysoev
Hi, I noticed rev 1.123 of src/sys/kern/uipc_socket2.c and two MFC's of the fix. Does it mean that the thundering herd problem in accept() appeared again in FreeBSD since 4.4-STABLE (after syncache was introduced) ? Igor Sysoev http://sysoev.ru/en

netstat -m and sendfile(2) statistics in STABLE

2004-06-17 Thread Igor Sysoev
Hi, I read objections in cvs-all@ about netstat's output after MFC of sendfile(2) statistics. How about netstat -ms ? Right now this switch combination is treated as simple -m in both -STABLE and -CURRENT. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL

Re: netstat -m and sendfile(2) statistics in STABLE

2004-06-18 Thread Igor Sysoev
.x sfbufs are network buffers only and I think it's handy to see the network buffer statistics in one place. I prefer to see netstat -ms or netstat -m. And nothing against additional the vmstat implementation. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL

Re: aio_connect ?

2004-10-20 Thread Igor Sysoev
- aio_cancel(), aio_error(). I think aio_* may be usefull for the zero-copy sockets, however, FreeBSD's aio_write() does not wait when the data would be acknowledged by peer and notifies the completion just after it pass the data to the network layer. Igor Sysoev http://sysoev.ru/en

Re: aio_connect ?

2004-10-20 Thread Igor Sysoev
two things - the threads and the signals. If you like to use a callback behaviour of the signals you could easy implement it without any signal. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo

RE: aio_connect ?

2004-10-20 Thread Igor Sysoev
not use aio_waitcomplete() instead of aio_error()/aio_return() pair after kevent() reports the completetion. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any

Re: aio_connect ?

2004-10-20 Thread Igor Sysoev
understand FreeBSD 4.x already has similar AIO implementation. Or do you mean the implementaion by user-level threads like in Solaris ? Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo

Re: Error 49, socket problem?

2004-10-22 Thread Igor Sysoev
sysctl -w net.inet.ip.portrange.first=1024 sysctl -w net.inet.ip.portrange.last=65535 And after you upgrade to 4.10 do not forget to set sysctl -w net.inet.ip.portrange.randomized=0 Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list

Re: aio_connect ?

2004-10-22 Thread Igor Sysoev
as the kernel would call your signal handlers. The difference between your code and kernel is that your code always calls handlers in the well known places that allows to avoid the various race conditions. The kernel may call the signal handler any time if the signal is not blocked. Igor Sysoev

Re: Error 49, socket problem?

2004-10-23 Thread Igor Sysoev
., http://freebsd.rambler.ru/bsdmail/freebsd-stable_2004/msg02310.html Is there any danger of me setting the port range from 1024 - 65535 ? I believe it is safe. Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org

Re: using natd to load balance port 80 to multiple servers

2004-10-23 Thread Igor Sysoev
/select/poll), Linux (static and proxy, using epoll, rt signals) and Solaris (static only, using /dev/poll). Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any

Re: Very strange kevent problem possibly to do with vinum

2004-12-10 Thread Igor Sysoev
are being sent through sendfile? What does systat -vm show on these machines ? Igor Sysoev http://sysoev.ru/en/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to [EMAIL PROTECTED]

setsockopt() can not remove the accept filter

2005-06-10 Thread Igor Sysoev
) { +if (sopt == NULL || sopt-val == NULL) { By the way, is it easy to add timeout for dataready and httpready filters ? Now the stale connections may live for long time. Igor Sysoev http://sysoev.ru/en/ ___ freebsd-net@freebsd.org mailing list http