53 points · by DyslexicAtheist · 7y ago · 20 comments
[0] https://github.com/discourse/discourse_docker/blob/ade283329...
Transparent huge pages are great for applications like the JVM example from the article. It's not terribly difficult to localize it for one buffer/pool if that's what's right for your application.
> Do not blindly follow any recommendation on the Internet, please! Measure, measure and measure again!
Amen!
They're also especially valuable to workloads where you can predict the memory access pattern.
Also note that THP opt-in instead of opt-out is already possible. You just have to set the sysfs control to "madvise" instead of "always", many distros do this by default already.
It keeps getting better, maybe one day..