官术网_书友最值得收藏!

Monitoring a host-swapping activity

Excessive memory demand can cause severe performance problems for one or more VMs on an ESXi host. When ESXi is actively swapping from the memory of a VM to disk, the performance of that VM will degrade. The overhead of swapping a VM's memory to a disk can also degrade the performance of other VMs because the VM expects to be writing to RAM (speeds measured in nanoseconds), but it is unknowingly writing to disk (speeds measured in milliseconds).

The counters in vSphere Client for monitoring the swapping activity are as follows:

  • Memory Swap In Rate: The rate at which memory is being swapped in from the disk.
  • Memory Swap Out Rate: The rate at which memory is being swapped out to the disk.
  • Swapped: The total amount of data that is sitting inside the .vswp hypervisor-level swap file. However, this doesn't tell you anything about the current state of the performance, nor about the current state of free pRAM. It just tells you that at some point in the past, there was low free pRAM. The only use of this counter is to check whether there was memory shortage in the past and whether there's a risk of Swap In (and bad performance) in future. But it's hard to estimate how likely the Swap In process will be because sometimes there's junk data that will be rarely requested again (for example, pages holding rarely accessed data, such as overly aggressive filesystem caching, or zeroed out pages that were actually deemed free by the guest operating system).

High values of the counter indicate insufficient memory and that performance is suffering as a result.

However, a high Swap Out rate means that the host is low on free pRAM, but essentially it does not indicate a current performance problem. A high Swap In rate indicates a current performance problem but not necessarily that the host is currently low on free pRAM.

Swap In happens only on demand, which could be a week after the data was swapped out, and maybe a free-host-memory shortage has long since been resolved.
主站蜘蛛池模板: 阜宁县| 钟山县| 定陶县| 岐山县| 于田县| 溆浦县| 平度市| 南和县| 大田县| 克拉玛依市| 都江堰市| 曲沃县| 茶陵县| 平凉市| 抚远县| 昌乐县| 马公市| 黑河市| 建平县| 星子县| 遂宁市| 同德县| 鸡西市| 布尔津县| 霞浦县| 阜南县| 合阳县| 札达县| 财经| 靖宇县| 稷山县| 斗六市| 南江县| 三穗县| 马山县| 获嘉县| 江都市| 开封市| 聂拉木县| 阳春市| 长寿区|