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

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -