Sungyoul Kim
2011-07-21 07:19:14 UTC
Hello,
I just have a few questions.
1. We do not change runprogram nor execv, right?
So, all our changes should work without changing the two. (They
still call load_elf)
2. By calling VMSTAT's print function, it looks somewhat different from
what is described in the assignment description. Would it be just fine
to call that function?
Prints as:
VMSTATS:
VMSTAT TLB Faults = x
VMSTAT TLB Faults with Free = x
VMSTAT TLB Faults with Replace = x
VMSTAT TLB Invalidations = x
VMSTAT TLB Reloads = x
VMSTAT Page Faults (Zeroed) = x
VMSTAT Page Faults (Disk) = x
VMSTAT TLB Faults with Free + TLB Faults with Replace = x
VMSTAT TLB Reloads + Page Faults (Zeroed) + Page Faults (Disk) = x
3. In the assignment description, it says "In order to do this, your
kernel will need to have some means of keeping track of which parts of
physical memory are in use, and which parts can be allocated to hold
newly-loaded virtual pages."
Why do we need this? For what purpose do we need to keep track of which
parts of physical memory are in use?
We can get fresh pages by calling getppages function.
Thank you,
Sungyoul Kim
I just have a few questions.
1. We do not change runprogram nor execv, right?
So, all our changes should work without changing the two. (They
still call load_elf)
2. By calling VMSTAT's print function, it looks somewhat different from
what is described in the assignment description. Would it be just fine
to call that function?
Prints as:
VMSTATS:
VMSTAT TLB Faults = x
VMSTAT TLB Faults with Free = x
VMSTAT TLB Faults with Replace = x
VMSTAT TLB Invalidations = x
VMSTAT TLB Reloads = x
VMSTAT Page Faults (Zeroed) = x
VMSTAT Page Faults (Disk) = x
VMSTAT TLB Faults with Free + TLB Faults with Replace = x
VMSTAT TLB Reloads + Page Faults (Zeroed) + Page Faults (Disk) = x
3. In the assignment description, it says "In order to do this, your
kernel will need to have some means of keeping track of which parts of
physical memory are in use, and which parts can be allocated to hold
newly-loaded virtual pages."
Why do we need this? For what purpose do we need to keep track of which
parts of physical memory are in use?
We can get fresh pages by calling getppages function.
Thank you,
Sungyoul Kim