From owner-freebsd-net@freebsd.org Thu Feb 4 18:53:04 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 8100BA9BEB1 for ; Thu, 4 Feb 2016 18:53:04 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) (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 4597510EB for ; Thu, 4 Feb 2016 18:53:04 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by mail-ob0-x233.google.com with SMTP id ba1so73470908obb.3 for ; Thu, 04 Feb 2016 10:53:04 -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=FrVsAcLucwPlD6fcfyAsIFSw+di85odkNOUxDpRqaQI=; b=Wqic/9lhMZ+JvVkMzbRYdH5DJgV9VZ9hb9hbW+kUg7xmVICkMcO0APi4ZZL0sNq5mj e6ahxatSbILTZsYZHaIfiZvLr77oerkUlnFs58VrV3KWdWWusbQqQ7CP+kmCspYnXcfB snbOduofNwgkq89yqtQ67Cm9eUQrug6tML9sIKuCLGE7Y29Me9AiBxw1n3ZuMU+PcdtX KUX3IU4wLLGkwMr6swwy/MA6Y7Gv02+XYe4cIDjn7T3aJMoD4KcDkz1Krb9Jc1GTXb07 VtbDtoQ+mzMLx+PpN/QfPoJZX2UEiUC7tx0Fi9gfQF6zthB//x4UQsvSlkg1DcVaGjLE tycA== 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=FrVsAcLucwPlD6fcfyAsIFSw+di85odkNOUxDpRqaQI=; b=Wb/tuSSrM8FVujxTBmTQWp2JLU6ruLgPvjZBIdpVyJnIlBtbvaxINKA4EnJcZTvltL lNZmEijn204KglIIv3kAJO0JYOT/NkSygWFqqZjmhIHr/Jw4Q6M1USckIn3xm3TEIOPQ DoHKYH6HuklwJ8/r1cjHOUlQ+YxuxCt1Qj4MChy3CDc278RaQ5el3jwqozcuS1nqNxJ0 suq6B3OdS2mdjqzWNziWjxig5E8IJct63YdxnAVt1IVQaGKEX0s4XiwHSZu6lFRpaSAH LU6oK7P0CgisgbQoLjqwFuxgq5JQZbsFzikn+l1/t4OVCGYUweyv/rAw6+VpSydSVF5U MDjw== X-Gm-Message-State: AG10YOQIJQ4o80JeM8Z71TKqWOtQRkI8go8dzdX7ZjM0/uTa4o08FzeZNV91mD8TG2EbsMPq4KeCzbBTWY5z5Q== MIME-Version: 1.0 X-Received: by 10.182.120.40 with SMTP id kz8mr8774645obb.24.1454611983402; Thu, 04 Feb 2016 10:53:03 -0800 (PST) Received: by 10.182.88.138 with HTTP; Thu, 4 Feb 2016 10:53:03 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Feb 2016 16:53:03 -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 18:53:04 -0000 when i disabled LRO it ruined communication on the port to network (altough from host was ok), everything else looks good and so far I had no problem with big packets coming from host, so -tso did it, thank you! On Thu, Feb 4, 2016 at 12:35 PM, Luigi Rizzo wrote: > disable all hardware accelerations when using netmap. > > cheers > luigi > > On Thu, Feb 4, 2016 at 3:34 PM, Eduardo Meyer > wrote: > > 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 > > > > -- > -----------------------------------------+------------------------------- > 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