Memory Management Paper

In: Computers and Technology

Submitted By eddie2k13
Words 643
Pages 3
Memory Management Paper Edward Mellon POS355 6/10/13 BHUPINDER SINGH

There are several policies associated with memory management, and in order for it to function properly, there are several requirements that need to be met. First is relocation. When a source code program is translated into object code by a translator or interpreter or assembler, it does not know by itself where the code will be loaded when the program is run. It may actually occupy a different area of memory each time the program is run. A program can be swept in and out of memory; it may occupy different address locations at different times. This is because the translator cannot assign absolute physical addresses to instructions and data values in programs, but once the program is run, the CPU and OS must be able to reference those physical addresses. With relocation, the logical referenced addresses are converted to a physical address so that the code and values can be seen. Next is protection. Program access space includes process control information, program code, data segment and stack or heap space. The operating system must protect the address space of a process from that of another process. It must be able to block unauthorized access from these other processes. No process should be able to access kernel code or kernel space itself. This protection is provided by the hardware and not the operating system since this is something that needs to be done outside of the operating system. When the address space is stored contiguously, this protection is much easier since it can be seen as a linear sequence of addresses, but…...

Similar Documents

Memory Management Paper

...Memory Management Paper JJ Barnes POS/355 Version 9 April 15, 2013 John Buono Memory Management Paper As any person utilizes a computer system, what appears to be a simple click-and-point user interface is actually a symphony of data management being controlled by both memory and process management. At their simplest form, the data manager is how the computer system stores and recalls date collected from the user and the process manager controls the processes and systematic applications with the data. This paper will further define both of these managers and discuss their functionality and purpose. Without these two important key pieces, the computing of today would be impossible. Before a process manager can be discussed, the memory manager should be explained. The computers today are multitaskers. They are constantly running multiple processes at any given time. Stallings (2102) stated “Effective memory management is vital in a multiprogramming system” (306). What does the memory manager do with the data that has been given to it? The best way to answer this question would be to simplify the data. Data, in the form that this paper is referring to, is all information used by a computer in order to store, reuse, or even compute. The memory manager must take the data and figure out a way to store it in a way that it will not be overwritten and in a secure spot where the data can be retrieved when needed. The memory manager uses various mechanisms that......

Words: 778 - Pages: 4

Memory Management

...Memory management is basically managing computer memory. The memory needs to provide ways to allocate portions of the memory for programs to access which is very important for the computer. Memory management requirements, consists of relocating, protection, sharing, and the logical and physical organization of programs or devices that the computer uses. The multiprogramming system memory is separated in to smaller processes to receive multiple processes. Memory management is important for a multiprogramming system. If the processor will only allow one program to process, then the rest of the programs will be waiting. So to utilize the processor speed and time, the memory will need to allocate a reasonable supply of readiness from the processor. So for the first requirement of memory management is relocation. Basically, the “end-user” will not know where the program will be placed in the memory. When the “end-user” opens a program, the program might be swapped to a disk and returned to the main memory but in a different location. The next requirement would be protection. When a program is being executed, the processor will allow the current program to be executed without the other programs interfering and would need to wait for permission to be executed. The protection requirement needs to be satisfied b the processor itself and not the operating system. The third requirement in memory management is sharing. Sharing allows several processes to access the same portion of......

Words: 376 - Pages: 2

Memory Management Paper Pos/355

...Memory Management Paper POS/355 February 16, 2013 Bhupinder Singh Memory Management Paper Memory management is a key function of the operating system. Without proper memory management it can slow the running of the operating systems and can limit the number of tasks the system is able to do at the same time. The memory management is divided into two parts Multi-Programming and Uniprogramming system. One part would be the uniprogramming, it process things one at a time. Some users only do things one at a time more for personal computers, and then there is the multi- programming, which several programs can run at the same time. The operating system has the capability of causing an interruption after a specified time interval. The multiprogramming is a rudimentary form of parallel processing, so the operating system will allow each program for a given length of time. So what the memory management does is of the act of handling the computer’s operating systems memory space. In order for the operating system to run efficiently the memory management part has to share and store properly. It is a critical component to the operating system to run efficiently. There are requirements to the memory management. The mechanism and policies are in place to be required for the use of the operating system. These requirements are Protection, Sharing, Relocation, Physical Organization, and Logical Organization. Protection is one, it must be provided by...

Words: 511 - Pages: 3

Memory Management

...Memory Management Paper Scott Wells University of Phoenix Memory Management Paper There are six memory management requirements that will discussed in this paper. Those requirements are relocation, protection, sharing, logical organization, and physical organization. Memory management is the act of managing the computer’s memory, this basically means the steps necessary to provide ways of allocating portions of memory to programs at their request and feeing it up for reuse when no longer needed (Stallings, 2012). This management system is critical to the computer system. In order for memory management to multi-task it must utilize and deal with the six requirements of memory management. The first one of these requirements utilized is the relocation of memory. Relocation of memory pertains to programs that are swapped from the memory during different stages of processing (Stallings, 2012). In the virtual memory programs must be able to switch and reside in different parts of memory at different times. Once memory has been swapped out it will not always be replaced back into the same part of the memory. Memory management should be able to relocate programs in memory to handle memory references so they always relocate to the right location of the memory. In order for this process of memory swapping to work right there must be some type of address translation. This leads to the next requirement of memory management which is protection. Protection refers to......

Words: 663 - Pages: 3

Memory Management

...Memory management requirements can be broken up into five different sections: Relocation, Protection, Sharing, Local organization, and Physical organization. Many online resources confirm these exact requirements and seem to have the same information published so it is difficult to find something unique. It will be necessary to use information from the referenced textbook to explain memory management requirements. In a multiprogramming system, relocation is the act of moving a process into different areas of memory from which it began. To maximize efficiency, processes move into and out of main memory. Relocation therefore is essential for moving the process into available memory while keeping the memory reference information up to date. Protection of memory is best understood as preventing unwanted access to processes resident in memory and allowing authorized access only to the level allowed when permission is granted. It is important to understand that the physical processor and not the operating system is responsible for protecting memory since the operating system cannot always be scanning for memory reference violations (Stallings, 2012). Sharing capabilities are essential to reduce the amount of wasted or duplicated data in memory. Stallings stated, “The memory management system must therefore allow controlled access to shared areas of memory without compromising essential protection” (p. 309). In addition, shared memory is one of the fastest methods used for......

Words: 545 - Pages: 3

Memory Management

...Memory Management Requirements Memory Management In this paper I will discuss the memory management requirements for Operating Systems. The memory management requirements in operating systems are relocation, sharing, protection logical organization, and physical organization. Memory Management Requirements Main memory is an important part in a computer system because the operating system and many user applications must input into the main memory before the execution stage begins. The effectiveness of memory management affects the efficiency of the computer system. Efficient amount of memory must be obtainable to reduce the quantity of processor idle time while the computer’s devices are arranging to react. Effect memory management consists of a series of important requirements, which are relocation, protection, sharing, logical and physical organization. Relocation Relocation is a basic requirement of memory management. For simplification purposes let us assume that the process image occupies a contiguous region of main memory. The operating system need to know the location of: Process control information; Execution stack; Entry point to begin the execution of a program. The ‘Processor’ must deal with memory references within the program. The ‘Branch instructions’ contain an address to reference the instruction to be executed next. Then the ‘Data reference instructions’ contain the address of the byte or word of data referenced. Sharing Any protection......

Words: 678 - Pages: 3

Memory Management

...Memory Management Vicki Zafke POS/355 June 02, 2014 Melba Beavers Memory Management A critically important component of a computer’s operating system is the memory. Memory management is the act of monitoring and handling the memory. An operating systems memory management includes tasks such as relocation, protection, sharing, and organization. Although there are several basic factors in regards to memory management, some operating systems have distinguishing features that set them apart from one another. There are two main tasks that an operating system must achieve during the memory management cycle. Each process has its own memory space. For example, in the 32-bit Windows operating system each process is allotted up to 4 gigabytes of memory in the virtual address space. The first task is to ensure that the process does not run into another processes space and that another process does not run into it. The second task is in order for the process to run effectively, the different types of memory must be used properly. Virtual memory is a common concept for operating systems. “The Windows virtual memory manager controls how memory is allocated and how paging is performed.”(Stallings, 2012, p. 386). Virtual memory is separated into two parts, one for the process and one for the system. For example, the 4 gigabytes in the 32-bit Windows operating system is divided into two so that 2 gigabytes is reserved for the process and 2 gigabytes is reserved for the......

Words: 448 - Pages: 2

Memory Management

...Windows and Linux- Memory Management Marlana Muzny POS/355 May 13, 2013 Joe Fischer Windows and Linux- Memory Management Memory management is the process that the operating system takes to manage the computers processes and memory. This means that the operating system has to figure out what sections of the memory are free and are being used at the current time allocating and reallocating as needed. Memory management is extremely important in how a computer operates. In this paper, we will compare the new Windows 8 to the Linux operating system and describe the differences in the memory management. Windows 8, it is the newest product in operating systems for Microsoft. With enhancements from the previous version, Windows 8 makes better use of the memory management than the previous version Windows 7. In Windows 7, Microsoft started making changes to the operating system when it came to memory management; however, fell short compared to what was already being done in Linux operating system. With the previous versions, most of the memory management occurred upon login. This slowed the processor down taking up all the resources at one time using the system memory. To address this issue and correct it in Windows 8, Microsoft implemented a start on demand model. What this means is that processes that are needed are delayed until the process is needed verses having all the processes start automatically when the computer is started. This makes more......

Words: 876 - Pages: 4

Memory Management

...Memory Management Requirements Memory management requirement is important to operating systems. The memory management function is to manage the computer’s primary memory storage. Since all new computers and laptops run multiple programs at any one time, it is imperative to manage what programs can run in the main memory or RAM and which programs can be swapped to secondary memory storage. Using memory management techniques and virtual memory systems process can efficiently manage an operating system. The quality of these techniques or systems can have an extensive effect on the overall system performance of the operating system. Memory management methods such as single allocation, partitioned allocation, paged memory management, and segmented memory management are processes that are used to determine how memory is distributed through different processes. This process decides which program gets a space of the main memory, when the program can get the space, and how much memory space is available for each program. Single contiguous allocation is the easiest memory management method. The entire computer’s memory, except for the operating systems reserved memory, is available to a single application. Any operating system that uses single contiguous allocation can still multi-task by swapping the contents of memory to switch among applications. A partitioned allocation splits the main memory into multiple main memory partitions. In addition, each partition may contain......

Words: 619 - Pages: 3

Memory Management

...computers need system memory to operate and require a method of management to insure the proper handling of the data stored within it. Memory management involves relocation, protection, sharing, logical organization, and physical organization of the data. Without proper memory management page faults would climb out of control and data could become corrupted or lost. As a process waits for its turn with the CPU the operating system may move the process out of the main system memory into the page file and back again into main memory. When it is moved around it may not be in the same memory address as it was before it was relocated. This is where memory management comes into play as it helps the operating system translates the memory references found in the processes code to the physical address of the program in the main system memory. Processes also need the protection from other processes for interfering with its operation. In this case process cannot access or reference memory addresses without permission. This is handled by the computers processor as the operate system cannot predict every memory reference that all running programs will make (Stallings, 2009). Sharing of system memory is another technique used by memory management. If you have many processes accessing the same program, allowing all processes to access the same memory address instead of requiring each process to have its own memory space will free up system memory. The part where memory management comes......

Words: 747 - Pages: 3

Memory Management

...Systems Comparison Paper. Barbara Poe Pos 355 Introduction to Operating Systems 11-10-14 William Davis Unix®, Linux®, Mac OS®, Windows® Operating Systems Comparison Paper. Memory management is the act of managing computer memory. The essential requirement of memory management is to provide ways to dynamically allocate portions of memory to programs at their request, and free it for reuse when no longer needed. The memory management system is one of the important parts of the operating system. Its basic function is to manage the memory hierarchy of RAM and secondary memory devices. There is always a need of more memory than physical memory. Memory management allows this to be done through the concept of virtual memory. Virtual memory can be many times larger than the physical memory. The most important task of memory management includes allocation and dealloacation of memory to the processes running on the system. Other requirements of memory management are relocation, protection, sharing, logical organization, and physical organization Relocation Stallings states, when an active process is swapped out of main memory to disk it would be quite limiting to specify that when it is next swapped back in, it must be placed in the same main memory region as before. Instead, we may need to relocate the process to a different area of memory (Stallings, 2015). Protection The main purpose of memory protection is to prevent a process from accessing memory that has not......

Words: 1317 - Pages: 6

Memory Management

...Memory Management Paper Gene Cotton POS/355 Terance Carlson 10/06/2014 The act of managing computer memory is known as memory management. This system is also known for allocating memory for certain programs as requested. Managing the memory properly is vital to any CPU system. If the there isn’t enough memory to run a program or application then the CPU may freeze or fail. There are two types of memory allocations systems that are commonly used Virtual Memory and Garbage Collection. Virtual Memory systems separate memory from physical addresses to distinguish between the amounts of RAM used efficiently through disk swapping. Basically the quality of the virtual manager can positively or negatively impact the overall CPU performance. The Garbage collection system is a distribution and or redistribution of the computer memory cores for a program or application. Usually this is maintained and managed at the programming level. The downside to Garbage collection is it may take up a large amount of total processing time and this also can affect the outcome of CPU performance. With memory management systems on multi-tasking operating systems the virtual memory programs must be able to be launched from different parts of the memory at any given time. So relocation is very important and is a requirement. The reason behind this is that when a program is closed or swapped back into memory it may not always be transitioned back to same place it came from. Most virtual......

Words: 400 - Pages: 2

Memory Management Paper

...Memory Management Memory management is an important core part to any operating system. The basic function is to manage the RAM and hard disks on a computer. The tasks include allocating the memory and processes taking care of logistics and implementation of the virtual memory. It does this by utilizing the hard disks memory as more RAM. Optimization of the memory affects the overall performance and speed of the computer system. Windows uses an executive component known as Virtual Memory Manager to manage memory. Windows moves pages from disk to main memory known as prefetching and pagefiles the files that do not fit in the main memory. Windows Xp supports 16 pagefiles on its 32 bit virtual address space along with 4 GB of virtual address space. There is a 64 bit edition that has 64 bit address space. Windows user space is different than the system space, processes can only access user space whereas; the virtual memory manager stores page tables and other data in the system space. Windows dedicates 2 GB for the user space and 2 GB for system space with 4 KB pages. Windows on a positive note uses NTFS, but it is old and yet stable. The downside to this is that it is an outdated file system with an inability to organize files and it requires the user to defragment the OS to fix. Eventually NTFS moves files into random places on the hard drive through defragmentation which will begin to slow down the computer. Linux memory manager supports 32- 64 bit addresses along with......

Words: 641 - Pages: 3

Memory Management

...Memory Management Requirements Kari Amenhauser POS/355 May 11, 2015 Karen Clark Memory Management Memory management is important when working with computers. Memory management is where the computer divides memory to accommodate multiple processes. Memory needs to be redistributed to help with the processor so that programs can run smoother and faster. The requirements for memory management are, relocation, protection, sharing, logical organization, and physical organization. First, there is relocation, when a program is running, it may be swapped around to different locations, such as being moved over to the disk and then returned to the main memory. From there it can run quickly while other processes can be going on. Next is protection, processes are not allowed to reference memory locations without permission. This helps keep programs and processes safe if they are sensitive and should not be accessed by an unauthorized user. Memory protection must be fulfilled by the processor not the operating system. Sharing allows multiple processes access to the same portion of memory. In other words, it is better to let each process access the same copy of the program, rather than each process have its’ own version. Which would make the processor speeds slow down and the computer itself would run a lot slower. With logical organization, all programs are written in modules. Modules can be written by itself and complied by itself. Meaning if you write a program, you can......

Words: 446 - Pages: 2

The Memory Paper

...Memory Process Paper Kim Duncan Psychology 550 February 11, 2012 Susan Leonard, PhD Memory Process Memory is the capacity to encode, store and recall information. Memory consists of the procedures that are used to obtain, keep, recall and retrieve information. Encoding, storage, and retrieval are the three major processes involved in memory. In this paper, the author will address short term memory, long term memory, and working memory, as well as encoding and retrieval in the memory process. The author will also describe the selected test and analyze the result of the memory test and evaluate variables associated with encoding information and ease of retrieval. Working memory, short-term memory, and long-term memory Working memory is the capacity to actively store information in the mind required to do difficult tasks such as comprehension, learning, and reasoning. According to Terry (2009) working memory can be defined as memory that is operational and can be recall at any given time. There are two distinct phases of storage, short-term memory and long-term memory. Short-term memory is the capability to recall information over a short period. Information is stored for a limited time in short-term memory before transferring to long-term memory. In other others, when information is processed in short-term memory, it then moves the information to long-term memory. Forgetting usually occurs with short-term memory, if information is not moved to long-term memory. ...

Words: 1229 - Pages: 5