We decide to speed up the virtual memory system of question 1
by using a translation...
We decide to speed up the virtual memory system of question 1
by using a translation lookaside buffer (TLB). Suppose your memory
system has the characteristics shown in the following table. The
TLB and cache miss rates indicate how often the requested entry is
not found. The main memory miss rate indicates how often page
faults occur.
Memory Characteristics
Memory Unit
Access Time (Cycles)
Miss Rate
TLB
1
0.05%
Cache
1
2%
Main memory
100
0.0003%
Hard drive
1,000,000
0%
What is the average memory access time of the virtual memory
system before and after adding the TLB? Assume that the page table
is always resident in physical memory and is never held in the data
cache.
If the TLB has 64 entries, how big (in bits) is the TLB? Give
numbers for data (physical page number), tag (virtual page number),
and valid bits of each entry. Show your work clearly.
Sketch the TLB. Clearly label all fields and dimensions.
What size SRAM would you need to build the TLB described in
part (c)? Give your answer in terms of depth × width.
Provide an in-depth and detailed explanation describing how the
virtual page size of a memory system might affect the performance
of cache when the virtual page size is very large and then when it
is very small.
Activity 1 – Using Netcat to Run Commands on Another
Box
Fire up a virtual box guest OS. Install netcat if necessary (or
if in Windows, check out netcat for windows or ncat from the maker
of nmap). Start netcat in listener mode tying it
to a command shell (see CHR chapter 8). Some
versions of netcat can’t run commands, in which case you might need
to install netcat-traditional
From another box (your host machine or another VM), initiate a...
QUESTION 1
1. We can solve memory leaks with
some form of garbage collection
such as mark-sweep or reference counters
some form of garbage collection
such as tombstones or lock-and-keys
using a tombstone or mark-sweep
approach to the dangling pointer problem
using a tombstone or lock and keys
approach to the dangling pointer problem
QUESTION 2
1. Pointers (and/or reference) types are necessary in
modern programming languages because
they provide...
Question 1
A 242 g box slides up a 16.1° ramp at a speed of 4.05 m/s. Using
conservation of energy and assuming the ramp is frictionless, how
far along the ramp does the box slide before stopping?
0.745 m
3.02 m
29.6 m
0.871 m
Question 2
A 10800 kg jet is preparing to land on a military aircraft
carrier. In order to do so, the pilot manoeuvres the jet's tail to
hook and snag a cable that is...
Question 1
We wish to see if, on average, traffic is moving at the posted
speed limit of 65 miles per hour along a certain stretch of
Interstate 70. On each of four randomly selected days, a randomly
selected car is timed and the speed of the car is recorded. The
observed times were:
70 65 70 75
Assuming that speeds are normally distributed with mean
m, is there evidence that the mean speed is not equal to
the posted speed limit?
a....
In a system with 16GB, external fragmentation requires
that we compact memory to fill in the holes. We need to
copy three fourths of memory from one location to
another.
Assuming a 256-bit data bus with a system clock of 1GHz
that requires 50 clocks per read and write, how long
will
it take for this operation to complete? Remember the
relationship between powers of 2 and 10 and don’t worry
about conversion errors.
Explain each of the following programs in 1-2 paragraphs
each:
Virtual Dementia Tour
Music and Memory
Snoezelen rooms
Hand in Hand dementia training
Certified Dementia Practitioner
Validation therapy
Reminiscence therapy
essentiALZ certification
It’s Never 2 Late
For each program, describe a scenario in an assisted/senior
living organization where its tenets could be applied. How would
the program help a senior with dementia? Which behaviors would be
alleviated, and how?
We want to speed up a random endothermic reaction. Lets assume
we have complete knowledge of the structures of our
intermediates and products. What could we try to do to make the
endothermic reaction go faster? Why? Provide at least two
strategies.
A one Megabytes block of memory is allocated using the
buddy system. Show the results of the following sequence of
requests and returns in a figure that is similar to Figure 7.6:
Request A: 200 Kilobytes;
Request B: 80 Kilobytes;
Request C: 380 Kilobytes;
Return A;
Request D: 120 Kilobytes;
Return B;
Return D;
Return C.
Also, find the internal fragmentation at each stage of
allocation/de-allocation.