> It was a conscious decision to require a hugepage size of 2M. I want > it to fail if you do not have it since the rest of the code will not > work if you are using some other size. Yes, it is possible to discover > what hugepage sizes exist and act on that, but I want to keep the code > simple. Yes. I understood that and I think the solution is reasonable. Sadly, it's not trivial to query the default hugepage size from userspace AFAIK. Is parsing /proc/meminfo the only way? What I meant was: "the tests may still fail _with the old mode of failure (out of memory)_ if the default hugepage size is > 2MB".