From owner-freebsd-current@FreeBSD.ORG Mon Jun 1 09:34:03 2015 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4934BFB9 for ; Mon, 1 Jun 2015 09:34:03 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::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 C346F1B9E for ; Mon, 1 Jun 2015 09:34:02 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by lbcmx3 with SMTP id mx3so80527840lbc.1 for ; Mon, 01 Jun 2015 02:34:00 -0700 (PDT) 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:content-type; bh=vpBI9m5u2YyX64arf9uGttVJsKLtrou0MogOOW5a12A=; b=X66z1oKXK8TYLCntjOfk5mZN8XntV1u9uf5pkBnf4efO/1372Z8plkOBPGYZFeQb6/ 5tWJ7KuxXyupP30qHb3nu++YAb8gvvcfaOUfy0xDPObiMn4M1oF81kQfEqjxZfKQoGOP U+7ZiNp82TZEWdCVu5VzfrLNgIRuH40Ru6pOYNlYGrN7xYnucT3LlZat8ZeGSNiDocFf bAYtlPhIL8FvUpoR6X0//cnGR0rgabPQhsU5CKjMzTgg2SRPW7Rw7ulli6iORFcIO0Oa RBzpC+sh88+U/Et8852VmqBP1qG/KGAboX2vwRq6EwfwflLRjlVxXXzAn27I0taGjGAx ahjQ== MIME-Version: 1.0 X-Received: by 10.152.6.69 with SMTP id y5mr19817131lay.72.1433151240856; Mon, 01 Jun 2015 02:34:00 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.230.103 with HTTP; Mon, 1 Jun 2015 02:34:00 -0700 (PDT) In-Reply-To: References: Date: Mon, 1 Jun 2015 11:34:00 +0200 X-Google-Sender-Auth: B-PDHulzNHeltuLmNdVW040iRHc Message-ID: Subject: superpages in FreeBSD (netmap related) ? From: Luigi Rizzo To: FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 09:34:03 -0000 Hi, i was wondering how we can improve the netmap memory allocator to make use of 2M pages (through the page promotion trick). in netmap, when we allocate packet buffers, we issue requests for 4k blocks to contigmalloc(), and i have no idea if there is a way to improve the chance that the memory is mapped to 2M pages ? cheers luigi -- -----------------------------------------+------------------------------- 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) -----------------------------------------+-------------------------------