Every component of the PC has been upgraded, in order to increase the speed of the PC, for the past seventeen years, due to the new technology, which has been developed for the PC. The memory is one of the components of the PC, which has been upgraded to increase the speed of the PC.
The Cache Memory, is a type of memory, which is very close to the CPU, because the Cache memory is used, in order to store all recent instructions. In order for the CPU to perform a task, all the instructions, given by the user are stored, in the Cache memory first. The memory and the Hard Disk have much more space than the Cache memory; however despite this, the Cache memory is an important component of the computer and it is used first, before the main memory. The cache memory receives the requests first, and if the cache can’t answer, then the main memory, will be presented with the same, requests from the users. The overall performance of a system can improve, by applying Cache strategies to that system, because the CPU and the memory, will be working together, to accomplish tasks, at the same time. The cache memory provides the processor, with high-speed data access, also data, applications and programs, are stored quickly in these cache memory. The cache memory is embedded onto the motherboard directly, and it is the fastest type of a memory.
Cache memory and Virtual memory have the same purpose, as far as helping the PC perform its tasks efficiently. However these two types of memories, defer from one another. One difference between the cache memory and the virtual memory, is that the implementation of these memories, is different due to the speed requirements, made by the cache architecture.
The virtual memory helps the PC, to efficiently manage and efficiently use the RAM (random access memory), which is the main memory. The virtual memory also provides a space, separate for each program, which has reached the capacity of the main memory. A virtual address space for programs is created, by the virtual memory, using the computer’s memory and hard disk; because an actual physical virtual memory does not exist on the systemt. What makes the virtual memory possible, are these components: A divided physical memory, a hard disk used as a swap device, Address translation and a management software. As one of the great ideas in computing, the virtual memory provides important capabilities to the PC; such capabilities are: it allows for the memory and the hard disk to transfer data back and forth, only using the areas of the memory which are active, so that the memory can work efficiently. Also virtual memory simplifies memory management, because a uniform address space is designated to a process. Finally the address space don’t suffer any corruption from other processes, due to the presence of virtual memory .
Memory management has to help the system fulfill all requests, when the memory needs to be allocated. It is imperative, that the system assigns unallocated memory to a process, when that process requests the memory explicitly. In order for a system to be optimized, blocks, which are portions of the memory, are assigned to various running processes. Every memory location, whether it is free or allocated to some process, is tracked by the memory management mechanism. Segmentation, swapping, fragmentation, memory allocation and paging are some of the methods used, in memory management.