I am working on COW features to allow processes mapping anonymous pages from a source address to another target address, in the same process or crossing processes, so both the source and the target would be shared and COW. So, we can implement memcpy() with COW for big chunks of memory, to reduce traffic of memory bus and memory consumption. My question is how to flush TLB after change pte entries? I have implemented my idea as a kernel module. I have read Documents/cacheflush.txt, and try to call flush_tlb_range() or flush_tlb_all(), but their symbols are not exported, they can not be used by kernel module code. Is there any other way to flush TLB? Or I should implement it as a part of kernel instead of as a kernel module.!? For now, my temporary solution is to change kernel code to export symbols that I need. I had tested the code on my desktop and qemu, but I am not sure it is 100% right. There are some known issues; for example, rmap. But, it can run now. So, I also need testing, review and feedback from people here to make it more mature. You can find the source here, https://bitbucket.org/thinker/memcow Any feedback is welcomed! -- 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>