Knowledge (XXG)

Upper memory area

Source 📝

185:
of memory, such as the monochrome display area on colour machines. Then, DOS' many subcomponents had to be loaded into these UMBs in the correct sequence to use the blocks of memory as efficiently as possible. Some TSR programs required additional memory while loading, which was freed up again once loading was complete. Fortunately, there were few dependencies amongst these modules, so it was possible to load them in almost any sequence. Exceptions were that to successfully cache CD-ROMs, most disk caches had to be loaded after any CD-ROM drivers, and that the modules of most network stacks had to be loaded in a certain sequence, essentially working progressively up through the layers of the
214:, it became less relevant still, as this version of Windows provides much of the functionality of the DOS device drivers to DOS applications running under Windows, such as CD, network and sound support; the memory map of Windows 95 DOS boxes was automatically optimised. However, not all DOS programs could execute in this environment. Specifically, programs that tried to directly switch from real mode to protected mode would not work as this was not allowed in the 22: 184:
For a period in the early 1990s, manual optimization of the DOS memory map became a highly prized skill, allowing for the largest applications to run on even the most complex PC configurations. The technique was to first create as many UMBs as possible, including remapping allocated but unused blocks
192:
A basic yet effective method used to optimize conventional memory was to load HIMEM.SYS as a device, thereafter loading EMM386.EXE as a device with the "RAM AUTO" option which allows access into the UMA by loading device drivers as devicehigh. This method effectively loads the fundamental memory
209:
made the necessity of the upper memory area less relevant, as Windows applications were not directly affected by DOS' base memory limits, but DOS programs running under Windows (with Windows itself acting as a multitasking manager) were still thus constrained. With the release of
161:. This configuration was not a trivial process. As it was largely automated by the installation program of QEMM, this program survived on the market; indeed, it worked well with DR DOS' own HMA and UMB support and went on to be one of the best-selling utilities for the PC. 470:
support, task swapping, and Undelete. Considerable amounts of the team's management attention was diverted to new features such as file transfer software, undelete and network installation Eventually this situation reached a crisis point at the end of July 1990, and, led by
110:, and I/O ports for peripherals, much of this 384 KB of address space was unused. As the 640 KB memory restriction became ever more of an obstacle, techniques were found to fill the empty areas with RAM. These areas were referred to as 277:
On many systems including modern ones it is possible to use memory reserved for shadowing expansion card ROM as upper memory. Many chipsets reserve up to 384 KB RAM for this purpose and since this RAM is generally unused it may be used as
172:
in June 1991. Eventually, even more DOS data structures were moved out of conventional memory, allowing up to 631 KB out of 640 KB to be left free. Starting from version 6.0 of MS-DOS, Microsoft even included a program called
145:
The advantage of DR DOS 5.0 over the combination of an older DOS plus QEMM was that the DR DOS kernel itself and almost all of its data structures could be loaded into high memory. This left virtually
222:(VCPI) API (which was introduced to allow DOS programs that needed protected mode to enter it from the virtual 8086 mode set up by a memory manager, as described above) didn't work in Windows 95. Only the 316:
for XT-class computers, allowed normal memory to be mapped into the 0xA0000-EFFFF address range, giving up to 952 KB for DOS programs. Programs such as
328:
was removed at the cost of software compatibility. This usage of the upper memory area is different from using upper memory blocks, which was used to free
301:
to make it appear in the upper memory area. As with the 386-based upper memory described above, the extra RAM could be used to load TSR files, or as a
447: 260: 219: 153:
Configuration was not automatic - free UMBs had to be identified by hand, manually included in the line that loaded EMM386 from
373: 545: 475:, the team's management spent an arduous series of meetings nailing down a schedule and process for closing the project down 193:
managers into conventional memory, and thereafter everything else into the UMA. Conventional memory glutton programs such as
518: 298: 265: 223: 178: 492: 255:
so this method of providing upper memory blocks is usually provided by the expanded memory manager (for example
197:
could also be loaded into the UMA in a similar fashion, hence freeing up a large amount of conventional memory.
126:
The next stage in the evolution of DOS was for the operating system to use upper memory blocks (UMBs) and the
442:. p. 10. MS-PCA1179169 (MS-PCA1179159-MS-PCA1179191). MS7020988 (MS7020978-MS7021010). Depo. Ex. 1109. 65: 313: 345: 30: 432: 350: 329: 467: 443: 244: 215: 150:
the base memory free, allowing configurations with up to 620 KB out of 640 KB free.
88: 309: 367: 127: 472: 361: 355: 295: 252: 248: 240: 42: 462:
One of the most important stimulanta for adding features was competitive pressure from
325: 321: 466:, which we first learnt of in the spring of 1990. The DRDOS feature set led us to add 550: 539: 157:, and then drivers and so on had to be manually loaded into UMBs from CONFIG.SYS and 46: 158: 21: 294:
computers, it was possible to add more memory to the motherboard and use a custom
514: 317: 206: 54: 336:
address space, but left the amount of addressable memory (640 KB) intact.
463: 211: 169: 154: 135: 131: 107: 103: 80: 76: 62: 439: 279: 186: 165: 92: 332:
by moving device drivers and TSRs into the upper 384 KB of the 1 
404: 488: 384: 379: 333: 302: 218:
it was running in. Also, programs that tried making the switch using the
174: 50: 489:"UMBPCI V3.89 - c't magazine's hardware-UMB-driver for DOS and Win95/98" 177:
which was used to automatically optimize conventional memory by moving
25:
The upper memory area is located between 640 KB and 1024 KB.
291: 256: 194: 58: 446:
Plaintiff's Exhibit 3473. CA.No.2:96CV645B Plaintiff's Exhibit 477.
20: 139: 99: 69: 84: 72: 61:
or compatible. IBM reserved the uppermost 384 KB of the
515:"What is high memory, why do I care, and how can I use it?" 282:
upper memory with a custom device driver, such as UMBPCI.
226:(DPMI) API for switching to protected mode was supported. 263:
for managing the upper memory blocks is specified in the
320:, which accessed video memory directly, needed to be 426: 424: 138:, could perform most of the basic functionality of 134:in 1990. DR DOS' built-in memory manager, 239:Upper memory blocks can be created by mapping 324:to handle this memory layout. Therefore, the 8: 16:Physical memory region on IBM PC compatibles 433:"MS-DOS 5.0 Development Post-Mortem Report" 243:into the upper memory area when running in 130:(HMA). This occurred with the release of 396: 98:However, even with video RAM, the ROM 7: 181:(TSR) programs to the upper memory. 431:Dryfoos, Mike, ed. (1991-09-18) . 68:'s 1024 KB address space for 14: 261:application programming interface 220:Virtual Control Program Interface 164:This functionality was copied by 521:from the original on 2018-10-05 495:from the original on 2019-12-30 453:from the original on 2019-04-02 405:"Memory Map (x86) - OSDev Wiki" 374:Global EMM Import Specification 1: 266:eXtended Memory Specification 205:The increasing popularity of 224:DOS Protected Mode Interface 179:terminate-and-stay-resident 567: 438:(mail as court document). 247:. This is similar to how 142:and comparable programs. 314:memory management unit 251:can be emulated using 26: 546:DOS memory management 517:. San Jose, CA, USA. 513:Atkinson, Cy (2001). 346:DOS memory management 57:A0000–0xFFFFF) in an 31:DOS memory management 24: 168:with the release of 351:Conventional memory 330:conventional memory 326:640 KB barrier 112:upper memory blocks 53:and 1024 KB ( 27: 444:Comes v Microsoft 245:virtual 8086 mode 235:Virtual 8086 Mode 216:virtual 8086 mode 89:memory-mapped I/O 35:upper memory area 558: 530: 529: 527: 526: 510: 504: 503: 501: 500: 485: 479: 477: 459: 458: 452: 437: 428: 419: 418: 416: 415: 401: 368:High Memory Area 128:high memory area 91:, and obsoleted 87:on peripherals, 566: 565: 561: 560: 559: 557: 556: 555: 536: 535: 534: 533: 524: 522: 512: 511: 507: 498: 496: 487: 486: 482: 456: 454: 450: 435: 430: 429: 422: 413: 411: 403: 402: 398: 393: 362:Expanded memory 356:Extended memory 342: 296:address decoder 288: 275: 253:extended memory 249:expanded memory 241:extended memory 237: 232: 212:Windows 95 203: 132:DR DOS 5.0 124: 17: 12: 11: 5: 564: 562: 554: 553: 548: 538: 537: 532: 531: 505: 480: 420: 409:wiki.osdev.org 395: 394: 392: 389: 388: 387: 382: 377: 371: 365: 359: 353: 348: 341: 338: 287: 284: 274: 271: 236: 233: 231: 230:Implementation 228: 202: 199: 123: 120: 15: 13: 10: 9: 6: 4: 3: 2: 563: 552: 549: 547: 544: 543: 541: 520: 516: 509: 506: 494: 490: 484: 481: 476: 474: 469: 465: 449: 445: 441: 434: 427: 425: 421: 410: 406: 400: 397: 390: 386: 383: 381: 378: 375: 372: 369: 366: 363: 360: 357: 354: 352: 349: 347: 344: 343: 339: 337: 335: 331: 327: 323: 319: 315: 311: 306: 304: 300: 297: 293: 285: 283: 281: 272: 270: 268: 267: 262: 258: 254: 250: 246: 242: 234: 229: 227: 225: 221: 217: 213: 208: 200: 198: 196: 190: 188: 182: 180: 176: 171: 167: 162: 160: 156: 151: 149: 143: 141: 137: 133: 129: 121: 119: 117: 113: 109: 105: 101: 96: 94: 90: 86: 83:, video RAM, 82: 78: 74: 71: 67: 64: 60: 56: 52: 48: 44: 40: 36: 32: 23: 19: 523:. Retrieved 508: 497:. Retrieved 483: 478:(1+32 pages) 461: 455:. Retrieved 412:. Retrieved 408: 399: 312:, an add-on 307: 289: 276: 264: 238: 204: 191: 183: 163: 159:AUTOEXEC.BAT 152: 147: 144: 125: 115: 111: 97: 49:of 640  45:between the 38: 34: 28: 18: 318:Lotus 1-2-3 207:Windows 3.0 108:Option ROMs 81:Option ROMs 540:Categories 525:2020-02-07 499:2020-02-07 457:2019-07-22 414:2020-12-20 391:References 273:Shadow RAM 170:MS-DOS 5.0 155:CONFIG.SYS 136:EMM386.EXE 104:Video BIOS 77:Video BIOS 464:DRDOS 5.0 440:Microsoft 280:real mode 187:OSI model 166:Microsoft 93:ROM BASIC 47:addresses 41:) is the 519:Archived 493:Archived 448:Archived 385:A20 line 380:LOADHIGH 376:(GEMMIS) 340:See also 303:RAM disk 175:MEMMAKER 322:patched 310:AllCard 259:). The 201:Windows 292:IBM XT 286:IBM XT 257:EMM386 195:MSCDEX 106:, the 102:, the 59:IBM PC 43:memory 33:, the 473:BradS 451:(PDF) 436:(PDF) 370:(HMA) 364:(EMS) 358:(XMS) 122:Usage 551:BIOS 308:The 299:PROM 140:QEMM 116:UMBs 100:BIOS 70:BIOS 63:8088 468:UMB 290:On 148:all 118:). 85:RAM 73:ROM 66:CPU 39:UMA 29:In 542:: 491:. 460:. 423:^ 407:. 334:MB 305:. 269:. 189:. 95:. 79:, 75:, 55:0x 51:KB 528:. 502:. 417:. 114:( 37:(

Index


DOS memory management
memory
addresses
KB
0x
IBM PC
8088
CPU
BIOS
ROM
Video BIOS
Option ROMs
RAM
memory-mapped I/O
ROM BASIC
BIOS
Video BIOS
Option ROMs
high memory area
DR DOS 5.0
EMM386.EXE
QEMM
CONFIG.SYS
AUTOEXEC.BAT
Microsoft
MS-DOS 5.0
MEMMAKER
terminate-and-stay-resident
OSI model

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.