skip to main content
10.1145/1536274.1536284acmotherconferencesArticle/Chapter ViewAbstractPublication PageswccceConference Proceedingsconference-collections
research-article

Teaching page replacement algorithms with a Java-based VM simulator

Published:01 May 2009Publication History

ABSTRACT

Computer system courses have long benefited from simulators in conveying important concepts to students. We have modified the Java source code of the MOSS virtual memory simulator to allow users to easily switch between different page replacement algorithms including FIFO, LRU, and Optimal replacement algorithms. The simulator clearly demonstrates the behavior of the page replacement algorithms in a virtual memory system, and provides a convenient way to illustrate page faults and their corresponding page fault costs. Equipped with a GUI for control and page table visualization, it allows the student to visually see how page tables operate and which pages page replacement algorithms evict in case of a page fault. Moreover, class projects may be assigned requiring operating system students to code new page replacement algorithms which they want to simulate and integrate them into the MOSS VM simulator code files thus enhancing the students' Java coding skills. By running various simulations, students can collect page replacement statistics thus comparing the performance of various replacement algorithms.

References

  1. A. Tanenbaum, Page Replacement Algorithms, PHR http://www.phptr.com/articles/article.asp?p=25260&rl=1Google ScholarGoogle Scholar
  2. MOSS Memory Management Simulator, http://www.ontko.com/moss/memory/memory.exeGoogle ScholarGoogle Scholar
  3. R. Ontko. MOSS Memory Management Simulator User Guide, http://www.ontko.com/moss/memory/user_guide.htmlGoogle ScholarGoogle Scholar
  4. A. Tanenbaum. Modern Operating Systems, Prentice Hall, 2nd edition, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. A. Silberchatz, P. Galvin, and P. Gagne. Operating Systems Concepts with Java, 7th Edition, J. Wiley & Sons, Inc., 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. A. V. Aho, P. J. Denning, J. D. Ullman. Principles of Optimal Page Replacement. J. ACM, Jan. 1971, 18(1):80--93. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Y. Smaragdakis. General Adaptive Re-placement Policies. In Proc. of 4th Int. Sym-posium on Memory Management, Vancouver, Canada, 2004, pp. 108--119. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. G. Glass, and P. Cao. Adaptive Page Re-placement Based on Memory Reference Be-havior. In Proc. ACM SIGMETRICS Int. Conf. on Measurement and Modeling of Computer Systems. Seattle, U.S.A. 1997, pp. 115--126. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. M. Ujaldon, S. Sharma, and J. Saltz. Page Replacement Using Marginal Loss Functions. In Proc. of ACM/IEEE Conf. on Supercomputting. San Jose, U.S.A. 1997. pp. 1--12. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. C. Waldspurger. Memory Resource Man-agement in VMware ESX Server. ACM SI-GOPS Operating Systems Review. Winter 2002, 36 (SI):181--194. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Y. Joo et al. Demand Paging for One-NAND#8482; Flash eXecute-in-place. In Proc. of 4th Int. Conf. on Hardware/software codesign and system synthesis. Seoul, Korea, 2006, pp. 229--234. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Teaching page replacement algorithms with a Java-based VM simulator

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      WCCCE '09: Proceedings of the 14th Western Canadian Conference on Computing Education
      May 2009
      137 pages
      ISBN:9781605584157
      DOI:10.1145/1536274

      Copyright © 2009 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 1 May 2009

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      Overall Acceptance Rate78of117submissions,67%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader