[LITMUS^RT] RFP: Jumbo Ring Buffers

Christopher Kenna cjk at cs.unc.edu
Tue Apr 23 18:18:16 CEST 2013


On Mon, Apr 22, 2013 at 11:55 PM, Björn Brandenburg <bbb at mpi-sws.org> wrote:
> Thanks a lot for the pointers! How about this function?
>
>         http://lxr.linux.no/linux+v3.0/mm/vmalloc.c#L1680
>
> From the inline documentation, it doesn't sound like there's a limit on the maximum vmalloc() allocation. We don't care whether it is expensive or not; it's a one-time thing anyways.

I'm no expert, but it seems reasonable. It looks like it does
something similar (eventually calling map_vm_area, like the other
function), but also calls kzalloc/kmalloc so that you don't have to
worry about allocating/tracking your own pages. Glenn might be
interested in the 'node' parameter, too.




More information about the litmus-dev mailing list