[ previous ] [ next ] [ threads ]
 
 From:  Manuel Kasper <mk at neon1 dot net>
 To:  Chris Buechler <cbuechler at gmail dot com>
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] 1.2b5+ BitTorrent problem
 Date:  Sun, 27 Mar 2005 00:27:53 +0100
On 26.03.2005 15:47 -0500, Chris Buechler wrote:

> Seems that any of the 5.3-based betas have an issue with handling
> huge numbers of packets.  BitTorrent is one easy way to replicate
> the problem.
> 
> With a 4501 and 1.2b7, downloading about 400 KBps and uploading 2-3
> KBps on BitTorrent pegs the CPU on m0n0wall at 100%.  With 1.2b3 and
> earlier I used BT without any issues.

Here's a little performance comparison between 1.2b3 and 1.2b7 in the
default configuration (+ one inbound NAT/firewall rule) on a net4801
using iperf (in TCP mode for throughput and in UDP mode with minimal
packet size for pps):

                 +-------------+-----------+
                 | 1.2b3       | 1.2b7     |
+----------------+-------------+-----------+
| ipfilter on    | 42.7 Mbps   | 26.2 Mbps |
|                +-------------+-----------+
|                | ~8500 pps   | ~4400 pps |
+----------------+-------------+-----------+
| ipfilter off   | 77.4 Mbps   | 48.4 Mbps |
|                +-------------+-----------+
|                | ~19500 pps  | ~7400 pps |
+----------------+-------------+-----------+

The pps figures aren't necessarily accurate - they only serve to show
the difference.

As can easily be seen, FreeBSD 5.3 brings a rather severe performance
hit... This was to be expected though, and is part of the reason why
I was reluctant to switch to 5.3 for so long. However, sooner or
later it had to be done, so now the question is what we can do to
improve the situation. I'm leaving this to the talented people on
this mailing list (especially FreeBSD 5.3 advocates :) for the time
being...

- Manuel