]> Zhao Yanbai Git Server - minix.git/commit
VM: expose virtual process size 42/3242/2
authorDavid van Moolenbroek <david@minix3.org>
Fri, 9 Oct 2015 18:48:05 +0000 (18:48 +0000)
committerLionel Sambuc <lionel.sambuc@gmail.com>
Wed, 13 Jan 2016 19:32:41 +0000 (20:32 +0100)
commit8b30ac4cc15b174b7073227e619daf092701e5fb
tree1fcac0696aec6b9c8082bd3c0728941b1bc10fbd
parent6b0f33d0fc0227339bf6308f08fe358bbd70074d
VM: expose virtual process size

So far, VM reported only the number of bytes actually allocated to
each process.  This patch adds two additional fields: the sum of the
byte sizes of all the virtual address ranges in the process, and that
number minus the part of the process stack that is not actually
mapped in.  Unfortunately, we have to guess where the process stack
is, so the second field is not necessarily accurate.

Change-Id: If9e07c20e8588bc3e11601ec79bdcebc06eba6ee
minix/include/minix/vm.h
minix/servers/vm/region.c