MS-DOS and Windows command line mem command(What is, Concept and Definition)

The mem command allows users to determine how much memory is used and how much is available.

Availability


The mem command is an external command that is available to the following Microsoft operating systems as mem.exe.


Syntax Mem


Shows the amount of used and free memory on your system.

MEM [/SORT |/DEBUG |/FREE |/MODULE module name] [/PAGE]









/CLASSIFY o/C Sorts programs by memory usage.Lists the size of programs, provides a summary of memory in use, and lists the largest block of memory available.
/DEBUG or/D Shows the status of all in-memory modules, internal drivers, and other information.
/FREE or/F Displays information about the amount of free memory remaining in conventional and higher memory.
/MODULE or/M Shows a detailed list of the memory usage of a module.This option must be followed by the name of a module, optionally separated from/M by a colon.
/PAGE or/P Pause after each screen full of information.

Memory Examples

mem

This command will display information about your memory, as seen in the examples below.


Sample output from Microsoft Windows 95 and Windows 98:

Total memory type used for free---------------------------------Conventional 640 k 52 k 588 k Superior 0 k 0 k 0 k Reserved 384 k 384 k 0 k Extended (XMS) 31,768 k 168 k 31,576 k---------------------------------Total memory 31,768 k 168 k 31,576 k Total below 1 MB 640 k 52 k 588 k Total expanded (EMS) 32 M (33,046,528 bytes) Free Expansion (EMS) 16M (16,777,216 bytes)

Size of the largest executable program 588K (602,512 bytes) The largest free upper memory block 0K (0 bytes) MS-DOS resides in the area of High memory.

Sample output from Windows 2000 and Windows XP:

655360 bytes of total conventional memory 655360 bytes available for MS-DOS 633872 largest executable program size 1048576 bytes of contiguous extended memory total 0 bytes of contiguous available extended memory 941056 available bytes of MS-DOS resident XMS memory in the area of ​​m high memory mem/f

Shows the amount of free conventional memory.


Memory problems


When using the mem/c command from a DOS window in Windows, no top blocks are seen, as shown in the previous example.0 bytes are displayed in Windows because Windows reserves all global top memory blocks for Windows.


MS-DOS 6.2 and higher does not accept or recognize more than 64 MB of RAM when writing mem.

Additional information

Comments