Re: how to query huge page size?
- From: "llothar" <llothar@xxxxxx>
- Date: 24 Mar 2007 11:41:06 -0700
On 22 Mrz., 16:50, dch...@xxxxxxxxx wrote:
I use hugetlbfs for my application, and I'm wondering what the best
way to determine the huge page size on the system (for examples, x86
can be 2MB or 4MB, powerpc might be 16MB or 256MB).
I'd like something like "sysconf(_SC_HUGE_PAGESIZE) "
The only way I can find right now is to parse /proc/meminfo
Anyone know of a good way, or is /proc/meminfo really the only way?
On modern CPU's (this means in the last 10 years) the page size is not
a constant value.
Some ranges of address space might have 4kb values others 4mb.
.
- References:
- how to query huge page size?
- From: dchev4
- how to query huge page size?
- Prev by Date: AC_C_CONST bug?
- Next by Date: Re: AC_C_CONST bug?
- Previous by thread: how to query huge page size?
- Next by thread: To be notified on "WakeUp" from "Sleep"
- Index(es):
Relevant Pages
|