Postagens

Mostrando postagens de julho, 2021

Assignment 4 - 2021

  Team 1: page fault on calloc  Using phase 4 of Shibata's team , write a program that continually gets memory (calloc) and writes on a structure, creating a circular linked list (where each cell is in this structure), i.e., a cell (this structure) must point to the former one and to the next one. Make sure you write on the data structure in order to force a major page fault. Explain how virtual memory was allocated by /proc/$PID/maps (the process may be blocked by a getchar). Did the calloc took memory from heap or from stack? After some time, due to virtual memory, data must go to disk in order to free memory to more data through do_swap_page. How much memory did your process get? Make sure the swap area is very large, greater than 4GB. You may experiment getting little or big chunks of memory using calloc. Does it change how much memory your process get? Team 2: shared memory Using phase 4 of Shibata's team , implement a program that creates a shared memory greater than the