On 24/11/2015 15:25, Michael S. Tsirkin wrote: > I'm worried that things go slow and people don't have a way to find out > why, and documentation isn't the first place people look for when facing > a performance issue. > > At the moment we call MADV_HUGEPAGE unconditionally and unfortunately > there's no way to report it's not having the intended effect. > > Maybe we want a "don't enable hugepages" flag. > That could also have the effect of suppressing the warnings.
THP is anyway slower than hugetlbfs. If people really want performance, they need to use hugetlbfs. For everything else I'd be surprised if they even notice. Paolo