ComputersOS

Virtual computer memory

Those computer users who were fortunate enough to catch glorious times of heyday of systems based on 8086-compatible processors, know very well how important the amount of installed memory was at that time. The account went literally to kilobytes: in order to exceed the basic 640 kb and reach the "fantastic" 736 kb, a special external expansion module was purchased, representing a weighty board in a relatively large package. However, computer technology quickly evolved and soon a psychological barrier of 1 megabyte was passed. Modules of RAM became much more compact, in addition, there were processors that use it in full. Do not lag behind and applications. A significant event was the release of Windows third version, which used virtual memory. However, these were just timid steps in the direction that will later become the standard for all operating systems.

What is virtual memory? Imagine two identical computers running Windows 3, only one has 1 MB of memory, and in the other - 2 MB. Selecting software applications on the basis of volume - is to condemn programmers to hard labor, because they will have to optimize their products under 1, 2, etc. megabyte. To create a program designed for a standard minimum of 640 KB means to abandon some of the possibilities by "driving" the application into the framework. And to focus on 2 MB - means to lose potential buyers who have only 1 MB of computers. This was understood in Microsoft, so a mechanism called "virtual memory" was proposed. Programmers do not need to know how much is installed in each computer. Of course, some limitations are nevertheless taken into account, but on the whole, the operating system took care of how to "make friends" with the resource-demanding application and computer components. Of course, no miracles happen in this case. The very principle of work is extremely simple.

Take, for example, the case when a computer with 1 MB starts an application developed under 2 MB. Part of the volume is taken by the system itself, so only 500 Kb (conditionally) is available from 1 MB. Run the application. If the virtual memory is not enabled or disabled, then the program takes all 500 KB and stops working, giving a message about the error that occurred. But everything is completely different if the mechanism is turned on: the 500 KB are occupied, if the next memory request occurs, then the data block is written to a special file on the disk, freeing up the volume in the RAM. For the application, the mechanism is "transparent". In fact, virtual memory is part of the operational memory, but it is not located on the chips, but on the disk. Such a decision turned out to be so successful that work is still under way to improve it. So, in the newest Windows 8, a swapfile was added to the already familiar paging file pagefile , intended only for metro applications.

Sometimes users can see a system message stating that virtual memory is running low. How to explain this in the light of all of the above? All the more incomprehensible, given that the free disk space on the hard drive can still remain. One of the most probable reasons for this lies in the incorrect settings of the virtual memory mechanism. Although by default the system selects the automatic control mode for the size of the paging file, manual adjustment is possible with the indication of rigid frames. Whether you need to do this or not - each user decides on their own, but if an error occurs due to a lack of volume, you will have to raise the permitted upper limit. This is configured in the speed settings (you can get through the properties "My Computer" or from the control panel).

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.atomiyme.com. Theme powered by WordPress.