c - How big (how much memory) can a process get (allocate) in xv6? -
suppose want use malloc() allocated memory in process
for(i = 0; < some_num; ++i) int *x = malloc(sizeof(int *)); what biggest number can set some_num to?
in xv6 physical memory limited , can see constant phystop 224mb simplicity reasons. of memory accommodating kernel code , other stuff, rest used process if needs consume rest of physical memory.
note: phystop changed, have modify mappages function map pages.
note 2: pages being allocated, place phystop\ pagesize in loop. i'm cheating here because again, kernel data structures , code occupying portion of physical memory.
Comments
Post a Comment