System configuration-Get more regular memory _dos/bat

Source: Internet
Author: User
Most of the programs in a DOS environment run in regular memory, and if a program fails due to insufficient memory, the most common problem is low conventional memory. Here are some common ways to free conventional memory:

When the system is configured with extended memory, it is possible to install most of the DOS code and command.com temporary memory portions in the High Memory area (HMA). This requires that the following commands be included in the Config.sys:
Device=himem.sys
Dos=high

Although Himem.sys itself consumes a small amount of conventional memory, the use of HMA will save us more conventional memory.

Second, streamline the content of Config.sys and Autoexec.bat files, do not start those unnecessary memory-resident programs, these memory-resident programs often occupy a lot of conventional memory.

If the Config.sys file contains device commands for installing Smartdrv.exe or Ramdrive.sys, you can cancel them to save conventional memory. In particular, Smartdrv.exe to use a large amount of conventional memory. If you must use Ramdrive.sys, make sure that the RAM disk is built in extended memory, not in regular memory.

If the Config.sys file contains the buffers command, you should reduce the number of disk buffers specified by buffers, each of which consumes 532 bytes of regular memory. But too much reduce the number of disk buffers will cause some programs can not run normally, generally buffers less than 15.

If the Config.sys file contains the Lastdriver command, cancel the command or set the Lastdriver to J or K instead of Z. Because DOS creates a corresponding management block CDs for each logical drive that allows access, each CDs consumes approximately 80 bytes of conventional memory.

The order of the device and Devicehigh commands in the Config.sys file is important in that it will affect the efficient use of memory and the proper running of a series of programs at the start of the Config.sys. It is best to install the device driver in the Config.sys file in the following order:
1 Himem.sys;
2 device drivers that use extended memory;
3 Emm386.exe, if using EMM386 emulation expands memory and provides access to high memory blocks (UMBS)
Yes, then the EMM386 command line should include a ram switch without noems. Noems Prohibition Emm386.exe simulation
Expands memory, but it provides the largest available high memory block for installing device drivers and running other programs.
4 device driver with extended memory;
5 A device driver that uses a high memory block (UMBs).

For Autoexec.bat, our advice is to remove those memory-resident programs that users do not need, and if you only use the mouse in Windows, do not install any mouse device drivers, such as mouse.com, because Windows has a built-in mouse device driver.

  Install device drivers and run other memory-resident programs in the high-end memory area (UMB) as much as possible.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.