1 / 23

Memory Management I

Memory Management I. Written Assignment 2 due Systems Assignment 1 returned Systems Assignment 2 due next time. Memory Management I. Memory Management I. III. Memory Management II. manage the scarce resource of memory. Memory Management I. all previous MMS required.

burian
Download Presentation

Memory Management I

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Memory Management I Written Assignment 2 due Systems Assignment 1 returned Systems Assignment 2 due next time

  2. Memory Management I

  3. Memory Management I III. Memory Management II • manage the scarce resource of memory

  4. Memory Management I all previous MMS required • - entire program in RAM • - program in contiguous RAM • - entire program to remain in RAM

  5. Memory Management I A. Paged memory allocation scheme • concept which is part of all current MMS

  6. Memory Management I A. Paged memory allocation scheme • removes the requirement that entire program must be in contiguous RAM

  7. Memory Management I A. Paged memory allocation scheme • 1. Programs (jobs) are divided into equal-size pages

  8. Memory Management I OS Program Disc storage RAM memory

  9. Memory Management I 2. Tradeoffs • a. adv - doesn’t require contiguous RAMefficient memory usage

  10. Memory Management I 2. Tradeoffs • b. dis - additional OS work = system overhead

  11. Memory Management I 2. Tradeoffs • OS needs a PMTfig 3.1

  12. Memory Management I 3. OS implementation a. Job Table b. Page Map Table c. Memory Map Table d. address resolution

  13. another classic company

  14. Memory Management I B. Demand Paging MMS • first virtual memory MMS

  15. Memory Management I B. Demand Paging MMS • 1. only those “necessary” pages are loaded for execution

  16. Memory Management I B. Demand Paging MMS • viable scheme due to “locality of reference”

  17. Memory Management I 2. Tradeoffs • a. adv - virtual memory

  18. Memory Management I 2. Tradeoffs • b. dis - additional OS work = system overhead • ex: thrashing

  19. Memory Management I 3. OS implementation a. expanded PMT

  20. Systems Assignment 1 “Bare Bones Code” Set fso = CreateObject("Scripting.FileSystemObject") Set drv = fso.GetDrive(“C:”) Wscript.Echo “Total Size = “ & drv.TotalSize & vbCrLf & “Free Space = “ & drv.FreeSpace “Professional Programming Practice”

  21. Systems Assignment 1 ' Gary Locklair ' CSC350 - Systems Assignment #1 ' Windows Scripting Host ' VBscript ' ' Script will determine and display Total Size and Free Space ' available on drive C ' ' explicitly declare varibles with Dim ' Dim fso, drv, msg, drvPath ' ' hardcode drive path ' drvPath = "C:\" ' ' fso will be the object instance of the FileSystemObject class ' Scripting is the "type library"; CreateObject is a method ' Set fso = CreateObject("Scripting.FileSystemObject") ' ' note the use of object.method syntax ' Set drv = fso.GetDrive(fso.GetDriveName(drvPath))

  22. Systems Assignment 1 ' ' build up msg string for output ' msg = "Drive " & UCase(drvPath) & " - " msg = msg & drv.VolumeName & " " ' ' Note: formatting not necessary for this assignment ' msg = msg & "Total Space: " & FormatNumber(drv.TotalSize / 1024, 0) msg = msg & " KB" & " " msg = msg & "Free Space: " & FormatNumber(drv.FreeSpace / 1024, 0) msg = msg & " KB" & " " ' ' Note: output will appear in two separate, successive windows ' Wscript.echo msg Wscript.echo "End of Output"

  23. Zeb goes ice fishing …

More Related