[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4147596.bk6j0PMJyl@h2o.as.studentenwerk.mhn.de>
Date: Wed, 23 Oct 2013 17:57:18 +0200
From: Wolfgang Walter <linux@...m.de>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Steffen Klassert <steffen.klassert@...unet.com>,
David Miller <davem@...emloft.net>, hannes@...essinduktion.org,
netdev@...r.kernel.org, klassert@...hematik.tu-chemnitz.de
Subject: Re: Big performance loss from 3.4.63 to 3.10.13 when routing ipv4
Am Mittwoch, 23. Oktober 2013, 05:00:01 schrieb Eric Dumazet:
> On Wed, 2013-10-23 at 13:33 +0200, Wolfgang Walter wrote:
> > I don't know what this value actually means. But on 3.4.x it is much
> > higher. On a machine with 512MB ram it is 32768, on a machine with 1GB
> > ram it is 262144 and with 16GB ram it is 4194304.
>
> Such huge values should not be needed. We should have at most one dst
> per packet in flight.
>
> On a loaded router, a NIC not using BQL could queue around 16,000
> packets.
>
> Of course, Qdisc layers could also store a lot of packets, but using the
> default pfifo_fast is only adding 1000 packets per interface.
>
> I guess using 65536 as the default value should be safe and reasonable
>
> Have you tried using 32768 or 65536 ?
I use 32768 on routers with 512MB. They usually have around 50 ipsec-tunnels
and only about 10 interfaces including vlan-interfaces.
On larger ones I set the bigger values from 3.4.x. That one with 16GB has
about 2000 ipsec-tunnels. It has about 80 interfaces (inlcuding vlan-
interfaces). Physically it has 8 interfaces with together about 30 hardware-
queues.
Regards,
--
Wolfgang Walter
Studentenwerk München
Anstalt des öffentlichen Rechts
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists