From owner-freebsd-net@freebsd.org Thu Feb 4 14:30:00 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 971BFA9BB15 for ; Thu, 4 Feb 2016 14:30:00 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (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 1FCDC3C6 for ; Thu, 4 Feb 2016 14:30:00 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mail-lf0-x235.google.com with SMTP id l143so37232683lfe.2 for ; Thu, 04 Feb 2016 06:30:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JBMz0jfe+qO0bOqmAc2pXJC9gHjTEEKnoQXlsKoeOgo=; b=b2uyH/pzmapLgExRb9qrdQgFt4hpTmRKlF3kZhxUT1oo6/mBEKnuHF1+/J31xpMk/v /S99JPZRmfmKqFso3cEzyGJanZ6h0UQOBkM8DrAW2h9pElM+K8L8+9NmAyDEVGISkR0C LYR6dt0gr31K84pmXJga3Vnf2ScvFYoL7kfxx20UXgHLggF1s8qJrZXNiYfyhMJ5q3Cm XoDbW5OpOuLuyg1kYU+5lEWjZkcLBNQ9jO14Pt0LZrjVeChngljfdJy5qgVbz2ftZ0su Hzx1pO5Y65S1FMtYQcf3W3mO36n7YagXGL8pYnDu1lhhmxpGgmMhSdWEV/7nf1gP/1q7 3ysQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=JBMz0jfe+qO0bOqmAc2pXJC9gHjTEEKnoQXlsKoeOgo=; b=OWIwZIpvXudl21zz0h3N1p2Eo2LZE1XKtkerSqjj7G4/f8L7759aNnDK9CtWGRdVrC waD69hTBMaehb2GPZYC3WtM2VzzzjVjLD1ZZnQhpWA+dEYQI5zUuQw0bXH3Z2PdOTOq6 V0lDo2eDu/Z0ZhRvTHzfXTGJoRWB81NaaaO41/MPo5JnOnYpqZO7qAYS9vM8NeauV4NX JnfD0gwU09U1vM8/U5tnRfWJ20bPzYhaTbt4UjSwN6malefNTtXc9Omj9EFXQHz5nRZq EERmpQG9ftDkQFwG8VGnqeGjCCPa8BmzORsKHD0T2ukYfsMcOKKCENyPl4lLHf+zISzW G0kQ== X-Gm-Message-State: AG10YOT8+B4GVS7f98bCqngdpnCqk06GrfnRZSFmWCfoX4lzWR3Dq1S51/4N6C//9gw6GKLXOBYKlIy10BSnXA== MIME-Version: 1.0 X-Received: by 10.25.29.193 with SMTP id d184mr3605046lfd.28.1454596198163; Thu, 04 Feb 2016 06:29:58 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.4.232 with HTTP; Thu, 4 Feb 2016 06:29:58 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Feb 2016 15:29:58 +0100 X-Google-Sender-Auth: YkaHQcClb0UV-Dx8FejPGgVv_xs Message-ID: Subject: Re: dev.netmap.buf_size and packett size from host From: Luigi Rizzo To: Eduardo Meyer Cc: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 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:30:00 -0000 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) -----------------------------------------+-------------------------------