You will execute various memory management techniques on paper: Static Partitioning and Buddy System for partitioning; First-In-First-Out (FIFO), Clock (Second Chance) and Least Recently Used (LRU) policies for replacement. The following names and sizes are defined for the data.
Assume that there is 2 GB of memory available and following access requests arrive in the order they are given for (N, J, K, E, N, A, C, K, G, F, D, E, D, G, L, B, H, A, H, M). Initially the memory is empty.
|
A |
256 MB |
|
B |
512 MB |
|
C |
256 MB |
|
D |
128 MB |
|
E |
512 MB |
|
F |
64 MB |
|
G |
256 MB |
|
H |
512 MB |
|
I |
256 MB |
|
J |
64 MB |
|
K |
512 MB |
|
L |
128 MB |
|
M |
512 MB |
|
N |
64 MB |
Execute the following partitioning–replacement combinations. For all three alternatives, draw the memory state after each step. You can prepare it by hand or on a computer. Also indicate theoccurrence of any internal / external fragmentation, the number of misses/hits and additional data for replacement policies (e.g. age counters, clock)
a) Static partitioning with 4 equal size partitions and FIFO replacement policy
b) Buddy System and LRU replacement policy
c) Buddy System and Clock replacement policy
You will execute various memory management techniques on paper: Static Partitioning and Buddy System for partitioning;...
Q. 2. (a) Suppose the OS on your computer uses the buddy system for memory management. Initially the system has a 1 megabyte (1024K) block of memory available, which begins at address 0.Show the results of each request/release. (7.5) A: Request 400 K B: Request 15K C: Request 100K D: Request 80 K E: Request 25 K After memory is allocated to process E, how much internal fragmentation exists in the system. (b) Assume you have a computer system with...
[Bonus, 10 pts.] You are given a GPU that has 8 multiprocessors with a 2 GHz clock. Each processor has 8 multithreaded floating-point units and integer processing units. Its memory system has 8 partitions of 1 GHz Graphic DDRAM. Each partition is 8-byte wide and has a capacity of 256 MB. Determine how much time the computation F A B would take, where A, B, and F are n "n matrices and n is limited by the amount of the...
A short program loop goes through a 16 kB array one word at a time, reads a number from the array, adds a random number, and stores the result in the corresponding entry in another array that is located in the memory immediately following the first array. An outer loop repeats the above operation 100 times. The 64-bit processor, operating at a clock frequency of 4 GHz, is pipelined, has 48 address lines, three levels of caches with a 64...
Implement the frame replacement algorithm for virtual memory Assume a computer system have 10 memory frames available inside the physical memory and is required to execute a process containing 20 pages. Assume a process P has been executed in the system and produced a sequence of 40 page demands as follows: Page demands trace of process P Demand 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 cont. Page...