3 ms·
Poul-Henning Kamp is rather famous for writing code that uses mmap and a straightforward data structure for giant blobs of data and arguing that the kernel memo
by mcguire 7y ago
Poul-Henning Kamp is rather famous for writing code that uses mmap and a straightforward data structure for giant blobs of data and arguing that the kernel memory manager should handle the details. To my knowledge, most people dealing with data larger than memory use more active techniques.
- cbetti 7y agoIf portability is a goal, the mmap approach will require a higher investment with more documentation on system tuning to recognize the benefit. But if you're deploying to one architecture with strong support for mmap, go for it.
- hinkley 7y agoA common failure mode for this is that devs and less sophisticated Ops people see that the machine is only “using” 60% if available memory and they carve out a chunk for another process or a feature. They don’t get that file caching and mmapping are providing them a lot of their performance, and aren’t clearly accounted for by ‘free’. So suddenly we are at 90% memory and everything is slow as molasses.
- mcguire 7y agoOr say things like, "had 90% of their CPU available for twiddling their digital thumbs". CPU usage is irrelevant if all your processes are blocked on i/o.