alt.hn

2/28/2026 at 4:00:48 PM

DOS Memory Management

https://www.os2museum.com/wp/dos-memory-management/

by ingve

3/3/2026 at 12:53:18 PM

I have to admit, DOS memory management is very fascinating to me as a very amateur kernel investigator. I have a book called “DOS beyond 640k” which describes all sorts of extensions people back in the 80s invented to get as much free memory as possible. The contents of course are irrelevant nowadays, but it is still interesting to read as a tech book.

by markus_zhang

3/3/2026 at 11:02:01 AM

Good times. Our DOS game PaybackTime 2 was only capable of using conventional memory. That was a major reason for the game really not having any proper animations for its player characters.

by nnevatie

3/4/2026 at 12:27:38 AM

I set up a computer for an engineering department. It was an IBM PS/2. They wanted to run AutoCAD and Ventura Publisher, one used extended memory and the other expanded.

I ended up making batch files that swapped around autoexec.bat and config.sys files so they could run.

by GarnetFloride

3/3/2026 at 9:16:54 AM

'MZ' has been confirmed to be the initials of Mark Zbikowski, there's no question about it. It's not "Memory" + "Last".

by gschizas

3/3/2026 at 10:36:45 AM

Given the MZ magic bytes in the EXE format header - see https://en.wikipedia.org/wiki/DOS_MZ_executable, I would have assumed an association with Mark Zbikowski as well.

The ARR is probably Aaron R Reynolds (also associated with the AARD code for detecting non-MSDOS environments), but you can't ask for his opinion since he passed about 20 years ago - https://www.reed.edu/reed-magazine/in-memoriam/obituaries/no....

Also https://en.wikipedia.org/wiki/AARD_code and a Raymond Chen story involving aaronr - https://devblogs.microsoft.com/oldnewthing/20190924-00/?p=10... and a pic of him with the Windows team - https://web.archive.org/web/20191014055254/https://community...

from another os2museum.com article about MS-DOS, https://www.os2museum.com/wp/dos/dos-3-0-3-2/

  The development of DOS 3.0 was led by Mark Zbikowski and *Aaron Reynolds*, both experienced DOS 2.x programmers.

by canucker2016

3/3/2026 at 11:29:58 AM

Confirmed by a Hacker News rando. Seems legit.

by pwdisswordfishy

3/3/2026 at 11:50:17 AM

How about "confirmed by Mark Zbikowski himself in a video interview"? Does that sound better?

https://youtu.be/c6yPoWrdjkU?si=hxvXTE6ZsdvJs5U9&t=1266

(roughly 21:06 into the video)

by einr

3/3/2026 at 12:00:36 PM

That's talking about the MZ signature at the start of every DOS EXE executable (and therefore every Windows EXE as they have DOS stubs), not this additional use as markers in the DOS memory management code. Which probably is also Mark Zbikowski using his initials, but doesn't seem to be confirmed.

by fredoralive

3/3/2026 at 12:12:55 PM

OK, fair enough!

by einr

3/3/2026 at 2:39:57 PM

There's a retail tool that lets you get a lot more memory below 1MB. 639K (625K free) conventional, 262K upper (177K free).

If you remember seeing how, you'll get a free virtual cookie.

by sqldba

3/3/2026 at 1:33:00 PM

Mmmm, flashbacks of complex sets of AUTOEXEC.BAT & CONFIG.SYS files that we'd swap in and out using batch files to support different memory configurations...

by ubermonkey

3/3/2026 at 8:52:37 AM

[flagged]

by 5o1ecist

3/3/2026 at 12:03:23 PM

Ahh, memories.

I'd done so well optimizing my conventional memory with my rig (a 486SX w/ 4, then later 16 MB of RAM), then I purchased a Media Vision Pro/ Audio Spectrum 16 card and screwed it all up.

The silly thing purported SoundBlaster compatibility but needed a TSR that, if memory serves, couldn't be loaded into upper memory for that "compatibility" to actually work. It was maddening, but I'd already spent the money. Then there was the matter of throwing away more memory for the drive for the card's onboard SCSI controller... Grr...

by EvanAnderson

3/3/2026 at 9:06:30 AM

637k is pretty good! There was an automated command in later DOS versions that would try to optimise memory, but I don't think it got results as good.

by MrBuddyCasino

3/3/2026 at 12:26:56 PM

Its not just good, its the maximum you can get with MS-DOS. The remaining 3 kb are the interrupt table, the BDA and the IO.SYS stub.

This was detailed in Geoff Chapells "DOS Internals". I loved that book.

by blueflow

3/3/2026 at 12:56:25 PM

BTW for anyone interested, Geoff Chapells has a wonderful website dedicated to Microsoft OS internals. RIP Geoff.

by markus_zhang

3/3/2026 at 12:54:05 PM

[flagged]

by 5o1ecist

3/3/2026 at 9:20:15 AM

MEMMAKER. It was okay, but it was so invasive in modifying your CONFIG.SYS and AUTOEXEC.BAT that I never really trusted it. I preferred hand-optimizing.

by einr

3/3/2026 at 11:58:24 AM

> I preferred hand-optimizing.

Same here.

But then, it was my job, it wasn't for gaming or anything. I don't play games much and I had an Acorn Archimedes at home.

I could usually get 620 kB free by hand with no problem, even with a mouse, a CD, and a network stack.

That was enough for 99% of work business apps.

Being able to get ACT! for DOS running alongside a Novell Netware client on Sony laptops won me a senior job in the City of London in about 1992. (I didn't like it and quit a few years later, after a major motorbike crash made me re-assess life priorities.)

In that job I rolled out 10base-T and desktop Windows for Workgroups 3.11. That specific version, WfWf 3.11 (and not WfWg 3.1 or Windows 3.11, which were both different) contained the first version of what became VFAT, which led the way to FAT32 and Long File Names on FAT. It was a prototype of the 32-bit driver subsystem that enabled Windows 95.

And Win95 not only made the Win3 GUI irrelevant, it made DOS memory optimisation irrelevant too.

In the same City job, I also rolled out Windows NT 3.1 in production. Of course, a decade later, that rendered Windows 9x irrelevant.

by lproven

3/3/2026 at 6:26:06 PM

> And Win95 not only made the Win3 GUI irrelevant, it made DOS memory optimisation irrelevant too.

Unless you wanted to play a DOS game. Then the fighting between DOS and Win 95 for the 640k began.

by hulitu

3/4/2026 at 9:46:57 AM

I am not a gamer and never really was, but a default config of Win95 made a lot of RAM available for DOS apps, as I recall. (And I was a serious expert in this area, 30-35 years ago.)

I used to do very basic memory optimisation on my Win95 boxes, just because I could with minimal mental effort, and then my DOS sessions had 630 kB or so free.

What I confess I did not investigate was DOSSTART.BAT and optimising what RAM was left when Windows was in "DOS mode".

https://smallvoid.com/article/win9x-dosstart.html

Too much effort for too little reward, for me.

by lproven

3/3/2026 at 5:45:50 PM

I had a 286 with 1MB of RAM. It had a chips and technologies chipset that used that RAM to shadow the ROM BIOS but you could also have it put memory anywhere in the upper memory area that was free. So I too religiously optimized conventional/upper memory because that was all the memory that I had.

by wvenable

3/3/2026 at 9:27:53 AM

I don't remember the exact number, but I remember that using memmaker and some manual fine-tuning, was on the 620-63X range of conventional RAM.

by Zardoz84

3/3/2026 at 9:23:37 AM

I remember playing at least one game without the mouse, to save those precious KBs…

by mhd

3/3/2026 at 11:49:56 AM

We did special boot disks to strip out everything but what was needed for the game, but sometimes we still couldn’t make it One day I went to a friends house and he had like way more conventional memory in memtest! What the hell I spent hours and days getting 620kb

He was running Dr -dos

by 486sx33

3/3/2026 at 11:59:03 AM

> He was running Dr -dos

Yep, that made it a bit easier.

Still around, you know!

It's the kernel of SvarDOS.

http://svardos.org/

by lproven

3/3/2026 at 8:52:40 AM

[dead]

by mlvljr