我們通常希望把oracle sga鎖定在內(nèi)存中,并且使文件系統(tǒng)緩存比例控制到一定范圍,在AIX5.3之前版本,一般是使用vmtune -p 5 -P 20 -S 1
而在AIX5.3中則使用
vmo -r -o v_pinshm=1
vmo -o minperm%=5
vmo -o maxclient%=20
vmo -o maxperm%=20
重新啟動生效的參數(shù)記錄在 /etc/tunables/nextboot 文件中,通過 vmo -L 可以查看相關(guān)系列參數(shù)。
為了讓os重新啟動也成效,可以不自己用shell腳本,直接加 -r 參數(shù),這樣都記錄在 /etc/tunables/nextboot 中了
vmo -r -o minperm%=5
vmo -r -o maxclient%=20
vmo -r -o maxperm%=20
另外說明,為了讓內(nèi)存限制成為 hard limit,可以設(shè)置
vmo -r -o strict_maxperm=1
more /etc/tunables/nextboot
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# bos530 src/bos/usr/sbin/perf/tune/nextboot 1.1
#
# Licensed Materials - Property of IBM
#
# (C) COPYRIGHT International Business Machines Corp. 2002
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# IBM_PROLOG_END_TAG
vmo:
strict_maxperm = "1"
maxperm% = "20"
maxclient% = "20"
minperm% = "5"
v_pinshm = "1"