Virtual memory is a feature for most OS’s that helps them manage the fact that sometimes you simply dont have enough physical RAM for everything.
running out of ram is bad and if no measure is taken against it the system WILL crash the moment you got even one bit over the limit
when ram usage in the system is reaching its limit the OS preemptively sets up a special file in your storage know nas a “page file”(in windows systems htis file is actually called “pagefile.sys”) that is then uses ot “page” less used sections of th e ram contents into this file in order ot free up physical memory. this page file is treated as Extra RAM and is accessed as such(this matters, keep reading). for windows system this file is also where the memory dump is written into in the event of a fatal error(a blue screen).
The upside?: your system is safe from crashing due ot lack of memory and outside of certain fringe cases this is seamless.
The Downside?: Storage memory is never gonna be as fast as RAM so youll notice a significant slowdown in read/writing + the CPU cycles required ot do this.The process of moving items into and out of the page file also isnt instant+ modern system adapt this file size on the fly which can be an issue for older systems.
it is possible ot disable the pagefile in most system but this is not recommended, the way however you cna mitigate its use is by expanding the amount of physical ram to be more in tune with your use case.
Latest Answers