Tru64 Unix
1748036 會員
4575 線上
108757 解決方案
發表新文章

請問如何檢查系統記憶體的是否足夠?

 
watermelonyu
教授

請問如何檢查系統記憶體的是否足夠?

請問如何檢查系統記憶體的是否足夠?

只看vmstat 看到的free足夠判斷嗎?
5則回覆 5
watermelonyu
教授

請問如何檢查系統記憶體的是否足夠?

For your reference.



You can inspect your system with following

point, only `vmstat` is not enough



Besides `vmstat`, you can also monitor the

paging, and swapping status.



For example, if pageins or pageouts are

constant or execessive, this could indicate

a physical memory shortage.



There're also four page fault flag can be

monitor via `vmstat`.



fault - Number of address translation faults that have occurred.

cow - Number of copy-on-write page faults,

zero - Number of zero-filled-on-demand page faults,

react - Number of pages that have been faulted while on the inactive list.



You can also monitor the swap usage.

Swapping is usually the result of

insufficient physical memory on the system.

Use `swapon -s` to monitor if any swap space

in use.



watermelonyu
教授

請問如何檢查系統記憶體的是否足夠?

vmstat 的資料不夠完整, 就算用 vmstat -P 也只能判斷某些系統的 memory 使用量是否異常, 如WIRED Pages, ubc pages 等等.



就算已經用到 swap space, vmstat 的 free 欄位也一定不會是 0, 所以根本之道要看 swapon -s 的 In-use space
watermelonyu
教授

請問如何檢查系統記憶體的是否足夠?

vmstat 的資料不夠完整, 就算用 vmstat -P 也只能判斷某些系統的 memory 使用量是否異常, 如WIRED Pages, ubc pages 等等.



就算已經用到 swap space, vmstat 的 free 欄位也一定不會是 0, 所以根本之道要看 swapon -s 的 In-use space
watermelonyu
教授

請問如何檢查系統記憶體的是否足夠?

vmstat 的資料不夠完整, 就算用 vmstat -P 也只能判斷某些系統的 memory 使用量是否異常, 如WIRED Pages, ubc pages 等等.



就算已經用到 swap space, vmstat 的 free 欄位也一定不會是 0, 所以根本之道要看 swapon -s 的 In use space
watermelonyu
教授

請問如何檢查系統記憶體的是否足夠?

vmstat 的資料不夠完整, 就算用 'vmstat -P` 也只能判斷某些系統的 memory 使用量是否異常, 如WIRED Pages, ubc pages 等等.



就算已經用到 swap space, vmstat 的 free 欄位也一定不會是 0, 所以根本之道要看 `swapon -s` 的 `In-use space`