Premium Essay

Memory Management Differences

In: Computers and Technology

Submitted By bigr95
Words 560
Pages 3
Memory Management Differences
Randall Anderson
POS/355
July-27, 2015
Alicia Pearlman

Memory Management Differences
Before anyone can begin to understand the differences between Windows and Linux memory management, one must understand memory management and its requirements in today’s systems. These requirements play a very important part in a computers performance and speed. Both operating systems share some similar characteristics as to how their memory management works, but also differ as to their complexity. Windows is a more complex system where Linux is more simplistic. Stallings states that “Linux shares UNIX characteristics but has its own features and is very complex” (Stallings, 2012,). The architecture of Linux’s virtual memory is one of a three level structure. Page 1 is equivalent to one page. Entries are directed to the page directory and the page must be in the main memory to be active (Stallings, 2012). The middle page directory can be as large as multiple pages. Each entry points to one page of the table. The last is what is known as the page table and it refers to one virtual page of the process. The structure was designed for a 64 bit Alpha processor and is independent.
What is known as the buddy system is used to help Linux increase it efficiency. This system works by splitting and merging pages which are allocated and deallocated in the main memory (Stallings, 2012). Linux uses a page replacement algorithm which deals with the simple clock that ages each Page. Every time a page is accessed, the variable of age increases. An old page is replaced when it has not been used in a long time. The kernel memory allocation that Linux uses manages the main memory page frames this allocates and deallocates frames for the memory management. Linux uses a slab allocation for smaller chunks of memory smaller than a page which makes the system more…...

Similar Documents

Premium Essay

The Differences in Memory Management Between Windows® and Linux®.

...Paper 1 POS/355 Option 2: The Differences in Memory Management between Windows® and Linux®. Linux and Windows are both operating systems for the common home PC. Each of them offers positive benefits and negative detriments. Some people try to claim that one is better than the other. But as an active user of Linux for over half a decade, I can honestly say that both are superior in their respective strengths. I would never attempt to do any type of visual work like video editing or photo editing that requires anything in depth on a Linux machine. The native programs are just not as good as anything that Adobe offers in the Windows world. However if I am surfing the net checking out random sites that might be questionable in nature, I would not dare so unless I was on my Linux partition. In reference to memory managements differences between Windows and Linux; We have to first start with the base. Memory can be viewed in both a RAM basis and memory as in storage and a base for operating system. Windows has been locked into a dated filesystem for the basis of their operating system. This file system is called NTFS. NTFS positive is that it is old and stable. Its positives are know and it’s negatives are so well know that they come as no surprise to end users. Sadly this outdated file system technology requires the end user to periodically defragment the operating system to combat NTFS’s gross lack of the ability to organize files. Over time NTFS moves......

Words: 474 - Pages: 2

Free Essay

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

Free Essay

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

Free Essay

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

Premium Essay

Memory Management

...home PC. Each of them offers positive benefits and negative detriments. Some people try to claim that one is better than the other. But as an active user of Linux for over half a decade, I can honestly say that both are superior in their respective strengths. I would never attempt to do any type of visual work like video editing or photo editing that requires anything in depth on a Linux machine. The native programs are just not as good as anything that Adobe offers in the Windows world. However if I am surfing the net checking out random sites that might be questionable in nature, I would not dare so unless I was on my Linux partition. In reference to memory managements differences between Windows and Linux; We have to first start with the base. Memory can be viewed in both a RAM basis and memory as in storage and a base for operating system. Windows has been locked into a dated filesystem for the basis of their operating system. This file system is called NTFS. NTFS positive is that it is old and stable. Its positives are know and it’s negatives are so well know that they come as no surprise to end users. Sadly this outdated file system technology requires the end user to periodically defragment the operating system to combat NTFS’s gross lack of the ability to organize files. Over time NTFS moves files into so many random places on the hard drive that it starts to slow down due to fragmentation of files. Linux on the other hand......

Words: 337 - Pages: 2

Free Essay

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

Free Essay

Memory Management

...Memory Management March 7, 2014 Memory Management Memory is one of the basic elements on a computer system. The memory allows the user to store data and programs. Memory management is the controlling, coordination and management of the computer memory (). The different memory types a computer has are a cache, main memory, and a disk used for virtual memory. Managing this memory will allow the user to access information faster. The memory management system is on the most important parts in the operating system. In this essay will be discussing the differences in memory management between Windows and Linux base operating system. Windows has implemented several technologies, for both resource allocation and security("Windows Memory Management", 2008). One of these technologies is Dynamic Allocation Space Layout Randomization, which all dynamically adjusts according to operation requirements. Windows uses virtual address space to make that could be bigger or smaller than the physical memory on the computer. Windows memory manager has two first-in-rank responsibilities("Windows Memory Management", 2008). The first is to translate, or map, a process’s virtual address space into physical memory so that when a thread is running in the context of that process reads or writes to the virtual address space, the correct physical address is referenced ("Windows Memory Management", 2008). This minimizes hackers’ threats to the computer system. Second on is paging some of......

Words: 616 - Pages: 3

Premium Essay

Differences Between Memory Management Between Windows and Linux Pos/355

...Differences Between memory management Between Windows and Linux Gerard T Doris POS/355 03-21-14 New Orleans Differences Between memory management Between Windows and Linux In this paper I will discuss the difference between Windows and Linux memory management. Many business and homes use windows and Linux operating systems to conduct everyday duties. Most consumers never heard of Linux. Linux operating systems is not known for the flashness that Windows have. In my opinion if you want a stable system that you are not looking to do photo, video editing or things in that nature I would use Linux. Both operating systems use Ram and memory storage to help execute the functions of the computer. Windows uses a file system called New Technology File System ( NTFS). NTFS is a stable file system that Windows uses. It replaced the old FAT32 file system. According to Microsoft 2014 The capability to recover from some disk-related errors automatically, which FAT32 can not. Improved support for larger hard disks. Better security because you can use permissions and encryption to restrict access to specific files to approved users. The only thing I have a problem with, is have to defragment the OS. The reason you have to defrag is because NTFS tends to put files in random places. Windows management system is called Pagefile. Pagefile take objects that are less frequently used and put them in a allocated location on the hard drive. This frees up RAM and allows the......

Words: 442 - Pages: 2

Free Essay

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

Free Essay

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

Free Essay

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

Free Essay

Memory Management

...Memory Management Amanda Dyer POS/355 August 28, 2014 August Smith Memory Management Windows and Linux are two popular operating systems used in today’s technology age. Windows is most commonly used as a desktop environment for beginners and has advanced into a well-developed operating system. Linux isn’t every users first choice as an operating system, but has become more and more popular over the past years. Linux is harder to manage than Windows, but comes with a great deal a configuration choices, as well as, flexibility. Both operating systems are similar in areas and offer countless benefits. However, with similarities come differences. One of the foremost differences between Windows and Linux is their memory management. What is memory management? According to Tutorialspoint (2014), memory management is the functionality of an operating system, which handles or manages primary memory. The memory structure affects the overall functionality and speed of the system. Therefore, it is one of the most vital parts of an operating system. Every memory location is tracked, whether free or allocated. The memory management system provides features such as address space, memory mapping, paging, shared virtual memory, fair physical memory allocation, and protection. Windows can access up to 4GB of physical memory on a 32bit x86 system. Paging on Windows allows for the use of a logical memory address vice the physical address. The logical address is......

Words: 605 - Pages: 3

Free Essay

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

Free Essay

Memory Management

...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 been allocated to it. This prevents a bug within a process from affecting other processes, or the operating system itself. Sharing Shared memory......

Words: 1317 - Pages: 6

Free Essay

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