我们通常希望把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"