Memory configuration in DOS _dos/bat

Source: Internet
Author: User
Tags xms
Real-mode DOS usually only use the memory space below 1M. The basic memory is 640K, while the upper memory requires the corresponding memory manager. The management of basic memory is particularly important because improper use can result in some programs not running. So, how should you optimize the use of it? Here are some suggestions.

First, the memory manager that provides upper memory (UMB) is loaded. There are usually EMM386 and QEMM, but the tools themselves consume a large amount of memory, which is recommended for UMBPCI, a still-evolving tool that provides up to 162K of UMB, and does not occupy basic memory until it is placed in HIMEM. Then, all device driver/TSR are transferred into the UMB (Devicehigh,loadhigh, etc.), so that the remaining basic memory will be high even 630K even if many drivers are loaded (such as the optical drive, mouse, etc.). Note that you try to use a driver that takes up less memory in order to get the most out of UMB.

The following is the memory state information displayed on my Computer (MS-DOS 7.10) with the MEM/A/C command:
Modules using memory below 1 MB:

Name Total Conventional Upper Memory
-------- ---------------- ---------------- ----------------
SYSTEM 32,736 (32K) 9,664 (9K) 23,072 (23K)
HIMEM 1,168 (1K) 0 (0K) 1,168 (1K)
SETVER 864 (1K) 0 (0K) 864 (1K)
VIDE-CDD 5,024 (5K) 0 (0K) 5,024 (5K)
Cloaking 1,168 (1K) 0 (0K) 1,168 (1K)
Ifshlp 2,864 (3K) 0 (0K) 2,864 (3K)
COMMAND 7,424 (7K) 0 (0K) 7,424 (7K)
Killer (0K) 0 (0K) (0K)
WATCH 3,392 (3K) 0 (0K) 3,392 (3K)
MSCDEX 2,816 (3K) 0 (0K) 2,816 (3K)
DOSKEY 5,744 (6K) 0 (0K) 5,744 (6K)
Ctmouse 3,344 (3K) 0 (0K) 3,344 (3K)
ZENO 1,376 (1K) 0 (0K) 1,376 (1K)
ESCAPE 496 (0K) 0 (0K) 496 (0K)
Free 750,080 (732K) 645,328 (630K) 104,752 (102K)

Memory Summary:

Type of Memory Total Used free
---------------- ----------- ----------- -----------
Conventional 655,360 10,032 645,328
Upper 163,904 59,152 104,752
Reserved 393,216 393,216 0
Extended (XMS) 49,119,168 82,880 49,036,288
---------------- ----------- ----------- -----------
Total Memory 50,331,648 545,280 49,786,368

Total under 1 MB 819,264 69,184 750,080

Largest executable program size 645,312 (630K)
Largest free upper memory block 103,952 (102K)
Available Memory Area 5,360 (5K)
MS-DOS is resident in the high memory area.
As you can see from the table above, I loaded the following memory-resident programs and drivers:
XMS driver with Himem:dos.
Setver:dos version Table program.
VIDE-CDD: Universal Optical Drive driver. If your optical drive is USB, use Duse.
Cloaking: Memory cloaking API and DPMS driver to save MSCDEX memory footprint.
The IFSHLP:32 bit Disk service program, used in Windows 9x, can not be loaded.
Command:dos command processor.
Killer: Automatically intercept incorrect instructions to prevent panic.
WATCH:TSR Utils is one of the disable commands that can be used to prohibit the functionality of other TSR programs.
MSCDEX: And cloaking program with the MSCDEX, only take up less than 3K of memory, or to account for about 30K.
Doskey:dos with keyboard buffering and history programs.
Ctmouse:dos under the general Mouse driver, accounting for small memory, speed is very fast.
ZENO: Displays the accelerator program.
ESCAPE: At any time you can press the F12 key to return to the DOS mode to prevent panic.


This article comes from the new DOS era

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.