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); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>