调整VMO的maxperm%报错

调整VMOmaxperm%报错

操作系统: AIX 6.1

 本次调整的原因是因为nmon工具查看到Memory的【% Used】使用比例到了97.4%。
从topas中的Memory中看到【% Comp】和【% Client】分别为55和42。
内存监控总是报服务器内存使用太多。

bash-3.2# vmo -p -o maxperm%=10


vmo: 1485-111 Invalid value 10 for tunable maxperm%

Value for tunable maxperm% must be greater than or equal to 90, value of tunable maxclient%


bash-3.2# vmo -L maxclient%

NAME CUR DEF BOOT MIN MAX UNIT TYPE

DEPENDENCIES

--------------------------------------------------------------------------------

maxclient% 90 90 90 1 100 % memory D

maxperm%

minperm%

--------------------------------------------------------------------------------

You have mail in /usr/spool/mail/root

bash-3.2# vmo -L maxperm%

NAME CUR DEF BOOT MIN MAX UNIT TYPE

DEPENDENCIES

--------------------------------------------------------------------------------

maxperm% 90 90 90 1 100 % memory D

minperm%

maxclient%

--------------------------------------------------------------------------------

-- 调整maxperm%前,要同时调整maxclient%

bash-3.2# vmo -p -o maxperm%=10 -o maxclient%=10

Modification to restricted tunable maxperm%, confirmation required yes/no yes

Setting maxperm% to 10 in nextboot file

Modification to restricted tunable maxclient%, confirmation required yes/no yes

Setting maxclient% to 10 in nextboot file

Setting maxperm% to 10

Warning: a restricted tunable has been modified

Setting maxclient% to 10

Warning: a restricted tunable has been modified

bash-3.2# vmo -L maxperm% -L maxclient%

NAME CUR DEF BOOT MIN MAX UNIT TYPE

DEPENDENCIES

--------------------------------------------------------------------------------

maxclient% 10 90 10 1 100 % memory D

maxperm%

minperm%

--------------------------------------------------------------------------------

maxperm% 10 90 10 1 100 % memory D

minperm%

maxclient%

--------------------------------------------------------------------------------

PS: nmon中Memory中的“%Used”等于topas中的Memory的“%Comp”加“%Client”的和。


参考:http://blog.itpub.net/29702473/viewspace-1189289/

TOPAS 命令:

MEMORY反映内存使用的信息区域:

   Real,MB:操作系统实际拥有的内存的总量,单位是MB

   %Comp:计算型内存占用比率。

   %Noncomp:非计算型内存占用的比率。

%Client:也为非计算型内存,Noncomp包涵Client型内存,jfs文件系统使用的内存为noncomp:为了区分,jfs2nfs使用的内存为Client

   说明:计算型内存就是进程实际使用的内存,包括堆栈,进程中变量等数值。当一个进程终止时,将释放其物理和页面空间。在 VMM 中,当空闲物理内存较少时(即计算内存与非计算内存之和接近100时),可以将最近没有使用的程序从 RAM 移出到分页空间,以帮助释放物理内存,从而完成更多的实际工作。

非计算内存就是当有大量文件类操作,如压缩、数据库的dump/load等操作会大量时使用非计算内存。如果按照系统缺省的配置,非计算内存最多会占用到内存总量的90%AIX5L80%),由于非计算内存占用并不主动释放,直到文件被卸载、页面被替换、或者取消了到文件的链接才会释放。从而可能造成内存资源的短缺及Paging Space使用率过高。这时可以通过降低minpermmaxperm的参数值来进行调优,减少非计算内存可占用的份额。


请使用浏览器的分享功能分享到微信等