Implementation of modern memory management system , Operating System

Assignment Help:

Central to implementation of a modern memory management system is the page replacement algorithm. Modern virtual memory systems break memory up into pages and map (via a page table) only the pages needed, or a maximum number of pages that is constrained by system load, into the address space of the process. The page replacement algorithm is used to decide which page/s of memory to evict when different pages of memory are needed.

Using the simulators provided you will develop an understanding of the algorithms involved and perform a comparison of the efficiency of these algorithms.

2. The Simulators

The speci?cations of the simulators are as follows:

  • Only a single process run is simulated, so all the available physical memory constitutes the resident set for this process. This represents ?xed allocation, local scope policy for the resident sets.
  • The physical memory size (in frames) is an input parameter to the program. This should be less than the number of virtual pages, so some of the process pages will not ?t into physical memory.
  • The virtual address is 16-bit long. The page is addressed by the high-order 8 bits, and the offset within the page by the low-order 8 bits, so there are 256 virtual pages, each capable of holding 256 bytes.

The following data structures are provided:

  • A linear page table, which maps the virtual page number to a physical frame number. Each page table entry contains the physical frame number, and a valid bit. Other control bits or items should be added to facilitate implementation of the chosen page replacement strategy.
  • A free list, which is a list of all frames in physical memory available for allocation to the process. Initially all available frames belong to this list.
  • A resident set, which is a list of physical frames allocated to the process. Initially  this list is empty.

Initially all available frames are free, and can be allocated to the process on demand. When the free list runs out of frames, one of the frames in the resident set must be freed for the incoming page. The choice of the victim page is governed by the replacement policy.

The execution of the process is simulated by the pager program which reads virtual addresses from the input ?le, and allocates new frames to the process as required.

3 Simulator Algorithms

Three simulators (that share a common codebase) have been provided. They implement the following algorithms:

  • FIFO
  • LRU
  • Optimal

You should research each of these algorithms and develop an understanding of how these algorithms work. You do not need to understand the code beyond the level of how to run the simulators.

4 Algorithm Comparison

Four input ?les have been provided that simulate different process workloads. You should use these as input to the simulators, varying the memory size to determine which is the most ef?cient algorithm for each input, and which is the most ef?cient overall. Plotting available memory versus page fault rate will help you in this task. A spreadsheet has also been provided to assist you in making these plots.

You should after performing these experiments be able to make a recommendation about which algorithm is best for use in a real system.

5 Deliverable and Marking Guide

You are required to write a report that includes the following information, with the marks available are indicated on the right hand side:

  • Introduction to the report
  • Description of "FIFO"
  • Description of "LRU"
  • Description of "Optimal"
  • Description of experiments performed, this should be an overview of the techniques used, the results will pin this down.
  • Presentation of results for input ?le 1, (this could just be a graph), and a ranking of the three algorithms performance.
  • Presentation of results for input ?le 2 and a ranking of the three algorithms performance.
  • Presentation of results for input ?le 3 and a ranking of the three algorithms performance.
  • Presentation of results for input ?le 4 and a ranking of the three algorithms performance.
  • Conclusions and recommendation of algorithm, this should be supported by your data.

Related Discussions:- Implementation of modern memory management system

What methods are used to monitor intrusion detection, Question : a) Wh...

Question : a) What do you understand by a Directory Structure? Support your answer with a diagram. b) Give an example how Access Lists and Groups are arranged to mode of

Create a gantt chart for scheduling algorithms, Question: (a) The follo...

Question: (a) The following table (table 1.0) gives the length of the CPU burst time in milliseconds of processes P 1 to P 4 . Assume the processes arrived in the order P 1 ,

Explainoptimal page replacement in detail, Optimal page replacement An...

Optimal page replacement An optimal page replacement algorithm has the least page fault rate of all algorithms. The algorithm states that put back the page that will not be us

Copy on write in virtual memory, how copy on write on pages when many proc...

how copy on write on pages when many process works at a same time?

Explain message passing system, Message passing system:- The function o...

Message passing system:- The function of message system is to permit processes to communicate with one another without the requirement to resort (option) to shared data. Commun

What are the various layers of a file system, What are the various layers o...

What are the various layers of a file system? The file system is composed of many dissimilar levels. Each level in the design uses the feature of the lower levels to make new f

Distinguish among pcs and scs scheduling, Q. Distinguish among PCS and SCS ...

Q. Distinguish among PCS and SCS scheduling. Answer: PCS scheduling is completed local to the process. It is how a thread library schedules threads onto available LWPs. SCS sch

Compare user threads and kernel threads, Compare user threads and kernel th...

Compare user threads and kernel threads. User threads:- User threads are supported above the kernel and are executed by a thread library at the user level. Thread creation

Is disk scheduling useful in a single-user environment, Is disk scheduling,...

Is disk scheduling, other than FCFS scheduling, useful in a single-user environment? Explain your answer. In a single-user environment, the I/O queue usually is blank. Requests

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd