From owner-freebsd-net@freebsd.org Thu Feb 4 14:26:36 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 4F77DA9B9C4 for ; Thu, 4 Feb 2016 14:26:36 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) (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 1F0721E5 for ; Thu, 4 Feb 2016 14:26:36 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by mail-ob0-x22b.google.com with SMTP id ba1so66079910obb.3 for ; Thu, 04 Feb 2016 06:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=u6opQ2ruhpE4UFnxX5Cp6y8893fR6zmC3V8ei2f5Cp4=; b=HuY0VqhjiEBRa0ZEw9OGW5lSM8pXDFgl1xOmKL5xVKg4rJpO0zF/UTBHvODDUA/Iae 5Im/0ww04rGiV/mUPgfkQyCJGn1zU5QVIg0HE5O/La+HP9R99W/w91TjgYIrC1gRQfNA Ei6wNiKnONR/N+r1UFYRsH5roVO0kK+zO74Owbpx2XdT4r0M9ibWyDSYTo+bFlY1fkRG PAUWti88UVkMSq7JzLV6qjXn6OqHShXK5tIYnKBuj/bSTn3GAY3fZg3Y66x1wxBsdkHj cFKXD0B9exsfnYCbAFBMFpLDzWEshptWyP5PWbP4qh9nESIn98IdDTyu4CdskV26b9Of wPwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=u6opQ2ruhpE4UFnxX5Cp6y8893fR6zmC3V8ei2f5Cp4=; b=Imyr+A3cRHF6UURts7XSWCHKo0jbq1+KazwcEJ8rAUmUt1kyGc4zMZndUFRzDdZ6E0 hR6Kz/u5gBG5K4GOM2NKS8YDd+ogOvUodnJHIehUcjeOt9Mif3WDTD3CwJAvwFBdsrxA xM8jkb4QEua5T57/Py4n8TEnuR9+6nHCiIjzm2CpT5uiYwMOFPROHVCCq5NfNPS52cVM f6Tk4fzYx8qOpgov9seRk2hFq7katN6xbtcvNZ9xljobhPT0RTnZTizkT7kbQPUNAPex ubZNyH0ckDtFmgreL3NtqgB061lKBP2xqKi+XItFvAewvvQlYsuSMe+vXxBY5FIzjSF1 otDA== X-Gm-Message-State: AG10YORDfvU7KvE7h6kAnXWeitJrr0PfKRdWEi1jQPI5fjHtzl/enJPZnPlrr1he+dBIqSbu4db8hrimtLIuIA== MIME-Version: 1.0 X-Received: by 10.60.81.67 with SMTP id y3mr7963205oex.61.1454595995222; Thu, 04 Feb 2016 06:26:35 -0800 (PST) Received: by 10.182.88.138 with HTTP; Thu, 4 Feb 2016 06:26:35 -0800 (PST) Date: Thu, 4 Feb 2016 12:26:35 -0200 Message-ID: Subject: dev.netmap.buf_size and packett size from host From: Eduardo Meyer To: "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:26:36 -0000 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