Free Conventional Memory in MS-DOS 5.0 and Later with Upper Memory Blocks
Move DOS and device drivers above 640 KB on MS-DOS 5.0 and later to free conventional memory for legacy software.
08 Jan 2026, 11:57 UTC

Your application will not start because conventional memory is full
MS-DOS reserves the first 640 KB of RAM for programs and data. This region is called conventional memory. Installing more physical RAM does not automatically help, because ordinary MS-DOS programs cannot run from memory above 1 MB without a memory manager. Device drivers and terminate-and-stay-resident programs (TSRs) that load into conventional memory can leave too little space for the software you actually need to run.
The practical takeaway: on MS-DOS 5.0 and later, you can move the DOS kernel and many drivers into upper memory blocks (UMBs)—unused gaps between 640 KB and 1 MB—so conventional memory stays available for your application.
Check the version and load memory managers in order
Run VER at the MS-DOS prompt before editing CONFIG.SYS. DOS=HIGH and DOS=UMB are not supported in MS-DOS 4.01 or earlier.
UMBs do not exist by default. You need a memory manager to create them, and the load order matters:
- Load
HIMEM.SYSfirst. It provides access to extended memory on 80286 and later systems. - On 80386 and later systems, load
EMM386.EXEnext. It creates UMBs in the upper memory area. TheNOEMSoption is common when you do not need expanded memory for EMS applications. - Add
DOS=HIGH,UMB.HIGHrelocates the DOS kernel into upper memory;UMBpermits drivers and TSRs to load there.
Worked example: load a CD-ROM driver high
This example assumes MS-DOS 6.22 and a boot drive of C:. Replace paths with your actual locations. Editing CONFIG.SYS changes system state, so make a backup first:
COPY C:\CONFIG.SYS C:\CONFIG.SYS.BAK
Open C:\CONFIG.SYS at the MS-DOS prompt. MS-DOS has no user-permission model; you need write access to the boot drive.
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE NOEMS
DOS=HIGH,UMB
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:mscd001
Then add the matching MSCDEX line to C:\AUTOEXEC.BAT:
LOADHIGH C:\DOS\MSCDEX.EXE /D:mscd001
DEVICEHIGH attempts to load the CD-ROM driver into an UMB. LOADHIGH does the same for the MSCDEX TSR. If upper memory is fragmented or occupied by video adapter memory, the driver may remain in conventional memory or fail to load.
Verify the result and watch for breakage
Reboot and run MEM at the command prompt. The conventional memory summary should show more free bytes than before the change. For detail, use MEM /C to list loaded programs and their memory type, or MEM /D for a module map. MEM /C is available starting with MS-DOS 5.0.
Check that the CD-ROM driver appears in upper memory, not conventional memory. If a program that hooks interrupts—such as a mouse driver or network TSR—misbehaves after being loaded high, move it back to conventional memory by removing DEVICEHIGH or LOADHIGH for that item. Interrupt-hooking software sometimes assumes it resides below 640 KB.
Limitations and rollback
Upper memory is not empty space. Video cards, network adapters, and other hardware can claim addresses in the 640 KB to 1 MB range, reducing the room available for drivers. The amount of reclaimed conventional memory varies by machine.
Because editing CONFIG.SYS changes system state, keep the backup you made earlier. If the system will not boot after a change, start from a boot floppy. On MS-DOS 6.x, you can also press F5 when the system displays "Starting MS-DOS" to bypass CONFIG.SYS and AUTOEXEC.BAT; MS-DOS 5.0 behavior may differ, so a boot floppy is the safer option across versions. Restore the backup with:
COPY C:\CONFIG.SYS.BAK C:\CONFIG.SYS
Then try again with one driver at a time.
Closing
Do not optimize everything at once. Add HIMEM.SYS and DOS=HIGH,UMB first, reboot, and run MEM. Then move one driver high, reboot, and verify again. When conventional memory stops increasing or a TSR misbehaves, you have reached the practical limit for that hardware. MS-DOS 6.x includes MEMMAKER for automated optimization, but manual tuning remains predictable for embedded or legacy industrial systems.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.