了解Mac上top的输出

时间:2019-05-08 15:03:44

标签: macos process

.jpg

我在Mac上看到top的以下输出。我对该手册的内容不太了解。

例如,我只有8GB的内存。为什么显示15G PhysMem?什么是(x: 0, y: 50, width: 100, height: 200, img-url='http://xxxx', name:'test')

对于“磁盘”,数字“ 21281572 / 769G读取”是自计算机启动以来读取的磁盘大小吗?

对于网络,自机器启动以来是数字吗?

对于VM,=> result: 'test.jpg'$ man top CPU Percentage of processor usage, broken into user, system, and idle components. The time period for which these percentages are calculated depends on the event counting mode. Disks Number and total size of disk reads and writes. LoadAvg Load average over 1, 5, and 15 minutes. The load average is the average number of jobs in the run queue. MemRegions Number and total size of memory regions, and total size of memory regions broken into private (broken into non-library and library) and shared components. Networks Number and total size of input and output network packets. PhysMem Physical memory usage, broken into wired, active, inactive, used, and free components. Procs Total number of processes and number of processes in each process state. SharedLibs Resident sizes of code and data segments, and link editor memory usage. Threads Number of threads. Time Time, in H:MM:SS format. When running in logging mode, Time is in YYYY/MM/DD HH:MM:SS format by default, but may be overridden with accumulative mode. When running in accumulative event counting mode, the Time is in HH:MM:SS since the beginning of the top process. VirtMem Total virtual memory, virtual memory consumed by shared libraries, and number of pageins and pageouts. Swap Swap usage: total size of swap areas, amount of swap space in use and amount of swap space available. Purgeable Number of pages purged and number of pages currently purgeable. Below the global state fields, a list of processes is displayed. The fields that are displayed depend on the options that are set. The pid field displays the following for the architecture: + for 64-bit native architecture, or - for 32-bit native architecture, or * for a non-native architecture. wired, active, inactive, used, and free componentsvsize是什么?

framework vsize
swapins

1 个答案:

答案 0 :(得分:0)

  

我只有8GB的内存。为什么显示15G PhysMem?

由于使用了虚拟内存,因此有15G可用空间,高于机器的8Gb,操作系统可以选择将内存中的页面交换(复制/输出)到其他存储(硬盘/ SSD)。

  

有线,活动,不活动,使用和免费的组件是什么?

这些是虚拟内存使用的内存物理页的状态。所以我们有:

wired-正在使用且无法交换(分页)到磁盘(例如,操作系统本身)的内存页面

active-最近引用的用于虚拟内存的内存页面。除非没有其他页面可用,否则它们不太可能被调出页面

inactive-用于虚拟内存但最近未引用的内存页面。如果有需要,它们很可能会被换掉

used-有时称为“推测性”,物理内存在操作系统猜测可能需要此时进行推测性映射,但尚未激活

free-物理内存页面未用于虚拟内存,并且立即可用

  

对于“磁盘”,数字'21281572 / 769G read'是自计算机启动以来读取的磁盘大小   对于网络,自机器启动以来是数字吗?

是的,我相信这些是自重启操作系统以来的。

  

对于VM,什么是vsize,框架vsize,交换区,交换区?

我希望这些是:

vsize-磁盘上正在使用的虚拟空间量

framework vsize-对此一无所知!

swapins-从虚拟内存加载到物理内存的内存页面数

swapout-从虚拟内存换出到物理内存的内存页面数