• Please review our updated Terms and Rules here

OS/2 1.3 question

alank2

Veteran Member
Joined
Aug 3, 2016
Messages
1,857
Location
USA
I figured out how to get back into OS/2 after booting into dos.

I wonder how to see how much memory is available in OS/2 however? I found a manual for 1.0 and it talks about a memory manager, but I don't see how to find out (1) free memory, and maybe (2) memory used by programs. Any tips?
 

Chuck(G)

25k Member
Joined
Jan 11, 2007
Messages
39,806
Location
Pacific Northwest, USA
It's been too many years since I last used 1.x, but I still have the complete set of developers' manuals. On some version of OS/2, I recall that you could run "mem /v" to see the memory breakdown, but I don't remember what versions first started that.
 

krebizfan

Veteran Member
Joined
May 23, 2009
Messages
5,475
Location
Connecticut
The easy built-in function (DosMemAvail) only tells the largest available block of free memory. The FAQ includes a complaint about lazy utilities that chose that route. Tracking down all the allocated segments including segments swapped out is not in the API. There were utilities that could do that but I don't remember the techniques. Nor can I find sites with the full range of OS/2 1.x utilities available.

MEM was added to the 32-bit versions of OS/2. The 32-bit versions have a number of API calls that make tracking memory usage much easier.
 
Top