You should use a combination of a browser, an email client, and a word processor. There was a pile of tasks. The system is sluggish. Then the computer sighs and stops responding.
This is not a malfunction. This is arithmetic.
Most desktop operating systems rely on virtual memory to function properly. This is a trick that makes the software appear to have more memory than it actually has. result? Get a smoother experience for less money. But there’s a problem.
The economics of memory
Modern computers typically have 64-128 GB of RAM. It seems like a lot of work until you have an entire operating system, web browser, and word processor loaded at the same time. The math doesn’t add up.
Without virtual memory, your machine will hit a wall. “Out of memory. Close something.” is displayed.
This allows the operating system to look for blocks of RAM that have not been used recently. Copy this data to your hard drive. This frees up space in the physical memory for new applications.
Users never see the interaction. You feel like you have unlimited space on your 32 GB machine.
The price is also very cheap. Hard disk space is a fraction of the cost of RAM chips. Virtual memory is an economic bridge between cheap storage and expensive speed.
The page file
This storage area of the hard disk is called a page file.
RAM holds “pages” of information. The operating system passes data back and forth between this file and the actual RAM. On Windows systems, the extension of these files is usually .SYS.
Here’s the problem.
The hard drive is slow. They are not built for frequent small data access. Memory access is slow. The hard drive is mechanical (or at least slower than silicon).
If your system relies too much on the paging file, you’ll know it. performance tanks.
Crash: if the exchange fails
The goal is simple. It’s about having enough physical RAM to handle your workload.
When you do this, the virtual memory works in the background. There may be a short delay between tasks. that’s it. It’s beautiful.
But what if you don’t have enough memory?
The operating system goes into thrashing mode.
Data is constantly transferred between the RAM and the hard disk. The read/write head rotates violently. The system struggles. In reality, it feels very slow because it is doing two jobs at the same time: running the application and managing memory traffic.
Please stop struggling. More memory. Or stop opening so many tabs.