Analysis of the reasons for insufficient memory and tips for use (1)

  
        

Analysis of the Causes of Insufficient Memory and Usage Tips

During the operation of the computer, there are many reasons for the computer to indicate that the virtual memory is insufficient. Let us first understand the reasons for the lack of virtual memory:

1, program destruction or virus blame

If a program file is destroyed, it may cause memory problems. After the program is corrupted, we can only remove and reinstall the program. However, if your computer is infected with a computer virus, it may also cause an out of memory error. Some viruses will take up a lot of memory space when the attack occurs, and the program will not run. At this time, go to anti-virus, upgrade the virus database, and then do anti-virus measures, use the latest anti-virus software to kill the virus, the problem of insufficient memory will naturally be solved.

2, improper virtual memory settings

Improper virtual memory settings may also lead to memory shortages, in general, the virtual memory size is 2 times the physical memory size, if set Too small will affect the normal operation of the system program. Re-adjust the virtual memory size. For example, WinXP, right click on “My Computer", select “Properties", then on the “Advanced” tab, click “Set>> Performance” ; button, switch to the "Advanced" tab, then click the "Change" button in the "Virtual Memory" box, then reset the virtual memory size, and restart the system after completion.

Insufficient virtual memory is due to insufficient virtual memory settings in Windows or insufficient hard disk space in virtual memory. It is recommended to place the virtual memory and the operating system in different partitions, and set a fixed size, generally 1.5 times the system memory capacity; right click on “My Computer", select “property", pop up the system properties window , select the "Performance Options" tab, click the "Virtual Memory" button below, pop up the virtual memory settings window, click "Users specify the virtual memory settings" radio button, "HDD"; please select larger Partition the remaining space, then enter the appropriate range value in the "Minimum" and "Maximum" text boxes. If you feel that using the system to get the maximum and minimum is a bit of a hassle, you can choose to "make Windows manage virtual memory settings", but make sure that the remaining space of the virtual memory partition is large enough (more than 2 times the system memory).

3, the system space is insufficient

The virtual memory file is in the system disk by default, such as WinXP virtual memory file named "pagefile.sys", if the remaining space of the system disk is too small, As a result of insufficient virtual memory, there is also a problem of insufficient memory. The system disk must retain at least 300MB of free space, of course, this value depends on the actual needs of the user. Users should try not to install various application software on the system disk, to ensure that there is enough space for the virtual memory file to use, and it is better to put the virtual memory file into the non-system disk.

4, because the SYSTEM user permissions are not set properly

When the Windows system based on the NT kernel starts, the SYSTEM user creates a virtual memory file for the system. Some users use the NTFS file system for system security, but they cancel the SYSTEM user's permission to write ” and “ modify & rdquo; so that you cannot create virtual memory files for the system when running large programs. There will also be a problem of insufficient memory.

The problem is solved very well, as long as the SYSTEM user is re-assigned to the ” and “modify” permissions, but this is limited to users using the NTFS file system.



Virtual Memory Skills

For the problem of how virtual memory settings, Microsoft has provided us with an official solution for under normal circumstances, we recommend using the following Setting method:

(1) Set the page file in the partition where the Windows system is located. The size of the file is determined by your system settings. The specific settings are as follows: Open the "My Computer" "Properties" Settings window, switch to the "Advanced" tab, "Startup and Recovery" window"Write debug information" Column, if you are using "no", set the page file size to about 2MB, if you use "core memory storage" and "full memory storage", set the page file value to be large Some, just like physical memory.

Tip: For the system partition to set the page file, there is a contradiction here: if set, the system may read this part of the page file frequently, thus increasing the load on the track where the system disk is located, but if If it is not set, when the system has a blue screen of death (especially a STOP error), the dump file (Memory.dmp) cannot be created, and debugging and error reporting cannot be performed. So the compromise is to set a smaller page file on the system disk, as long as it is enough.

(2) Create a blank partition separately, set the virtual memory in the partition, the minimum value is set to 1.5 times the physical memory, and the maximum value is set to 3 times the physical memory. The partition is used to store the page. Files, do not store any other files. The reason why the partition is divided into one partition to set the virtual memory is mainly based on two considerations: First, since there are no other files on the partition, the partition will not generate disk fragmentation, so that the data of the page file can be read and written without being affected by the disk. Fragmentation; Second, according to Windows memory management technology, Windows will preferentially use the page file on the partition that is not frequently accessed, which also reduces the chance of reading the page file in the system disk, reducing the pressure on the system disk. .

(3) No other page files are set for other hard disk partitions. Of course, if you have multiple hard drives, you can create a page file for each drive. When information is distributed over multiple page files, the hard disk controller can perform read and write operations on multiple hard disks simultaneously. This will improve system performance.

Tip:

The minimum allowable virtual memory is 2MB, the maximum value cannot exceed the remaining space of the current hard disk, and it cannot exceed the memory addressing range of the 32-bit operating system &mdash ;—4GB.

Copyright © Windows knowledge All Rights Reserved