https://bugs.winehq.org/show_bug.cgi?id=18745
--- Comment #17 from Austin English austinenglish@gmail.com --- (In reply to Indrek from comment #15)
After a bit of digging I found that Win LargePage seems to the equivalent of HugePage in linux and I also found special function gethugepagesizes http://linux.die.net/man/3/gethugepagesizes that could be used to get the available values (and thus find the minimum one), but I was unable to get it to compile correctly (needs changes to configure.ac ?) :(
I wasn't able to get that working on Fedora, using the sample code from https://stackoverflow.com/questions/17225200/how-to-get-the-value-of-huge-pa... (even after installing libhugetlbfs-devel).
Getting it from /proc/meminfo seems to work though: [austin@localhost ~]$ cat /proc/meminfo | grep Huge AnonHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB
I've put together a patch that does that, instead.