Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the board
Thread view  Mix view  Order
dggionco

Buenos Aires - Argentina,
09.10.2026, 13:12
 

Physical RAM in pure MS-DOS (Users)

On different websites I have found divided opinions about the upper limit of "physical" RAM that can be used in pure MS-DOS.

Some people talk about a value of 3.5 GB (3584 MB) or 4 GB (4096 MB).

Since this forum has very high-level participants, I would like to know your opinion on this issue, and eventually, which "extenders" or "drivers" you use for modern machines that have large amounts of physical memory. :-)

Rugxulo

Homepage

Usono,
09.10.2026, 21:40

@ dggionco

Physical RAM in pure MS-DOS

> On different websites I have found divided opinions about the upper limit
> of "physical" RAM that can be used in pure MS-DOS.
>
> Some people talk about a value of 3.5 GB (3584 MB) or 4 GB (4096 MB).

As far as I know, the 3.5 GB (or even 2.9 GB) is normally due to address space / BIOS holes / firmware.

DJGPP programs usually assume a 2 GB address space.

There are probably workarounds (HIMEMSX? I forget).

Sometimes the DPMI host limits available RAM, too, even if you have more.

dggionco

Buenos Aires - Argentina,
11.10.2026, 20:00

@ dggionco

Physical RAM in pure MS-DOS

Thanks for your reply to my query, Rugxulo...

Let's see if some other forum member can provide us with a few more things.

Cheers :-)

Oso2k

12.10.2026, 07:53

@ dggionco

Physical RAM in pure MS-DOS

> upper limit of "physical" RAM that can be used in pure MS-DOS.

Define better what you mean here? Used by MS-DOS? Which version of MS-DOS? Used by MS-DOS applications? Are you constraining yourself to period relevant tech (<1998 or <1995)?


DOS mem command can have issues with more than 64MB for some versions. I think some had issues with 16MB too. Some older apps have issues with more than 16MB installed even if they don't have a use for it.

Few applications will be able to take advantage of more than 64MB and if they do, they're relatively lightly documented and are pretty much "non-standard conforming".

You best bet advantage to take of larger memory installations will be:
* djgpp with CWSDPMI r7
https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/system/cwsdpmi/
* HimemSX with RdiskSX and its smartdrv patch
https://github.com/Baron-von-Riedesel/HimemSX/blob/master/Readme.txt
https://github.com/Baron-von-Riedesel/HimemSX/blob/master/RDiskSX/RDiskSX.txt
https://github.com/Baron-von-Riedesel/HimemSX/tree/master/Smartdrv

I briefly tried these things on a HP t5745 thin client with 2GB of RAM and a Dell Optiplex 9020 with either 16GB or 32GB of RAM. IIRC, the HP did not like these bits of software but it was also a bit short on the RAM. The Optiplex did a little better. I could create the RAM disk but HimemSX was a bit unstable, as was the RAM disk. I don't recall if I enabled smartdrv. I didn't have time to dig in further at that moment. Maybe I'll try again soon.

Oso2k

12.10.2026, 08:10

@ Oso2k

Physical RAM in pure MS-DOS

> > upper limit of "physical" RAM that can be used in pure MS-DOS.
>
> Define better what you mean here? Used by MS-DOS? Which version of
> MS-DOS? Used by MS-DOS applications? Are you constraining yourself to
> period relevant tech (<1998 or <1995)?
>
>
> DOS mem command can have issues with more than 64MB for some versions. I
> think some had issues with 16MB too. Some older apps have issues with more
> than 16MB installed even if they don't have a use for it.
>
> Few applications will be able to take advantage of more than 64MB and if
> they do, they're relatively lightly documented and are pretty much
> "non-standard conforming".
>
> You best bet advantage to take of larger memory installations will be:
> * djgpp with CWSDPMI r7
> https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/system/cwsdpmi/
> * HimemSX with RdiskSX and its smartdrv patch
> https://github.com/Baron-von-Riedesel/HimemSX/blob/master/Readme.txt
> https://github.com/Baron-von-Riedesel/HimemSX/blob/master/RDiskSX/RDiskSX.txt
> https://github.com/Baron-von-Riedesel/HimemSX/tree/master/Smartdrv
>
> I briefly tried these things on a HP t5745 thin client with 2GB of RAM and
> a Dell Optiplex 9020 with either 16GB or 32GB of RAM. IIRC, the HP did not
> like these bits of software but it was also a bit short on the RAM. The
> Optiplex did a little better. I could create the RAM disk but HimemSX was
> a bit unstable, as was the RAM disk. I don't recall if I enabled smartdrv.
> I didn't have time to dig in further at that moment. Maybe I'll try again
> soon.


And there's also another RAM disk driver - https://bttr-software.de/forum/board_entry.php?id=18797#p18797

Oso2k

12.10.2026, 08:24

@ Oso2k

Physical RAM in pure MS-DOS

> And there's also another RAM disk driver -
> https://bttr-software.de/forum/board_entry.php?id=18797#p18797

And EMS driver for 64GB of RAM - https://board.flatassembler.net/topic.php?t=19410

Laaca

Homepage

Czech republic,
13.10.2026, 16:32

@ Oso2k

Physical RAM in pure MS-DOS

In the past I saw a nice table created by RayeR who compared the maximum RAM which can be used by various DPMI servers. However I am not able to find it more (maybe it disappeared from internet?)


But it is sligthly different topic - if the question is how much of RAM is accesible from pure MS-DOS, unmodified, without 3rd party drivers, the answer is, that with XMS method up to 4GB (minus reserved areas, so realisticaly around 3,5GB). With EMS method 32MB. With VCPI method 32MB.
However you can use 3rd drivers (like JEMM386) and the accessible XMS and VCPI will be bigger.

---
DOS-u-akbar!

RayeR

Homepage

CZ,
14.10.2026, 03:45

@ Laaca

Physical RAM in pure MS-DOS

> In the past I saw a nice table created by RayeR who compared the maximum
> RAM which can be used by various DPMI servers.

The table is here (1 page below)
http://rayer.g6.cz/programm/programm.htm#DJGPP_MEM

---
DOS gives me freedom to unlimited HW access.

samwdpckr

19.10.2026, 01:19

@ dggionco

Physical RAM in pure MS-DOS

There are no memory usage limitations on DOS.

Oso2k

19.10.2026, 22:49

@ samwdpckr

Physical RAM in pure MS-DOS

> There are no memory usage limitations on DOS.

I can guarantee you there are no DOS implementations (yet) that support 36-bit PAE pointers that you could find via HIMEMSX, RDISKSX or CWSDPMI r7. If the software is blind to these things, then the extra RAM might as well be removed from the machine.

Back to the board
Thread view  Mix view  Order
23729 Postings in 2249 Threads, 410 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum