zhaolin
作者zhaolin·2008-04-24 16:22
·

新版AIX操作系统内存页的奇怪问题

字数 25157阅读 1942评论 1赞 0

因为升级了一部份AIX操作系统到5300-05-06,前几天在执行svmon命令时突然发现,下面没有显示使用的不同大小的内存页的信息
--查看系统当前使用的内存情况

--OS:AIX
--VERSION:5300-05-06
db_test_1:/@root>#svmon -G
               size      inuse       free        pin    virtual
memory     28049408   10008415   18040993    7020133    7310511
pg space    8388608      14178

               work       pers       clnt
pin         7020133          0          0
in use      7310509          0    2697906
--此处没有显示不同大小的内存页使用信息

--下面是另外一个版本的操作系统的svmon信息
--OS:AIX
--VERSION:5300-05-csp
db_test_2:/>#svmon -G
               size      inuse       free        pin    virtual
memory     27394048   26824129     569919   20889867   24188457
pg space   16777216      86025

               work       pers       clnt
pin        20889867          0          0
in use     24188457          0    2635672

PageSize   PoolSize      inuse       pgsp        pin    virtual
s   4 KB          -   26538929      86025   20701755   23903257   --系统使用了4k的小页面
m  64 KB          -      17825          0      11757      17825   --系统使用了64k的中页面

如果出现了L标识,那表示系统中有程序使用了Large page,即大页面.

--以下的信息都是在5300-05-06上看到的
--64位的系统
db_test_1:/@root>#bootinfo -y
64
db_test_1:/@root>#bootinfo -K
64

--查看系统当前支持的页面大小,一种是4K,另外一种是16M的页面
db156_ha:/@root>#pagesize -af
4K
16M

--从下面的命令中,看出当前系统只使用了4K的页面
db_test_1:/@root>#pagesize
4096

--IBM的人介绍的此方法来查看系统当前使用内存页,如下显示的那样,只有4k的页面
db_test_1:/@root>#vmstat -P all

System configuration: mem=109568MB

pgsz            memory                           page                
----- -------------------------- ------------------------------------
           siz      avm      fre    re    pi    po    fr     sr    cy
   4K 28049408  7310399 18041092     0     0     0   148   2147     0
  
 
--但当我看一个具体的进程使用的页面信息时,竟然发现系统是使用了中页面的,但为什么通过vmstat -P all信息看不出来呢?
--这是一个oracle进程
db_test_1:/@root>#svmon -P 168338

-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual 64-bit Mthrd  16MB
  168338 oracle         5493476  5485796        0  5490498      Y     N     N

    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
  5126a0  70000026 work default shmat/mmap           s  65536 65536    0 65536
  9ea73f  70000025 work default shmat/mmap           s  65536 65536    0 65536
  ab2d54  7000000f work default shmat/mmap           s  65536 65536    0 65536
  5626ae  70000021 work default shmat/mmap           s  65536 65536    0 65536
  8ca91b  70000010 work default shmat/mmap           s  65536 65536    0 65536
  94ab2b  70000040 work default shmat/mmap           s  65536 65536    0 65536
  5ea8bf  70000009 work default shmat/mmap           s  65536 65536    0 65536
  60aac3  70000043 work default shmat/mmap           s  65536 65536    0 65536
  5fa4bd  70000038 work default shmat/mmap           s  65536 65536    0 65536
  eb25d4  70000028 work default shmat/mmap           s  65536 65536    0 65536
  21a841  70000037 work default shmat/mmap           s  65536 65536    0 65536
  a82d52  70000011 work default shmat/mmap           s  65536 65536    0 65536
  cc259a  7000003b work default shmat/mmap           s  65536 65536    0 65536
  b6256e  70000041 work default shmat/mmap           s  65536 65536    0 65536
  cc2d9a  70000051 work default shmat/mmap           s  65536 65536    0 65536
  502ca2  70000031 work default shmat/mmap           s  65536 65536    0 65536
  5aa8b7  7000001e work default shmat/mmap           s  65536 65536    0 65536
  6024c2  70000047 work default shmat/mmap           s  65536 65536    0 65536
  8ea91f  70000014 work default shmat/mmap           s  65536 65536    0 65536
  222846  7000000d work default shmat/mmap           s  65536 65536    0 65536
  eca3db  7000002c work default shmat/mmap           s  65536 65536    0 65536
  f39be5  7000000a work default shmat/mmap           s  65536 65536    0 65536
  60a4c3  70000044 work default shmat/mmap           s  65536 65536    0 65536
  a6ab4f  7000002b work default shmat/mmap           s  65536 65536    0 65536
  cda599  7000004e work default shmat/mmap           s  65536 65536    0 65536
  8fa91d  70000012 work default shmat/mmap           s  65536 65536    0 65536
  fc25fa  7000001b work default shmat/mmap           s  65536 65536    0 65536
  5aa4b7  70000036 work default shmat/mmap           s  65536 65536    0 65536
  88ad13  70000006 work default shmat/mmap           s  65536 65536    0 65536
  14282a  70000039 work default shmat/mmap           s  65536 65536    0 65536
  792af0  7000002d work default shmat/mmap           s  65536 65536    0 65536
  fd25f8  7000004d work default shmat/mmap           s  65536 65536    0 65536
  6224c6  7000001d work default shmat/mmap           s  65536 65536    0 65536
  90a923  70000018 work default shmat/mmap           s  65536 65536    0 65536
  d5ada9  70000020 work default shmat/mmap           s  65536 65536    0 65536
   d2a18  7000001f work default shmat/mmap           s  65536 65536    0 65536
  882512  7000004b work default shmat/mmap           s  65536 65536    0 65536
  5226a6  70000024 work default shmat/mmap           s  65536 65536    0 65536
  15a829  70000050 work default shmat/mmap           s  65536 65536    0 65536
  91a921  70000016 work default shmat/mmap           s  65536 65536    0 65536
  a12d40  70000005 work default shmat/mmap           s  65536 65536    0 65536
  fe25fe  70000017 work default shmat/mmap           s  65536 65536    0 65536
  a92b50  70000027 work default shmat/mmap           s  65536 65536    0 65536
  3caa7b  70000046 work default shmat/mmap           s  65536 65536    0 65536
  df85bd  7000003e work default shmat/mmap           s  65536 65536    0 65536
  d02da2  7000002e work default shmat/mmap           s  65536 65536    0 65536
  e7a7cd  7000000e work default shmat/mmap           s  65536 65536    0 65536
  ff25fc  70000019 work default shmat/mmap           s  65536 65536    0 65536
  73a8e5  70000042 work default shmat/mmap           s  65536 65536    0 65536
  efaddd  70000034 work default shmat/mmap           s  65536 65536    0 65536
  b1ad61  7000002f work default shmat/mmap           s  65536 65536    0 65536
  a22d46  70000001 work default shmat/mmap           s  65536 65536    0 65536
  f7abed  7000001a work default shmat/mmap           s  65536 65536    0 65536
  23a645  70000029 work default shmat/mmap           s  65536 65536    0 65536
  d125a0  70000048 work default shmat/mmap           s  65536 65536    0 65536
       0         0 work kernel segment (lgpg_vsid=0) L     16    16    0    16  --此进程的内核段使用了Large page
  5528a8  7000004c work default shmat/mmap           s  65536 65536    0 65536
  a2a347  7000000c work default shmat/mmap           s  65536 65536    0 65536
  17282c  7000003c work default shmat/mmap           s  65536 65536    0 65536
  5526a8  70000022 work default shmat/mmap           s  65536 65536    0 65536
  e805d2  70000002 work default shmat/mmap           s  65536 65536    0 65536
  f8a7f3  7000001c work default shmat/mmap           s  65536 65536    0 65536
  e185c1  70000023 work default shmat/mmap           s  65536 65536    0 65536
  a22346  7000004f work default shmat/mmap           s  65536 65536    0 65536
  a3ad45  70000003 work default shmat/mmap           s  65536 65536    0 65536
   12600  70000015 work default shmat/mmap           s  65536 65536    0 65536
  9c233a  70000008 work default shmat/mmap           s  65536 65536    0 65536
  d285a7  7000003a work default shmat/mmap           s  65536 65536    0 65536
  5426aa  70000032 work default shmat/mmap           s  65536 65536    0 65536
   92c10  70000030 work default shmat/mmap           s  65536 65536    0 65536
  6b2cd4  70000007 work default shmat/mmap           s  65536 65536    0 65536
  20aa43  70000035 work default shmat/mmap           s  65536 65536    0 65536
  a92d50  70000013 work default shmat/mmap           s  65536 65536    0 65536
  4fa69d  7000002a work default shmat/mmap           s  65536 65536    0 65536
  4ba895  7000003d work default shmat/mmap           s  65536 65536    0 65536
  b02762  7000003f work default shmat/mmap           s  65536 65536    0 65536
   28607  70000000 work default shmat/mmap           s  65536 65536    0 65536
  a0a343  7000000b work default shmat/mmap           s  65536 65536    0 65536
  eba7d5  70000033 work default shmat/mmap           s  65536 65536    0 65536
  412a80  70000049 work default shmat/mmap           s  65536 65536    0 65536
  6026c2  70000004 work default shmat/mmap           s  65536 65536    0 65536
  602ac2  7000004a work default shmat/mmap           s  65536 65536    0 65536
  43aa85  70000045 work default shmat/mmap           s  65536 65536    0 65536
  152828  70000052 work default shmat/mmap           s  46286 46286    0 46286
  3b8675        10 clnt text data BSS heap,          s   2962     0    -     -
                        /dev/fslv00:1372                                      
  d305a4        11 work text data BSS heap           s   2002     0    0  2002
    8001  9ffffffd work shared library               s   1344     0    0  1344
  5030a0  90000000 work shared library text          s    955     0    0   955
  b3ad65  9001000a work shared library data          s     92     0    0    92
  ce259e  80020014 work USLA heap                    s     91     0    0    91
  27a84d  8001000a work private load data            s     90     0    0    90
  eb81d5  90020014 work shared library               s     71     0    0    71
  b5a569 f00000002 work process private              s     28    22    0    28
  e825d2  8fffffff work private load data            s     22     0    0    22
  f4adeb  ffffffff work application stack            s     18     0    0    18
  ed01d8  9fffffff clnt USLA text,/dev/hd2:2201      s     12     0    -     -
  930126  9ffffffe work shared library               s     11     0    0    11
  c4058a         - clnt /dev/fslv00:12326            s      4     0    -     -
  b22d66  fffffff5 work application stack            s      0     0    0     0
  6928d0  fffffff7 work application stack            s      0     0    0     0
  2aa857  fffffff9 work application stack            s      0     0    0     0
  a6a54f  fffffffc work application stack            s      0     0    0     0
  602cc2  fffffff1 work application stack            s      0     0    0     0
  5fa6bd  fffffff6 work application stack            s      0     0    0     0
  292850  fffffffb work application stack            s      0     0    0     0
  ee2dde  fffffffa work application stack            s      0     0    0     0
  6f2cdc  fffffff8 work application stack            s      0     0    0     0
  282852  fffffffd work application stack            s      0     0    0     0
  a9ad51  fffffff3 work application stack            s      0     0    0     0
  4fa89d  fffffffe work application stack            s      0     0    0     0
    2c02  fffffff2 work application stack            s      0     0    0     0
  a72d4c  fffffff4 work application stack            s      0     0    0     0
  17a82d  fffffff0 work application stack            s      0     0    0     0
 
从进程使用的内存信息来看,系统确实存在着大页,但为什么通过svmon -G和vmstat -P all命令看不到呢?
也不知道这是不是新版本操作系统的bug?

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论1 条评论

无000痕无000痕系统工程师中软
2015-08-04 17:21
为什么系统能ping 住 如此多内存
Ctrl+Enter 发表

作者其他文章

X社区推广