系統管理
1753784 會員
7269 線上
108799 解決方案
發表新文章

關於menory 的問題

 
watermelonyu
教授

關於menory 的問題

我有兩台server: memory 分別是4G SWAP 是切兩個patation 是8g

NEW-corpsvr:/#swapinfo -tm

Mb Mb Mb PCT

TYPE AVAIL USED FREE USED

dev 4096 0 4096 0%

dev 4096 125 3971 3%

reserve - 5060 -5060

memory 3058 762 2296 25%

total 11250 5947 5303 53%



NEW-wrg01svr:/#swapinfo -tm

Mb Mb Mb PCT

TYPE AVAIL USED FREE USED

dev 4096 0 4096 0%

dev 4096 90 4006 2%

reserve - 6135 -6135

memory 3058 1262 1796 41%

total 11250 7487 3763 67%







請問我dev 有用掉2% 與 3% 這樣效能算ok嗎??

看前面的文章有提到dev 最好是用0%比較好 是否建議要增加memory 或是不需要

total 部分: 一台用58% 一台用67% 這樣是算ok嗎 還是要增加sawap ??

memory 是指pseudoswap 佔 memory 75%

那已經使用25% 與 41% 是指會吃掉實體memory 部分嗎? 與實體記憶體(Men Util)使用量有何關係??
9則回覆 9
watermelonyu
教授

關於menory 的問題

please provide output of following



#glance -m

#swapinfo -atm
watermelonyu
教授

關於menory 的問題

we have two server server A as below:



glance -a please view the attachment file . thanks

NEW-corpsvr:/#swapinfo -atm

Mb Mb Mb PCT START/ Mb

TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME

dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2

dev 4096 103 3993 3% 0 - 0 /dev/vg00/lvol10

reserve - 5326 -5326

memory 3058 748 2310 24%

total 11250 6177 5073 55% - 0 -

watermelonyu
教授

關於menory 的問題

we have two server. the other server b as below:

glance -a please view the attacement file. thanks.



NEW-wrg01svr:/#swapinfo -atm

Mb Mb Mb PCT START/ Mb

TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME

dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2

dev 4096 90 4006 2% 0 - 0 /dev/vg00/lvol10

reserve - 6521 -6521

memory 3058 719 2339 24%

total 11250 7330 3920 65% - 0 -

watermelonyu
教授

關於menory 的問題

那已經使用25% 與 41% 是指會吃掉實體memory 部分嗎....不是

可以用vmstat 的free 算出來或者用glance -m去看出真正memory 使用的量

watermelonyu
教授

關於menory 的問題

please use #man swapinfo see memory colume mean....like below

Memory paging area (also known as pseudo-swap).This is the amount of system memory that can be used to hold pages in the event that all of the above paging areas are used up. See "Paging Allocation" below. This line appears only if memory paging is enabled.

watermelonyu
教授

關於menory 的問題

" 那已經使用25% 與 41% 是指會吃掉實體memory 部分嗎?"

No. It is memory swap.



1. upload attach binary file to your system.

2. chmod 755 chkmem.bin

3. ./chkmem.bin



compare the result with your output of `swapinfo -atm`
watermelonyu
教授

關於menory 的問題

Oops, the binary file.
watermelonyu
教授

關於menory 的問題

Oops, the binary file.



請問這是什麼意思
watermelonyu
教授

關於menory 的問題

上一封我忘了附檔.