I need to get the size of the kernel and user space of my linux distribution. is there a command to get the size of the kernel and user space?
Thanks Thomas
I need to get the size of the kernel and user space of my linux distribution. is there a command to get the size of the kernel and user space?
Thanks Thomas
You are looking for the CONFIG_PAGE_OFFSET
setting. I don't think it shows up anywhere except the kernel config file.
You can check /proc/<pid>/maps
. The stack probably will end at 0xC0000000, but it's possible that your userspace is partitioned differently. I don't think it's guaranteed that all userspaces are the same size.
Anything not listed in the map is available for the kernel. But keep in mind that these are virtual addresses in the process address space. As user pro