5 ms·
It's funny how this moves in circles: Automatic merging into hugepages (THP) is added to the kernel. Some workloads suffer, so it gets turned off again in some
by fweimer 4y ago
It's funny how this moves in circles: Automatic merging into hugepages (THP) is added to the kernel. Some workloads suffer, so it gets turned off again in some distributions (not all of course). But for many different workloads (some say the majority), THP is actually really, really beneficial, so it is ported to more and more mallocs over time.
It might have been more straightforward to teach the problematic workloads to opt out of THP once the problems were discovered.
- jeffbee 4y agoThe `madvise` setting of THP was never problematic for anyone. The Redis people made a huge stink about it because 1) they don't know what they are talking about and 2) the architecture of their program is really bizarre. Consequently it is now a widespread myth that you must set THP to `never` or else it is hazardous. But being widespread does not make it any less of a myth.