From owner-freebsd-net@freebsd.org Thu Feb 4 14:35:11 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 E5450A9BFBC for ; Thu, 4 Feb 2016 14:35:11 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (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 6C5A4D33 for ; Thu, 4 Feb 2016 14:35:11 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mail-lb0-x229.google.com with SMTP id dx2so32237943lbd.3 for ; Thu, 04 Feb 2016 06:35:11 -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=+qDE0L8qqMx0cAY8ZV8Y/KJVivDiJvvoXnG7N4eqIpI=; b=nmJZ1EnA+ZpIO228OK97aKBZhYvZPo1n8pVBNwJwqDAICOMHaJe83H+7PoNIf2D2jn 8PQ/Evad+KBANDaq0Dha7wyQW6rdJ5zpAvNCEvwOA+N6fe3tjB9+X6izr6NaG7pUarw5 pUTydaFlsvEQ5PWhdNgVTTUR6+rRgex7PNypt47PYxANBH0O2r2Ksrih8X4xJ53wzw0N KMJ109OBcjJ2JHImmmHdY6FekKfUkNSwvryG+2P4+2HmhaVg6GmOxQmIYmo74h2zIrK9 qUQS1Wf6biByOBnLC6Gjnq/QVvqUNSv8HHOyoWKt659hzVVO0O0J0yZQW3t/JjM0asbj Z5kg== 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=+qDE0L8qqMx0cAY8ZV8Y/KJVivDiJvvoXnG7N4eqIpI=; b=FhxxlXZPKUK7nHyyTeNdtclTauVtpGfF4DY80qmXppbKeSaF/PFmMuJENb3221m5f1 eOSoi8U3gC3IqtBf0dFD5rSAW+i5YVbMUz7Amb7JlSiClaTeRRYVojayt7ZLnTXRtppS M/sq3Qg9/GH25qIgdjYpyX+l8Yt1HbMbD3mzumGEcuzDw8nIiZQYxYGoqCZy7FEEmicH EQf47Ur6n+QRUF4zo8AfLN6ObGAPW9V3d/xxqKnZPWGOJEhO6Vh85i+GQ0zPUHz37IB9 NAfMChnzJlbxRhULrTXNuULwaKeOP9nkIYHXhsQAJ7Zr64D7u9jHG/hgCy5sZCOKLqaB 1LeQ== X-Gm-Message-State: AG10YOSCW0cwa9pDX78drLzQjh75sXf23V2AJ9Ugdc8ClvfpfIs3HmnxYAvZzeSk9PIhgd1HqdXZFl4ANeuPDw== MIME-Version: 1.0 X-Received: by 10.112.13.165 with SMTP id i5mr3097639lbc.79.1454596509415; Thu, 04 Feb 2016 06:35:09 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.4.232 with HTTP; Thu, 4 Feb 2016 06:35:09 -0800 (PST) In-Reply-To: References: Date: Thu, 4 Feb 2016 15:35:09 +0100 X-Google-Sender-Auth: N33EkyqTJlKazDdjdgNOohY47N4 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:35:12 -0000 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) -----------------------------------------+-------------------------------