Top-Rated Free Essay
Preview

Memory Management

Good Essays
1097 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Memory Management
Intro to Operating Systems
POS
Requirements of Memory Management
Memory Management is the most highly used resource on your computer; different operating systems all have a different approach on how to use memory and common factors when using memory. Every process needs it to process a code or function. More so memory management allow the operating system to reserve parts of memory to programs when they are requested and complete as many processes into memory. Memory Management has gotten more complicated throughout the years with advancement of operating systems and hardware to be able to provide faster computing of processes and applications that demand a lot of memory along with speed and also the improvement of just how the memory is allocated. Operating Systems utilized the ability use memory located on RAM chips, cache chips, and including the hard drive with the use of page file or sometimes called Swap files. Single Partition mono programming was an earlier example of memory management utilized by MS-DOS where only a single program would be running and keep its process in memory, and the other portion of memory reserved for the operating system and device drivers. Of course with advancement of faster hardware and the eventual progression of technology having just one program running at a time was efficient or fast even though it was stable so another method of management was adopted. Multiprogramming is the process run multiple programs simultaneously, and swaps between processes as the user chooses. The Major reason programs would be loaded to memory when they were in use for the simple fact memory is faster and located closer to the CPU and performed dramatically faster than the hard drive trying to perform the process of memory management. Most processes all go according to time-blocks where every process waits in memory for their turn to occur to process their request or process, more programs in line in memory the more CPU utilization is occurring. There are different ways to position code and address memory such as absolute code where addresses are hard coded into the program then there is position dependent code where they are addressed to their relative location. Another method is dynamically relocate-table code where the use of a compiler to represent locations that offset locations where absolute memory exists. Another different approach of memory management is logical addressing which will translate any address reference from logical to physical address, and the use of a memory management unit performs this real-time. Another key to know about processes is the fact they always grow so over time process slowly get bigger and bigger so its always a good practice to allocate extra memory for all processes, if a processes become to big only options are to swap to a bigger hole or swap it on the disk or kill the process taking up the memory slowing down the CPU looking for additional space to grow. Of course with growing process, segmentation is taken to account in a variation of variable partition multiprogramming by breaking up the process into smaller chunks so at least the holes it can fill can be smaller and found throughout the system to fulfill its requirements. The memory management unit has to handle the segments by handling the segment registers associated with code, data, stack, and heaps which are still used in today’s 64-bit systems. Allocation algorithms is how memory management chooses spots to fit the segment for processes and code, different approaches such as going with first come first serve or what is the next one or even the best fit or just a quick fit but drawback is find other places to merge can be difficult. Page based virtual memory is a technique which allows the process to feel like it has entire address space on the processor and allows memory allocation to be non contiguous and has no external fragment problems and also lets us keep part of process were using in memory and the rest on the disk. On top of managing logical and physical addresses, memory management also provides protection and statistics, which include valid/invalid if there is a frame mapped to a location. Read-only if the process is allowed to write on the page, execute to process a code on a page including dirty, and accessed page file locations. With page virtual memory process can get available discontinuous pages as they need additional memory. The table for a process can give the illusion of continuity by making the virtual address space continuous, there are processes that bypass memory management such as DMA (direct memory access) which directly services devices over the CPU and MMU to provide service when the CPU is being utilized for faster service to handle requests and is built into the operating system also to provide this function.
Memory management has lots of features and all different operating systems take approaches on what is best for their code to utilize memory processes. With any computer system there is main memory and secondary memory, such physical memory that is permanent to a computer is RAM which comes in various types such as regular RAM (random access memory), SRAM (static random access memory), DRAM (dynamic access memory ram) and includes a memory controller to operate each type of memory. Of course main memory is faster and temporary storage and secondary memory is slower but more reliable. Another type of physical memory being utilized more and more is cache memory, which is located close to the CPU and allows the CPU to execute processes faster, which is utilized by the operating systems to perform functions with a high priority. Memory management usually either optimizes look up time better or how to better use space to allocate memory addresses. Understanding memory management is key when administering different operating systems with different methods on how they allocate memory and knowing common issues that might arrive depending on the algorithm they have to utilize since every system has its pro’s and con’s and can better help when choosing an operating system depending on the type of application purposes it will be used for.

WORK CITED
Wilson, P.R.; Johnstone, M.S.; Neely, M.; Boles, D. (1995).”Dynamic Storage Allocation: A Survey and Critical Review” Memory Management: International Workshop, Iwmm '95, Kinross, Uk, September 27–29, 1995: Proceedings (Springer). ISBN 978-3-540-60368. Retrieved 2008-01-06.
Berger, E.D.; Zorn, B.G.; McKinley, K.S. (2002). “Reconsidering custom memory allocation”. Proceedings of the 17th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications. ACM Press New York, NY, USA. pp. 1–12.

Cited: Wilson, P.R.; Johnstone, M.S.; Neely, M.; Boles, D. (1995).”Dynamic Storage Allocation: A Survey and Critical Review” Memory Management: International Workshop, Iwmm '95, Kinross, Uk, September 27–29, 1995: Proceedings (Springer). ISBN 978-3-540-60368. Retrieved 2008-01-06. Berger, E.D.; Zorn, B.G.; McKinley, K.S. (2002). “Reconsidering custom memory allocation”. Proceedings of the 17th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications. ACM Press New York, NY, USA. pp. 1–12.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    POS355 Week 1 Individual

    • 574 Words
    • 2 Pages

    While in the hardware, memory management includes elements that store data such as random access memory chips, and memory caches. In the operating system, memory management involves the distribution of precise memory blocks to programs as the user requests adjustments. While at the application and program level, memory management ensures the availability of sufficient memory for the objects and data structures at all times for each program that is running.…

    • 574 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Memory management is an important characteristic of an operating system. Main memory is divided into two parts one for resident programs, and the other for the program currently in use. The user part must be subdivided to accommodate multiple processes (Stallings, 2012). When a few processes are in the memory then much of the time all of the processes will have to wait for input /output and the processor will be idle. According to Stallings (2012),. The requirements that memory management is supposed to satisfy are Relocation, Protection, Sharing, Logical organization, and Physical…

    • 573 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions. Pointer arithmetic will be used to access and sort class objects according to criteria explained in the lab.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Good Essays

    BTEC ICT Unit 2 P1

    • 944 Words
    • 4 Pages

    There are two types of memory which we need and use on our computers one of them is RAM and the other one is cache.…

    • 944 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Random-access-memory (RAM) is a very important specification of the computer. By ensuring you have enough RAM, the faster your system processes, you can store more data, and allow more programs to run at the same time. As the OS allows the different task to complete for the processor, the RAM is used as temp storage, when the processor no longer needs them the OS clears it. Virtual memory is the hard drive space borrowed to use if there isn’t enough…

    • 580 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Internal Memory – The interior memory of a computer is called RAM. It is mainly used to hold programmes and pages that are open or any documents and graphics that the user is viewing. This is useful for creating graphics images because once the programme or document is in the RAM then it works at a higher speed which is good because users are able to complete their work at a faster speed and don’t have to experience any problems.…

    • 732 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Revision Gcse Ict

    • 1310 Words
    • 6 Pages

    * Memory: RAM (random access memory), the higher the RAM the more programs you can access and open at once.…

    • 1310 Words
    • 6 Pages
    Good Essays
  • Better Essays

    Week 5 Pos 355

    • 2010 Words
    • 9 Pages

    Memory management is an important part of an operating. The UNIX/Linux OS use numerous intricate algorithms for memory management which will permit the system to…

    • 2010 Words
    • 9 Pages
    Better Essays
  • Powerful Essays

    “The Persistence of Memory,” by Salvador Dali, “A Trip to the Moon,” by George Méliès, and “The Great Day of His Wrath” by John Martin…

    • 1949 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    For any operating system to function properly, one of the vital tasks it must be able to do is manage memory. When a program runs on a computer, it first must be loaded into memory before it can execute. There are five different requirements memory management must satisfy in order to execute the program so it runs without errors or corruption. These requirements are relocation, protection, sharing, logical organization, and physical organization.…

    • 730 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Memory Work

    • 410 Words
    • 2 Pages

    1. Bedlam noun pejorative terms for an insane asylum; a state ofextreme confusion and disorder…

    • 410 Words
    • 2 Pages
    Good Essays
  • Good Essays

    In the assigned narratives food is portrayed as scarce and something to be appreciated and treasured, while hunger is portrayed as inevitable. In the Book The Call of Memory: Learning About the Holocaust Through Narrative: An Anthology, edited by Shawn, Goldfrad, & Younglove, eds., many stories from different people’s experience give us an insight of how they were affected by food and hunger during their time in the Ghettos.…

    • 1032 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Memory Strategies

    • 275 Words
    • 2 Pages

    The three memory techniques that work best with me are jingles, words, and pegging. I recall information through jingles to be more effective. I memorized telephone numbers of my faculty with a jingle I made up. Their numbers are the same but their extensions are different, so I recalled the information easier. The least effective to me was the story lines because if I am able to create a story I will end up going off track and confuse myself. I learn more from a jingle than words or pegging. As long as the jingle is catchy I am able to retain any information like lyrics from the gold fish commercial; “The snack that smiles back Goldfish”. Every time I come across any goldfish I think about the song. Plus as a visual learner I can connect one thing to another. Using the words memory technique I can also retain information. I used words before this exercise to remember order of operations with PEMDAS; please excuse my dear aunt Sallie, for Parentheses, Exponents, Multiply, Divide, Add and subtract. Using the pegging technique for history is a good way for me to hold on to information as well. In order for me to understand what events happen during a specific decade I use different color note cards to separate the events. I try to make connections through colors; for instincts all the events I am required to learn through the 1970s I use a green note cards and blue note cards for the 80s and red cards for the 90s. In the future I will practice the VCR3 memory technique because of the visualization and concentration.…

    • 275 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Understanding Memory

    • 501 Words
    • 2 Pages

    Memory is a complex and varied phenomenon. Ideas about what constitutes memory and how it works can be traced back to ancient times. Plato compared memory to an aviary, and in some respects his ideas have remained little changed into the modern era.…

    • 501 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Memory with its parent company in the US is currently experiencing a poor record of meeting…

    • 6643 Words
    • 42 Pages
    Powerful Essays