Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2015 11:34:00 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        FreeBSD Current <current@freebsd.org>
Subject:   superpages in FreeBSD (netmap related) ?
Message-ID:  <CA%2BhQ2%2Bh7LZp2cLUpOrqLvWwFmSSWSw4GKT1DJCc_AuH7-t042g@mail.gmail.com>
In-Reply-To: <CA%2BhQ2%2BiWq4rO-V0M9VZTHMcVORSJ_Qgn6u0JmSiZjTy-L2MAsQ@mail.gmail.com>
References:  <CA%2BhQ2%2BiWq4rO-V0M9VZTHMcVORSJ_Qgn6u0JmSiZjTy-L2MAsQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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)
-----------------------------------------+-------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2Bh7LZp2cLUpOrqLvWwFmSSWSw4GKT1DJCc_AuH7-t042g>