了解Maclean Liu|向Maclean Liu提问 Oracle ALLSTARS 全明星(群内有多位Oracle高级售后support,N位OCM和ACE) QQ群 # QQ群号:23549328 # 已经升级到 2000人群,空位多多。欢迎有一定基础的Oracle骨友加入,现在入群需要经过Maclean的技术面试,欢迎面试,请加QQ号:47079569 为好友参加面试 2群基础群 适合刚入门的同学,会共享最佳入门实践和资料 QQ群 # QQ群号:171092051 # 已经升级到 500人的超级群,空位多多,无需面试

为什么oracle在AIX有空闲内存的情况下使用SWAP

这是由于oracle在AIX上使用shmget()函数调用内存,在 lock_sga=true的情况下会指定 SHM_PIN 这个PIN 共享内存的flag,但是由于vmo 参数 v_pinshm=0,所以默认不启用SHM_PIN flag,这会导致oracle可能在aix仍有空闲内存的情况下使用Pgsp paging space: 如何诊断Oracle在AIX上是否使用Pgsp? svmon -G svmon -U oracle   关于 v_pinshm IBM官方有最权威的解释: The v_pinshm parameter When you set the v_pinshm parameter to 1, it causes pages in shared memory segments to be pinned by VMM, if the application, which does the shmget(), specifies SHM_PIN as part of the flags. The default value is 0. Applications can choose to have a tunable which specifies whether the application should use the SHM_PIN flag (for example, the lock_sga parameter in Oracle 8.1.5 and later). Avoid pinning too much memory, because in that case no page replacement can occur. Pinning is useful because it saves overhead in async I/O from these shared memory segments (the async I/O kernel extension is not required to pin the buffers). http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.prftungd/doc/prftungd/fs_buff_tuning.htm    

posted on 2013-03-19 00:47  Oracle和MySQL  阅读(331)  评论(0编辑  收藏  举报

导航