hp-ux 11i v3 メモリ管理サブシステム · pdf filejfs (vxfs) のチューニング...

Download HP-UX 11i v3 メモリ管理サブシステム · PDF filejfs (vxfs) のチューニング ..... 16 アプリケーション開発者が考慮すべき事項

If you can't read please download the document

Upload: tranbao

Post on 06-Feb-2018

287 views

Category:

Documents


11 download

TRANSCRIPT

  • HP-UX 11i v3

    .......................................................................................................................................... 3 .................................................................................................................. 3 ............................................................................................... 3 top .............................................................................................................................................. 4 swapinfo ...................................................................................................................................... 5 HP GlancePlus .............................................................................................................................. 5 sar .............................................................................................................................................. 8 locinfo: pstat_getlocality() ....................................................................................... 9 ipcs ............................................................................................................................................ 10 ..................................................................................................................... 11

    ................................................................................................. 11 .................................................................................. 11 ...................................................................................................................... 11

    ........................................................................................................ 14 ................................................................................................ 14 () .............................................................................................. 14 .......................................................................................................... 15 ................................................................................................................ 15 ...................................................................................................... 15 JFS (VxFS) ............................................................................................................. 16

    ............................................................................................ 17 ..................................................................................................................... 17 .............................................................................................................................. 17 ......................................................................................................................... 18

    ........................................................................................................................................ 18

    1 - OS ....................................................................................................... 19 HP-UX 11i v3 .............................................................. 19 HP-UX 11i v2 HP-UX 11i v3 ........................................................................................... 19

    ........................................................................................................... 19 ........................................................................................................ 19

    2 - ......................................................................... 19

    3 - (vhand) ................................................................................................. 20

    4 - ........................................................................................................ 21 .................................................................................................................... 21 .................................................................................................................... 21

    .......................................................................................................... 21 ............................................................................................... 21

    .......................................................................................................... 22 ..................................................................................................... 22

  • ......................................................................................................... 23 ....................................................................................................... 23 .......................................................................................................... 23

    5 - locinfo ............................................................................................. 24

  • 3

    HP-UX 11i v3

    HP-UX HP-UX 11i v3 HP-UX 11i v3 1

    IntegrityHP Integrity HP9000 PA-RISC 2

    locinfo

    RAM DIMM

    HP-UX

    topswapinfoglance sar NUMA pstat_getlocality() locinfo ipcs HP

  • 4

    top top(1) CPU top -h

    Memory SIZE RES Memory 3 ()

    () 100362036KB 15489832KB20GB 95.7GB 14.8GB

    102756728KB (98GB) 16389916KB (15.6GB)

    127850076KB (121.9GB)

    SIZE mmap I/O

    RES

    1

    1

  • 5

    swapinfo swapinfo(1M) swapinfo -mt

    dev (/dev/vg00/lvol2) 2 localfs

    /tmppaging

    HP-UX

    reserve

    FREE

    memory

    FREE

    total 48% 80% 90%

    2 0 2

    HP GlancePlus HP GlancePlus glance(1M) glance Motif glance 4glance ID (PID)

  • 6

    m Memory Report

    top Memory Report 95.7GB 26GB (Sys Mem) (Mem Util) 52% swapinfo 48%KB Paged In High RateKB Paged Out (0) KB Paged Out 12.2GB ( filecache_min glance filecache_min ) 255.7GB 37%10%5%48%

    (Deactivations) (Reactivations) (0) Reactivations Deactivations

  • 7

    w Swap Space

    swapinfo Priority t System Tables Report

    111

  • 8

    M Process Memory Regions PID 8121 sqlplus

    1 RefCt () TEXT 3 1 RSS () VSS sar sar(1M)

    /

    sar -q 60 1

  • 9

    sar -w 60 1 /

    bswin/s 512 0.0bswot/s 512 0.0

    Instant Capacity vPars 1 (Oracle SGA )

    locinfo: pstat_getlocality() pstat_getlocality(2) NUMA locinfo locinfo 5 NUMA HP Superdome 2 Partitioning

    (ILM) 33 (CLM) (SLM) (BLM) CLMSLM"C{S}LM" 2

    03 4 4 CLM -1 3 ILM3

    4 64GB 01 2 7/8 (56GB) CLM 1/8 (8GB) ILM (

    )

    3

    16GB

  • 10

    locinfo-p sqlplus

    23MB 19MB 4 2MB 0 0 0

    weighted 1 1 sqlplus 3 4

    ipcs ipcs(1) ipcs -ma

  • 11

    glance 85%90% 50%

    95%

    95%HP-UX95%

    (

    )swapinfo USED

    RAM

    swapinfo (free)

    Oracle SGA

    vmkona1 100GB SGA Oracle Oracle SGA SGAOracle

    vmkona2vmkona2Oracle 32GB

  • 12

    top vmkona1

    swapinfo2

    2 329MB 40316MB 1 2

  • 13

    glance 99%

    319MB 31.7GB 1%HP-UX HP-UX 1% (HP-UX )

    5% 1.5GB

    sar

  • 14

    HP-UX HP-UX 1.5GB8TB

    HP-UX

    NUMA (Non-Uniform Memory Access) HP

    nPartition ()

    (parcreate(1M) parmodify(1M) )

    7/8 1/8

    100% 7/8 1/8

    locinfo parmodify nPartition

    vPars vPars ( nPartition )1/81

    ()

    HP-UX

    vPars

    parcreate parmodify vPars vparcreate vparmodify HP Superdome 2 Onboard Administrator

    HP-UX

    25% (2GB ) 25% 25%locinfo

    HP-UX Virtual Partitions Administrator's GuidevPars

  • 15

    HP-UX

    Integrity HP-UX 11i v3 2008 9

    getconf(1) kctune(1M) base_pagesize 4KB ()8KB 16KB (64KB Integrity Virtual Machines )

    HP 4KB 16KB (1%4%)

    4KB 7% 8KB 3.6%16KB 1.8%

    swapon(1M) HP-UX

    swapinfo

    swapon swapoff(1M)

    filecache_min(5) filecache_max(5) filecache_minI/O filecache_max filecache_max

    filecache_max

    I/O 5% 50%HP-UX 60% 5%filecache_min 1%3% 34% 6% 3 1 50%filecache_max 5%10%32

  • 16

    JFS (VxFS) (HP OnlineJFSJFS VxFS ) i JFS vx_ninode vxfs_ifree_timelag JFS i i i i i i i i i

    i i

    JFS 3.5 vxfsstat i i

    i93566 i i

    JFS 3.5 vxfsstat i

    i 93566 i i 1096 i i vxfsd i

    i 2KBiJFS i vx_ninodeJFS 4.1 kctune vx_ninode

    1 JFS iJFS 1% 2% vx_ninode vx_ninode 20,00050,000

    Web JFS i

    vx_ninode0 JFS ivx_ninode(5) 8GB6% i i 128GB 1.5%

    JFS i HFS i ninode JFS i /standHFSninode400

  • 17

    JFS i i () i

    JFS i i JFS i i JFS i JFS i JFS i JFS ivxfsd JFS i JFS i

    HP-UX 11i v2 (JFS 3.5 ) i vxfs_ifree_timelag vxfs_ifree_timelag -1 JFS i vxfs_ifree_timelagvxfsd kctune vxfs_ifree_timelag

    32 46416

    32 MPAS (Mostly Private Address Space) 2010 3

    MPAS ld(1) +as mpas chatr(1) MPAS

    NUMA

    shmget(2) flags mmap(2)

  • 18

    mpctl(2) NUMA

    LORA HP-UX

    1 numa_policy(5)

    HP-UX

    () (TLB)

    HP-UX vps_ceiling(5)vps_chatr_ceiling(5)vps_pagesize(5)

    chatr(1) +pi +pd

    vPars Administrators Guide

    http://www.hp.com/go/hpux-vpars-docs (/)

    Tunable Base Page Size

    http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01916157/c01916157.pdf ()

    LORA

    http://h20000.www2.hp.com/bc/docs/support/Supp