[RFC PATCH 3/4] mm/vmalloc.c: Allow lowmem to be tracked in vmalloc
Dave Hansen
dave at sr71.net
Fri Nov 15 10:53:34 EST 2013
On 11/14/2013 08:52 PM, Laura Abbott wrote:
> free (ptr) {
> if (is_vmalloc_addr(ptr)
> vfree
> else
> kfree
> }
>
> so my hypothesis would be that any path would have to be willing to take
> the penalty of vmalloc anyway. The actual cost would depend on the
> vmalloc / kmalloc ratio. I haven't had a chance to get profiling data
> yet to see the performance difference.
Well, either that, or these kinds of things where it is a fallback:
> hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN);
> if (hc == NULL)
> hc = __vmalloc(hsize, GFP_NOFS, PAGE_KERNEL);
More information about the linux-arm-kernel
mailing list