From owner-freebsd-net@freebsd.org Thu Feb 4 14:34:09 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF4DDA9BEC2 for ; Thu, 4 Feb 2016 14:34:09 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 94E59C46 for ; Thu, 4 Feb 2016 14:34:09 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by mail-ob0-x231.google.com with SMTP id xk3so66032903obc.2 for ; Thu, 04 Feb 2016 06:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=z4HVDqOMTB92mmYOJwz1Tb8imaPh2yDwDQSbHQpOR48=; b=pAVwt7sUOv3PNJLlg36YdrwrDHI/1kqebNNXS6aJlEjiIfYSGV4YsdOz/yY3dkciGt LxAK/Hj38ojsroXiNkI0WlB+BYgqpRlXktJNlVJVdhJamvq5U8nHUYt9g1sNh2ab3kbw 78tixurSKMzWlx9ez02QoH73fE6txXBGr41PTj8i2I8hDKG7kdsRP6T206H83KyLGWL1 pjrp9mlTdBo7861SQqDlBauKDnv3RIEYmFmpX7x+fVT+XhKVARdSlAczFhr4UYZ6B74Z bGvlaxoUzuvtE7gU4vi2lPTfiIwA/f3gc4biBCJKSwH9ZS3wrVDpEde7kB4IzBwqIKO6 BM6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=z4HVDqOMTB92mmYOJwz1Tb8imaPh2yDwDQSbHQpOR48=; b=a+C2CKCHMikpptuo16MVXjT7B5K4OIsKsDDVVoIv8FqIN/rzLP06sUUOmx3UWYVssT sZ7rrBIu1WjZm30tcEYdc44YX1DnXUKsmF8Q8sMH0rXmIA4lTKNIDDiGoCtrRbWeEIu2 8+M+JAJ175NeC+q6mvOZ1YaAKgCCE3WM5+YZ628kxasjEvHa49MtUO/tusst+/CPs5fU ybVWSRNs2l4njm24vzid52LAwnQtwxKqUipFGj4pGxA96NzxPJvpV70E2qIdZ+o3vlQv ByikURQj9sRFf5r90zSMtb6ZIqxyW0FU1FKOhqtXcZ5j/dDfVyfloQQgxdxn2gaaxs/E CNyQ== X-Gm-Message-State: AG10YOQO19D1biKTVXc68UxYLslGeVU+ByDXuphScQsMUQpxUaKMachL+go0X9JdNINqPq5gH5oOMPG+syBT1g== MIME-Version: 1.0 X-Received: by 10.60.117.102 with SMTP id kd6mr7544520oeb.73.1454596448769; Thu, 04 Feb 2016 06:34:08 -0800 (PST) Received: by 10.182.88.138 with HTTP; Thu, 4 Feb 2016 06:34:08 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Feb 2016 12:34:08 -0200 Message-ID: Subject: Re: dev.netmap.buf_size and packett size from host From: Eduardo Meyer To: Luigi Rizzo Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2016 14:34:09 -0000 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 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 > 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