Re: pf stalls connection when using route-to

2010-04-13 Thread Lin Jui-Nan Eric
On Tue, Apr 13, 2010 at 11:19 PM, Jeremy Chadwick wrote: > > What FreeBSD version?  uname -a output please. > I have tried 7.2-R and 8.0-R. Both version stalls, too. 8.0-RELEASE: # uname -a FreeBSD bsd8 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #3: Wed Mar 3 17:15:52 CST 2010 r...@bsd8:/usr/obj/

pf stalls connection when using route-to

2010-04-13 Thread Lin Jui-Nan Eric
Hi listers, We recently found that when the traffic passes pf with route-to, the connection stalls. Turning off TSO solves the problem. Our pf.conf is very simple: table const {10/8, 172.16/12, 192.168/16} pass out quick route-to (em0 10.1.1.1) from to ! no state And we have a tcpdump capture

Re: TCP packet out-of-order problem

2009-01-06 Thread Lin Jui-Nan Eric
so, could you send me the output of uname -a on the system? > > Thanks, > > Robert N M Watson > Computer Laboratory > University of Cambridge > >> On Mon, Jan 5, 2009 at 9:13 PM, Robert Watson wrote: >>> >>> On Fri, 2 Jan 2009, Lin Jui-Nan Eric wrote: >

Re: TCP packet out-of-order problem

2009-01-05 Thread Lin Jui-Nan Eric
Hi Robert, I thought that the system auto-tune improperly in this case. On Mon, Jan 5, 2009 at 9:13 PM, Robert Watson wrote: > On Fri, 2 Jan 2009, Lin Jui-Nan Eric wrote: > >> After running "netstat -s -p tcp", we found that lots of packets are >> discarded due to

Re: TCP packet out-of-order problem

2009-01-01 Thread Lin Jui-Nan Eric
Dear All listers, After running "netstat -s -p tcp", we found that lots of packets are discarded due to memory problems. We googled for it, and found that sysctl oid "net.inet.tcp.reass.maxsegments" became 0, therefore packets never reassembled. Then we checked our /boot/loader.conf and /etc/sysc

TCP packet out-of-order problem

2009-01-01 Thread Lin Jui-Nan Eric
Dear listers, We recently found our new FreeBSD server (located in some foreign region) has poor network performance. After doing some tcpdump and iperf testing, we found that out-of-order TCP packets are not inserted into queue. This is an 100Mbps line, and TSO is disabled. % uname -a FreeBSD b

Lots of FIN_WAIT_1 TCP Connections and deadlock in zoneli state

2008-04-16 Thread Lin Jui-Nan Eric
Hi All, I am running squid as reverse proxy on FreeBSD 7.0-R amd64. After running for a while (~ 8 hours), the throughput degrades to very very low rate. I found the squid is in "zoneli" state and is already a bug report on http://www.freebsd.org/cgi/query-pr.cgi?pr=106317 But after more investig