mem (查看使用了多少内存以及有多少内存可用)

小猪老师 发表于 2020-06-23 14:27
浏览次数:
在手机上阅读

mem命令允许用户确定使用了多少内存以及有多少内存可用。

查看英文版

目录

1 mem 运行系统环境

2 mem 语法

3 mem 示例

4 mem的问题

mem 运行系统环境

Windows 95

Windows 98

Windows 2000

Windows NT

Windows ME

MS-DOS 4.0 及以下

mem 语法

显示系统中已使用和空闲内存的数量。

MEM [/CLASSIFY | /DEBUG | /FREE | /MODULE module name] [/PAGE]
/CLASSIFY or /C 按内存使用情况对程序进行分类。
列出程序的大小,提供正在使用的内存摘要,并列出可用的最大内存块。
/DEBUG or /D 显示内存中所有模块的状态,内部驱动程序和其他信息。
/FREE or /F 显示关于传统内存和上层内存中剩余的可用内存数量的信息。
/MODULE or /M 显示模块内存使用情况的详细清单。
这个选项后面必须跟一个模块的名称,可以选择用冒号与/M分隔。
/PAGE or /P 在每个屏幕充满信息后暂停。

Displays the amount of used and free memory in your system.

MEM [/CLASSIFY | /DEBUG | /FREE | /MODULE module name] [/PAGE]
/CLASSIFY or /C Classifies programs by memory usage. Lists the size of programs, provides a summary of memory in use, and lists the largest memory block available.
/DEBUG or /D Displays the status of all modules in memory, internal drivers, and other information.
/FREE or /F Displays information about the amount of free memory left in both conventional and upper memory.
/MODULE or /M Displays a detailed listing of a module's memory use. This option must be followed by the name of a module, optionally separated from /M by a colon.
/PAGE or /P Pauses after each screen full of information.

查看英文版

查看中文版

mem 示例

mem

这个命令将显示有关内存的信息,如下面的示例所示。

microsoftwindows95和windows98示例输出:

Memory type        Total       Used    Free
---------------    ------      ------  ------
Conventional       640 k       52 k    588 k
Upper              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 under 1 MB   640 k       52 k    588 k
Total Expanded (EMS)       32 M (33,046,528 bytes)
Free Expanded (EMS)        16 M (16,777,216 bytes)

Largest executable program size            588 K (602,512 bytes)
Largest free upper memory block            0 K   (0 bytes)
MS-DOS is resident in the high memory area.

Windows 2000和Windows XP示例输出:

655360 bytes total conventional memory
655360 bytes available to MS-DOS
633872 largest executable program size
1048576 bytes total contiguous extended memory
0 bytes available contiguous extended memory
941056 bytes available XMS memory MS-DOS resident in High Memory Area
mem /f

显示常规的内存空闲量。

mem

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

Microsoft Windows 95 and Windows 98 example output:

Memory type        Total       Used    Free
---------------    ------      ------  ------
Conventional       640 k       52 k    588 k
Upper              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 under 1 MB   640 k       52 k    588 k
Total Expanded (EMS)       32 M (33,046,528 bytes)
Free Expanded (EMS)        16 M (16,777,216 bytes)

Largest executable program size            588 K (602,512 bytes)
Largest free upper memory block            0 K   (0 bytes)
MS-DOS is resident in the high memory area.

Windows 2000 and Windows XP example output:

655360 bytes total conventional memory
655360 bytes available to MS-DOS
633872 largest executable program size
1048576 bytes total contiguous extended memory
0 bytes available contiguous extended memory
941056 bytes available XMS memory MS-DOS resident in High Memory Area
mem /f

Display the amount of conventional memory free.

查看英文版

查看中文版

mem的问题

在Windows中的DOS窗口中使用mem /c命令时,不会看到上层块,如上例所示。
在Windows中显示0字节,因为Windows为Windows保留了所有全局上部内存块。

当输入mem时,MS-DOS 6.2及以上版本不接受或识别超过64 MB的ram。

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

MS-DOS 6.2 and above does not accept or recognize more than 64 MB of ram when typing mem.

查看英文版

查看中文版

其他命令行

map | md | mkdir | mklink | mode | more | move | msav | msbackup | mscdex | msd | msg |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条