From owner-freebsd-net@FreeBSD.ORG Tue Dec 30 14:07:40 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0551B3F8 for ; Tue, 30 Dec 2014 14:07:40 +0000 (UTC) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [IPv6:2a00:1450:4010:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7D1C93ED5 for ; Tue, 30 Dec 2014 14:07:39 +0000 (UTC) Received: by mail-la0-f44.google.com with SMTP id gd6so12803147lab.17 for ; Tue, 30 Dec 2014 06:07:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=PxBgnlvUHsjfwz7sLSsd9NjrsPkJj/RsO+iwsW6h5Lw=; b=yGK/Ks61jmi4gZEKyqbkmxQFskFpTMv6PbuRlzh3/cQBUeR0VgVKjiEqso8EoBEZG6 DesI8Xxyh2ruZELEvnYyoZ9Avp6K0sIEWRSz4fsP0WPqYkyBGbFs7sYz2lvz1/gfbDEW 0QQ8/7EeXdgJT2KqTL3uIeRBLw3FRKwIE6KLdL59TCNFbfjFG9fSLtelBUX4W8+OqD0/ MB3GOxiUJSsUQPa8RQXvy7hcOg2U2ZtUGTnup4pz0NvG7QSx5GYfp8OxhxzoNN7yK/AF VZwV9wDHHxvxefpG7Wl9FMyr2DoQhHkX63O06CL+dkGun+aUiFS6qOyqKXwZcoGPtQMe THMQ== X-Received: by 10.152.228.164 with SMTP id sj4mr59964042lac.98.1419948457506; Tue, 30 Dec 2014 06:07:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.36.215 with HTTP; Tue, 30 Dec 2014 06:06:57 -0800 (PST) From: Carlos Ferreira Date: Tue, 30 Dec 2014 14:06:57 +0000 Message-ID: Subject: Regarding Netmap internal memory allocation. To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2014 14:07:40 -0000 To Luigi and to whom may be able to help Hello all. Is it possible to reduce the size of the memory buffer allocated by the netmap module? I'm asking this because I was implementing some testing code, using NICs and a Tap device in an OpenWRT VM with 64MB of RAM. Because of the small RAM amount, the nm_open crashed when the program tried to netmap the tap device, after I previously netmapped one NIC successfully. After the crash, I bumped the VM RAM to 256MB and the test program ran well, but not without me noticing that the VM RAM consumption was increased about 90 MB by netmap. Resuming, I want to know if there is a way to reduce the memory buffer allocation, without recompiling the netmap kernel module. Thank you for the attention. -- Carlos Miguel Ferreira Researcher at Telecommunications Institute Aveiro - Portugal Work E-mail - cmf@av.it.pt Skype & GTalk -> carlosmf.pt@gmail.com LinkedIn -> http://www.linkedin.com/in/carlosmferreira