On 12/17/12 10:47 PM, Minchan Kim wrote:
I hope more inputs from user-space allocator people and test patch with their allocator because it might need design change of arena management for getting real vaule.
jemalloc knows how to handle MADV_FREE on platforms that support it. This looks similar (we'll need a SIGBUS handler that does the right thing = zero the page + mark it as non-volatile in the common case).
All of this of course assumes that apps madvise the kernel through APIs exposed by the malloc implementation - not via a raw syscall.
In other words, some new user space code needs to be written to test this out fully. Sounds feasible though.
-Arun -- 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>