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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -