3 ms·
MMU operations are a lot more expensive now than they once were. In particular, one of the most expensive things about mmap today is actually munmap, that tras
by ncmncm 7y ago
MMU operations are a lot more expensive now than they once were.
In particular, one of the most expensive things about mmap today is actually munmap, that trashes the translation lookaside buffer ("TLB"), the cache of memory map lookups, on all the other cores that run threads in the same process. When you had only the one core, that didn't need to happen.
NetBSD used to have "UVM", where they played memory mapping tricks to get "zero-copy" networking. They had to give it up when they went to multiple cores.