What Is Conventional Memory? PC RAM Explained
In this article
Conventional memory is the first 640 kilobytes (KB) of RAM in an IBM PC or compatible computer, reserved by the original architecture for running DOS programs and the operating system itself. In modern PCs, conventional memory no longer exists as a separate limit—the 640 KB barrier was removed with 32-bit processors and operating systems—but the term still appears in legacy software, DOS emulators, and old hardware documentation. If you are dealing with a modern Windows or macOS machine, conventional memory is irrelevant; if you are running DOS, a vintage PC, or an embedded system, understanding it can explain why a program refuses to load or why memory managers exist.
Where the 640 KB Limit Came From
When IBM designed the original IBM PC in 1981, it used the Intel 8088 processor, which could address up to 1 megabyte (MB) of memory. The designers reserved the upper 384 KB of that 1 MB for system hardware—video memory, ROM BIOS, and expansion card addresses—leaving the lower 640 KB for the operating system and user programs. That lower block became known as conventional memory.
The 640 KB figure was not a hard law of computing; it was a design choice made to keep the first PC affordable and compatible with then-available memory chips. Later processors like the 80286 and 80386 could address far more memory, but to remain compatible with existing DOS software, the PC architecture kept the 1 MB address map intact. Programs that wanted more memory had to use expanded memory (EMS) or extended memory (XMS) through special drivers, because the CPU's real mode could only see the first 1 MB.
How Conventional Memory Is Used
In a DOS system, conventional memory is the working area for everything the CPU does in real mode. The memory layout is roughly:
- 0–640 KB: Conventional memory, used by DOS itself, device drivers, TSR (terminate-and-stay-resident) programs, and application software.
- 640–768 KB: Video memory (text and graphics buffers for CGA, EGA, VGA, etc.).
- 768–896 KB: Expansion ROMs and BIOS extensions (e.g., hard drive controller BIOS).
- 896–1024 KB: System BIOS and CMOS setup.
When you ran a DOS game or application, it loaded into conventional memory. If the program needed more than the free conventional memory (which was often less than 640 KB because DOS and drivers took some), it would fail with an error like "Insufficient memory" or "Out of memory." This is why DOS users spent time optimizing their CONFIG.SYS and AUTOEXEC.BAT files to load drivers into upper memory blocks (UMBs) and free up conventional memory.
Why 640 KB Was a Problem
The 640 KB limit became a bottleneck as software grew more complex. By the late 1980s, word processors, spreadsheets, and games routinely hit the ceiling. The problem was not the amount of physical RAM installed—many PCs had 1 MB or more—but the fact that DOS ran in real mode, where the CPU could only address 1 MB. The memory above 640 KB was inaccessible to normal DOS programs without special drivers.
Common symptoms of conventional memory exhaustion included:
- Programs refusing to start with an "out of memory" message even though the system had plenty of free RAM.
- Games that loaded partially and then crashed.
- Device drivers failing to load.
The solution came in stages: first with expanded memory (EMS), which used a 64 KB window in the upper memory area to bank-switch larger pools of memory; then with extended memory (XMS) and the HIMEM.SYS driver, which allowed access to memory above 1 MB in protected mode; and finally with 32-bit operating systems like Windows 95 and later, which abandoned real mode entirely and removed the 640 KB barrier.
How to Check Conventional Memory (If You Need To)
If you are using a DOS emulator like DOSBox, or you have an old PC, you can check conventional memory with the built-in MEM command. Here is how:
- Boot to a DOS prompt (or open DOSBox).
- Type
MEMand press Enter. - Look for the line that says "Conventional memory" and the total/free numbers.
In DOSBox, the default conventional memory is 640 KB, but you can adjust it in the configuration file (usually dosbox.conf) with the memsize setting. On a real DOS PC, you can free conventional memory by loading device drivers into upper memory using DEVICEHIGH in CONFIG.SYS and LH (load high) in AUTOEXEC.BAT. Note that the exact commands and syntax vary by DOS version and memory manager (e.g., EMM386, QEMM).
Conventional Memory vs. Other Memory Types
To understand conventional memory, you need to know how it differs from the other memory categories that DOS recognized:
- Upper memory (640 KB–1 MB): Reserved for hardware, but some unused areas could be remapped as UMBs to load drivers.
- High memory area (HMA): The first 64 KB of extended memory (just above 1 MB), accessible via
HIMEM.SYS. DOS could load part of itself there withDOS=HIGH. - Extended memory (XMS): All memory above 1 MB, accessed in protected mode. Required a driver like
HIMEM.SYS. - Expanded memory (EMS): A separate bank-switched memory standard that used a 64 KB window in the upper memory area to access up to 32 MB of memory in 16 KB pages. Required a driver like
EMM386.EXE.
In modern systems, the term "conventional memory" is sometimes loosely used to mean "the memory that the operating system uses for normal programs," but that is not the technical definition. The technical definition is specifically the 640 KB DOS address space.
Why You Still Hear About It Today
Conventional memory is mostly a historical concept, but it surfaces in a few real contexts:
- DOSBox and emulators: If you run old DOS games, you may need to adjust conventional memory settings to get a game to run.
- Embedded systems: Some microcontrollers and legacy industrial PCs use real-mode memory maps that mimic the 640 KB layout.
- BIOS and boot code: The first 640 KB is still used during the boot process on modern PCs, though the operating system quickly switches to protected mode and ignores it.
- Retro computing: Enthusiasts restoring vintage PCs often discuss conventional memory optimization.
If you are using a modern 64-bit operating system, you do not need to worry about conventional memory. The 640 KB limit was a hardware/software design constraint of the 1980s, not a physical law. Modern processors and operating systems address gigabytes of memory without any such barrier.
Frequently Asked Questions
Is 640 KB the same as conventional memory?
Yes, in the strict IBM PC definition, conventional memory is the 640 KB of RAM from address 0 to 0xA0000 (640 KB). The term is often used interchangeably with "base memory" or "low memory."
Can I increase conventional memory on a modern PC?
No. Modern PCs and operating systems do not use conventional memory as a separate limit. The entire RAM is available to the OS and programs. If you are using DOSBox, you can adjust the memsize setting, but that only affects the emulated DOS environment.
Why did DOS programs run out of memory even when I had 8 MB of RAM?
Because DOS programs ran in real mode, which could only access the first 1 MB of address space. The extra memory above 1 MB (extended memory) was not directly accessible without special drivers and protected mode. So a program could only use the free conventional memory, which was often less than 640 KB after DOS and drivers loaded.
What is the difference between conventional and expanded memory?
Conventional memory is the first 640 KB, directly accessible by DOS programs. Expanded memory (EMS) is a separate bank-switched scheme that uses a 64 KB window in the upper memory area to access additional memory in 16 KB pages. EMS was a workaround to get more memory into DOS programs that could not use extended memory.
Does Windows still use conventional memory?
No. Modern Windows (and all 32-bit and 64-bit operating systems) run in protected mode and address memory linearly. The 640 KB conventional memory area is only used during the early boot process, and then the OS takes over and manages all RAM without that limit.
How do I free up conventional memory in DOS?
You can free conventional memory by loading device drivers and TSRs into upper memory blocks (UMBs) using DEVICEHIGH in CONFIG.SYS and LH in AUTOEXEC.BAT, and by setting DOS=HIGH,UMB in CONFIG.SYS to load DOS into the HMA. You may also need a memory manager like EMM386.EXE to create UMBs. The exact steps vary by DOS version.