Disabling is not a good thing. Going out of virtual memory to disable the misunderstanding experience skills

  
        

Recently, the topic that everyone often talks about is the huge price reduction of DDR memory. DDR266 has plummeted from 400 yuan to 200 yuan. Many people have used 512MB or even 1GB of memory. So there is a view that some players also have some opinions. It is popular, saying that it is to disable virtual memory, prohibit Windows page file exchange, and force command data to be processed in memory, which can speed up data reading and writing efficiency. Is this true?

According to the application needs to set up

The author believes that this statement should be treated separately, can not just say that disabling is a good thing.

First of all, to figure out what is "large memory configuration." When designing Windows to use virtual memory itself, it is because physical memory is very expensive, generally it will not exceed 128MB capacity, and hard disk space is needed for temporary buffering - that is, you should use how much physical memory and actual memory you need in your application. A comparison, if the actual memory is less than the application peak, you will run into trouble.

In general, if you want to do large-scale tasks such as large-format graphics, 3D animation rendering, etc., you should not disable virtual memory; if you often want to print a document with a large number of images, prohibiting virtual memory will also let The program has an error. Because the software like Word is to generate a buffer file before printing, and then transfer it to the printer. When the image size is larger and the resolution is higher, the buffer capacity required is also large. When I used to help the advertising artist to design the drawing, I encountered a situation in which a picture was printed to generate nearly 300MB of temporary files. Because Windows and the application itself also need a certain amount of memory to run, if you are 512MB configuration, disable virtual memory, it is very likely that the virtual memory is insufficiently reported midway, forcibly exiting, causing waste of printing paper and ink.

So, you must decide whether to disable virtual memory based on your task application environment. Even if you set the virtual memory size fixedly, you must be cautious. Otherwise, the virtual memory will be insufficient when running large application software. The whole system will become very slow due to the high CPU usage. Not so convenient.

Considering the operating system factors

Under different operating systems, the setting or disabling of virtual memory is different and cannot be generalized.

Because of the architecture problem, Windows 9x/Me has inherent inadequacies in memory larger than 256MB. More than this amount of memory, Windows 98 will be unstable and slow to start. If you use large memory plus disable virtual memory, the instability factor will increase further. Windows 2000/XP can effectively manage a memory capacity of about 1 GB. If this number is greater than this number, it will be unstable, and it will vary depending on the motherboard BIOS model and chipset performance.

In addition, the design of Windows itself is that once a process is found to be inactive, it will map the memory space allocated to it to the swap file, leaving as much physical memory as possible for other active threads. It is not the use of physical memory to start using the swap file. Because it is too late to wait until the physical memory is used up, it will inevitably cause data transmission and processing stagnation on the lower configuration machine. Therefore, in principle, virtual memory is forbidden to cause Windows abnormality. Even if there is no fault that cannot be run, the virtual memory will be frequently prompted. Please reset the cloud to make you feel overwhelmed.

How to disable virtual memory

For a friend who has a large amount of memory, if you really want to disable virtual memory to speed up the operation, you can actually use the compromise method to fool Windows. Part of the physical memory is virtualized into a physical hard disk:

1.Windows 98

You can add a sentence to Config.sys: DEVICE=C:/WINDOWS/RAMDRIVE.SYS 23000 /E( Please set it according to the partition where your Windows is located. This sentence is to use memory to create a partition by Ramdrive.sys. 23000 is how much physical memory you want to use. The unit is KB. If you have 1GB, you can set this number to 300000 to 500000 or so, that is, 300 to 500 MB, and then set the virtual memory to the virtual partition, the program runs completely in physical memory.

2.Windows 2000/XP

You must rely on third-party tool software to virtualize the physical hard disk, and then set the Pagefile.sys page file to the virtual disk to achieve the same effect; or You can add a sentence at the bottom of System.ini in the [386enh], ConservativeSwapfileUsage=1, let Windows use physical memory first, try not to force the virtual memory swap file directly.

Conclusion

The author believes that the acceleration effect of disabling virtual memory is very limited, and the default settings of Windows are more appropriate, especially the default settings of Windows 2000/XP for virtual memory management. Ok, try not to change it at will, otherwise it will be difficult to judge and analyze if something goes wrong.

Off-topic: Some fault analysis about memory

Sometimes, Windows has some memory-related fault prompts, not necessarily related to memory; and some seemingly memory-independent faults, It is really caused by memory, it is very concealed.

For example: you use the PQ partition master to change the size of the partition cluster. When the cluster is smaller than the default value, Windows 98 running disk scan may report insufficient memory, but under Windows 2000 and Windows XP. It's normal - that is, it doesn't matter with memory at all.

Another example: sometimes when booting into Windows, the system will prompt you for a registry error, whether to restore, when you choose to restore, restart again, or the same prompt, this fault is mostly memory or There is a problem with the heat dissipation, and you need to replace the memory or the fan.

So, Windows prompts sometimes mislead users. If the same type of fault occurs repeatedly, follow the prompts to solve it, you should consider the possibility of Windows false positives.

Copyright © Windows knowledge All Rights Reserved