我們通常希望把oracle sga鎖定在內存中,并且使文件系統緩存比例控制到一定范圍,在AIX5.3之前版本,一般是使用vmtune -p 5 -P 20 -S 1
為了讓os重新啟動也成效,可以不自己用shell腳本,直接加 -r 參數,這樣都記錄在 /etc/tunables/nextboot 中了
vmo -r -o minperm%=5
vmo -r -o maxclient%=20
vmo -r -o maxperm%=20
另外說明,為了讓內存限制成為 hard limit,可以設置
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"