I need to check vm pagesize on an embedded device running linux. Do not have the getconf
to check the same.
Is there a way to check the page size in linux without getconf
, is it possible to derive it from some proc entries.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityIn Linux most of the system related information is present under the /proc/
directory. This includes PAGESIZE
information, which is in /proc/self/smaps
.
For example:
$ grep -ir pagesize /proc/self/smaps
KernelPageSize: 4 kB
MMUPageSize: 4 kB
getpagesize()
may be available.