Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Operating System Expert

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.

Operating System, Computer Science

  • Category:- Operating System
  • Reference No.:- M9524292

Have any Question?


Related Questions in Operating System

Discussion question this research assignment will give

Discussion Question : This research assignment will give further information on the nature and workings of multi-tasking and multi-processing operating systems. All information reported in this assignment is to be in the ...

Question you are a security administrator responsible for

Question: You are a security administrator responsible for providing secure configuration requirements for new laptop deployments. After reading Module 2 of Certified Secure Computer User v2exercises, apply the configura ...

State the required answer precisely and then provide proper

State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. Briefly describe the following concepts and indicate how they are related in the context ...

Assignment -building a multi-threaded web server using c

Assignment - Building a multi-threaded web server using C and p threads, following the model from the lecture. Your program will have one thread acting as a dispatcher thread, listening fornetwork connections with reques ...

Foundation of information technologyresearch types of

Foundation of Information Technology Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Expl ...

Catalog course descriptionin this course students carry out

Catalog Course Description In this course students carry out independent research in a significant technical area of information, network, and computer security. The student is to investigate a technical area, research i ...

Research types of operating systems that are currently

Research types of operating systems that are currently available and provide a scenario in which the operating system you chose would be appropriate to be used in this situation. Explain why you think the choice you made ...

Question description of lasa in this assignment you will

Question: Description of LASA: In this assignment, you will select a real-world operating system (can be for a PC, server, tablet, handheld, or embedded device). You will introduce the operating system and its components ...

Question what do you see as the major differences between

Question : What do you see as the major differences between UNIX/Linux and other operating systems, such as Windows and Mac OS X? The response must be typed, single spaced, must be in times new roman font (size 12) and m ...

Question state the required answer precisely and then

Question : State the required answer precisely and then provide proper explanation. It is not enough to provide one- word or one-line answers. What is the purpose of the command interpreter? Why is it usually separate fr ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As