Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Feb 2012 01:27:29 -0500
From:      Zaphod Beeblebrox <zbeeble@gmail.com>
To:        Jack Vogel <jfvogel@gmail.com>
Cc:        Ben Hutchings <bhutchings@solarflare.com>, FreeBSD Net <freebsd-net@freebsd.org>, Luigi Rizzo <rizzo@iet.unipi.it>, re <re@freebsd.org>, FreeBSD stable <freebsd-stable@freebsd.org>
Subject:   Re: nmbclusters: how do we want to fix this for 8.3 ?
Message-ID:  <CACpH0Mc__XYyqkGdif4a1J4V_-0Do=KR9Du-=faz8UPrr--e=Q@mail.gmail.com>
In-Reply-To: <CAFOYbc=BWkvGuqAOVehaYEVc7R_4b1Cq1i7Ged=-YEpCekNvfA@mail.gmail.com>
References:  <CAFOYbc=oU5DxZDZQZZe4wJhVDoP=ocVOnpDq7bT=HbVkAjffLQ@mail.gmail.com> <20120222205231.GA81949@onelab2.iet.unipi.it> <1329944986.2621.46.camel@bwh-desktop> <20120222214433.GA82582@onelab2.iet.unipi.it> <CAFOYbc=BWkvGuqAOVehaYEVc7R_4b1Cq1i7Ged=-YEpCekNvfA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It could do some good to think of the scale of the problem and maybe
the driver can tune to the hardware.

First, is 8k packet buffers a reasonable default on a GigE port?
Well... on a GigE port, you could have from 100k pps (packets per
second) at 1500 bytes to 500k pps at around 300 bytes to truly
pathological rates of packets (2M pps at the Ethernet-minimum of 64
bytes).  8k buffers vanish in 1/10th of a second in the 1500 byte case
and that doesn't even really speak to the buffers getting emptied by
other software.

Do you maybe want to have a switch whereby the GigE port is in
performance or non-performance mode?  Do you want to assume that
systems with GigE ports are also not pathologically low in memory?
Perhaps in 10 or 100 megabit mode, the driver should make smaller
rings?

For that matter, if mbufs come in a page's worth at a time, what's the
drawback of scaling them up and down with network vs. memory vs. cache
pressure?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACpH0Mc__XYyqkGdif4a1J4V_-0Do=KR9Du-=faz8UPrr--e=Q>