Re: superpages in FreeBSD (netmap related) ?

2015-06-01 Thread Marko Zec
On Mon, 1 Jun 2015 11:34:00 +0200 Luigi Rizzo ri...@iet.unipi.it wrote: 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

Re: superpages in FreeBSD (netmap related) ?

2015-06-01 Thread Marko Zec
On Mon, 1 Jun 2015 12:11:12 +0200 Luigi Rizzo ri...@iet.unipi.it wrote: On Monday, June 1, 2015, Marko Zec z...@fer.hr wrote: On Mon, 1 Jun 2015 11:34:00 +0200 Luigi Rizzo ri...@iet.unipi.it javascript:; wrote: Hi, i was wondering how we can improve the netmap memory allocator

Re: superpages in FreeBSD (netmap related) ?

2015-06-01 Thread Luigi Rizzo
On Monday, June 1, 2015, Marko Zec z...@fer.hr wrote: On Mon, 1 Jun 2015 11:34:00 +0200 Luigi Rizzo ri...@iet.unipi.it javascript:; wrote: 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

superpages in FreeBSD (netmap related) ?

2015-06-01 Thread Luigi Rizzo
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