RAM
Random Access Memory (RAM) is a type of memory used by servers, computers, programs, and software in general. Its main purpose is to exchange information between the operating system, software, processor, and other devices. Information executed by computer units such as the processor is loaded into this memory.
The need for RAM arises from the fact that the CPU does not have to read and write information directly to the hard drive, thus speeding up the delivery and writing of content to your server. In this way, from being an accessory component, it has become vitally important for the performance of a device.
The task of RAM is to store information so that the actions you perform on your computer or server are as fast as possible, without having to access the hard drive directly.
Why is it random (random access memory)? Because it can be written to or read from with the same wait time for any location, allowing you to access that information as quickly as possible.
RAM SWAP
RAM SWAP complements the operation of traditional RAM. SWAP\'s task is to store temporary information, reducing RAM usage. By properly combining the use of your RAM and SWAP, you can achieve optimal results compared to what the server can normally offer.
Swap, then, corresponds to an available swap space on the hard drive that stores the processes you run as images, reducing RAM usage and optimizing its performance.
When a server or VPS (/vps) is in use, the operating system looks for an inactive process and moves it to the swap area, freeing up space in main memory to load new processes. When needed again, these temporary images are used to load the process back into main memory.
RAM SWAP and RAM
Making a comparison is pointless since they are complementary entities. SWAP is necessary for hibernating or suspending a computer, for example.
SWAP is much slower than RAM because its function is different (to store and retrieve temporary data on the hard drive).
SWAPPINESS: How do I know when I\'m using SWAP?
Linux distributions use a default swappiness of 60%. This means that SWAP memory doesn\'t come into play until 60% of the normal RAM is in use. Therefore, 60% represents the threshold at which your server, computer, or VPS would use SWAP.
It\'s possible to modify this value by editing the following file:
> /proc/sys/vm/swappiness
RAM Perspective
Over the years, as with all technology, software development has demanded that RAM improve its speed and latency times.
Outros artigos que podem lhe interessar
Comentários
0Seja o primeiro a comentar