On Sun Jun 2 15:41:59 2024 +0000, Vibhav Pant wrote:
From what I understand, THP support is ultimately immaterial here, as we're **requiring** a huge page allocation, rather than depending on `khugepaged`to compact `madvise`-ed ranges.
Still, are the large page sizes on Windows match those on Linux? I think in Wine we have to support what Windows supports and report the same minimum page size that Windows reports. If that can be backed by actual huge pages then great but I am not sure if we can sacrifice compatibility here. Depends on usage pattern probably but I wouldn't expect the actually backing the range with huge pages to have all that great performance impact.
Also, just as a note, mind that those huge pages allocation on Windows have other specifics, like IIRC they are always locked in memory. That potentially can have more impact than actual backing pages layout. I am wondering what does the app which uses it actually does with this mapping?