Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2016 12:34:08 -0200
From:      Eduardo Meyer <dudu.meyer@gmail.com>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: dev.netmap.buf_size and packett size from host
Message-ID:  <CAEqdE_7aN4DEa2fLBnamBSeEK5UT8ePdBFyKu=R75FdXnPB7hg@mail.gmail.com>
In-Reply-To: <CA%2BhQ2%2Bg0FujuKvzxH_Nae6Pq2X%2BzJQWOrrY3RSefDAiwssASxg@mail.gmail.com>
References:  <CAEqdE_6ZVTbLebLoNbQUy916Pv5up5A9vrymrV4yE_DBXZJ-yw@mail.gmail.com> <CA%2BhQ2%2Bg0FujuKvzxH_Nae6Pq2X%2BzJQWOrrY3RSefDAiwssASxg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
mtu is good, TSO was on, thank you will retest right now.

which other port features should I disable? I only disabled txcsum and
rxcsum before, now tso on the list, anything else in netmap mode?

On Thu, Feb 4, 2016 at 12:29 PM, Luigi Rizzo <rizzo@iet.unipi.it> wrote:

> Make sure you disable TSO on the interface used in netmap
> mode, and then check that you use an MTU of 1500 on that
> interface.
> You should not receive frames larger than MTU coming from
> the host in these conditions.
>
> cheers
> luigi
>
>
> On Thu, Feb 4, 2016 at 3:26 PM, Eduardo Meyer <dudu.meyer@gmail.com>
> wrote:
> > hello,
> >
> > I have a netmap application which has host mode bridge/fwd, with default
> > settings I have the following error some often:
> >
> > 884.260394 [2950] netmap_transmit           igb1 from_host, drop packet
> > size 2962 > 2048
> >
> > the only application which relies on host mode is bird, so those packets
> > are probably from bird daemon, when I get those errors I get bird
> sessions
> > failing and restart
> >
> > I raised dev.netmap.buf_size to 5000 it ajusted to 5120, things got
> better
> > but I still have logs:
> >
> > netmap_transmit           igb1 from_host, drop packet size 5858 > 5120
> >
> > Now the main question is, when dev.netmap.buf_size is 2048 the
> application
> > uses 1.3G of RAM but when I raise to 5120 it uses 3G of RAM.
> >
> > So I need to understand, is this packet size really related from what I
> get
> > from the application packets coming from host to netmap? If so can I
> allow
> > for bigger sizes, like 16k (lo0 mtu) without pre-alloc so much more RAM?
> >
> > thank you
> >
> > E. Meyer
> > _______________________________________________
> > freebsd-net@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-net
> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>
>
>
> --
> -----------------------------------------+-------------------------------
>  Prof. Luigi RIZZO, rizzo@iet.unipi.it  . Dip. di Ing. dell'Informazione
>  http://www.iet.unipi.it/~luigi/        . Universita` di Pisa
>  TEL      +39-050-2217533               . via Diotisalvi 2
>  Mobile   +39-338-6809875               . 56122 PISA (Italy)
> -----------------------------------------+-------------------------------
>



-- 
===========
Eduardo Meyer
pessoal: dudu.meyer@gmail.com
profissional: ddm.farmaciap@saude.gov.br



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEqdE_7aN4DEa2fLBnamBSeEK5UT8ePdBFyKu=R75FdXnPB7hg>