No one sees the real me

仮想化PF基盤SE

メモリ負荷メモ

① 負荷コマンド

[root@naoki105 ~]# /dev/null < $(yes)

② ①実行後

[root@naoki105 0816]# vmstat 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0      0 398444   5544  31156    0    1     1     2   38    1  0  0 100  0  0
 1  0      0 198276   5544  31156    0    0     0     0 1015 50072 72 28  0  0  0
 1  2  30500  63228    604   7484    0 15250     2 15250  992 44311 73 27  0  1  0
 3  1 162216  65468    456   5180    0 65692   256 65694  691 24133 39 19  0 41  0
 1  1 319128  63024    144   4724    0 78454    42 78454  991 37973 60 23  0 17  0
 0  3 508924  49216    144   4700    0 95062     0 95062 1167 44649 71 28  0  1  0
 9  1 574460  71460    144   5924   32 32770   630 32770  475 12407 50 36  0 14  0
 4  0 617280  49228     76   5636    0 21412   104 21420  787 33117 73 27  0  0  0
 3  0 693684  53428     76   5672    0 38202     0 38202  600 16031 57 40  0  3  0
 3  0 768284  61584     76   5628    0 37300     0 37300  539 14657 48 35  0 17  0
 2  0 820956  50084     76   5628  344 26384   344 26384  480 14770 60 37  0  4  0
 4  0 874660  49188     76   5660    0 26852     0 26852  420 11574 54 32  0 15  0
 5  4 922060  49228     76   5660   32 23696    32 23696  117 2326  8  7  0 85  0
14  2 981336  63416     76   5540   16 29646   130 29646  289 3792 20 45  0 35  0
 7  0 1018664  51480     76   6708  106 18688   702 18688  731 28244 69 29  0  2  0
12  1 1099972  53408     88   6740   16 40656    22 40656  495 10852 57 43  0  0  0
 3  2 1204784  65844    176   6348  592 52966   636 52966  505 13908 60 38  0  2  0
 1  0 1211648  66380    304   6732   48 3478   392  3478  551 18090 63 34  0  3  0
 3  0 1270168  53688    436   6496  112 29328   296 29328  544 17567 61 35  0  4  0
 7  0 1330900  48964    436   6520   16 30432    16 30432  579 14953 60 40  0  0  0
 6  0 1413192  64868    436   5824    0 41146     0 41146  609 14605 60 40  0  0  0
^C
[root@naoki105 0816]#
[root@naoki105 0816]# free -m
             total       used       free     shared    buffers     cached
Mem:           980        183        796          0          1         14
-/+ buffers/cache:        168        812
Swap:         1983        122       1861
[root@naoki105 0816]#

①をとめたあともswpd は残り続ける

[root@naoki105 0816]# vmstat 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0 125380 815796   1836  14416    0    3     1     4   38    3  0  0 100  0  0
^C

② swapを無効化にする

[root@naoki105 ~]# swapoff -a
[root@naoki105 ~]#

③ ②実行後

[root@naoki105 0816]# free -m
             total       used       free     shared    buffers     cached
Mem:           980        308        671          2          2         21
-/+ buffers/cache:        284        695
Swap:            0          0          0
[root@naoki105 0816]#
[root@naoki105 0816]# vmstat 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0      0 688216   2348  22028    0    3     1     4   38    3  0  0 100  0  0
 0  0      0 688160   2348  22028    0    0     0     0   46   82  0  1 99  0  0
^C
[root@naoki105 0816]#

④ swap有効に戻す

[root@naoki105 ~]# swapon -a
[root@naoki105 ~]#