[Q]Oracle+Solaris的一些困惑

[复制链接]
查看11 | 回复6 | 2015-8-18 12:18:21 | 显示全部楼层 |阅读模式
Got 1 Sun Server (E4500) with 4 cpu/4G Ram, and just upgrade the sun storage for the lack of disk space, also the CPu and RAM double at the same time.
Solaris Version, 2.6, Oracle: 8.0.5, ERP 11.0.3, Mem: 8GB
But I have some confused when I check the server last day.
The following is the top result I run.
[php]
last pid: 15385; load averages: 0.43, 0.30, 0.39 08:47:57
294 processes: 290 sleeping, 2 zombie, 2 on cpu
CPU states: 66.6% idle, 15.7% user, 6.6% kernel, 11.0% iowait, 0.0% swap
Memory: 8192M real, 125M free, 385M swap in use, 1663M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
15196 ora805 1 0 0 1623M 1612M cpu9 1:36 4.92% oracle
15385 appl110 1 0 0 2280K 1856K cpu5 0:02 1.38% top
15188 ora805 1 48 2 984K 880K sleep 2:34 0.62% tar
12312 ora805 1 0 0 1623M 1612M sleep 2:19 0.34% oracle
11633 ora805 1 58 0 1516M 1506M sleep 45:24 0.29% oracle
15286 ora805 1 54 0 1623M 1612M sleep 0:30 0.28% oracle
15241 ora805 1 33 0 1623M 1612M sleep 0:33 0.08% oracle
15169 appl110 1 58 0 39M 18M sleep 0:06 0.05% f45webm
15054 appl110 1 58 0 38M 16M sleep 0:11 0.04% f45webm
15158 ora805 1 58 0 1623M 1612M sleep 2:22 0.03% oracle
15252 appl110 1 58 0 39M 18M sleep 0:04 0.02% f45webm
15230 appl110 1 58 0 38M 18M sleep 0:05 0.02% f45webm
15256 ora805 1 38 0 1622M 1612M sleep 1:16 0.02% oracle
12302 appl110 1 48 0 38M 15M sleep 0:17 0.02% f45webm
15292 appl110 1 58 0 38M 18M sleep 0:04 0.02% f45webm
[/php]
But as I know, the SGA of the Server only up
Instance 1.
[php]
SVRMGR> show sga
系统全局区域合计有 1677999632个字节
Fixed Size 48656个字节
Variable Size 448970752个字节
Database Buffers 1228800000个字节
Redo Buffers 180224个字节
[/php]
Instance 2
[php]
SVRMGR> show sga
系统全局区域合计有 1779023376个字节
Fixed Size 48656个字节
Variable Size 242794496个字节
Database Buffers 1536000000个字节
Redo Buffers 180224个字节
SVRMGR>
[/php]
And there are about 150 sessions connect to the server with Oracle.
[php]
shared_pool_size 字符串 300000000
sort_area_retained_size 整数 0
sort_area_size 整数 256000
[/php]
As the top result show, seems only 200- MB RAM free space , But I start up the 3rd instance
with the sga like following, it is also ok,
[php]
SVRMGR> show sga
系统全局区域合计有 1566973456个字节
Fixed Size 48656个字节
Variable Size 337944576个字节
Database Buffers 1228800000个字节
Redo Buffers 180224个字节
SVRMGR>
[/php]
I am confused now, which command shall I used to determin the real RAM usage information?
In all instance I configured
use_ism=true.
回复

使用道具 举报

千问 | 2015-8-18 12:18:21 | 显示全部楼层
[php]
shared_pool_size 字符串 300000000
sort_area_retained_size 整数 0
sort_area_size 256000
[/php]
用户session 150
回复

使用道具 举报

千问 | 2015-8-18 12:18:21 | 显示全部楼层
solaris pmap可以显示进程对应内存,如果使用ism那输出应该有
回复

使用道具 举报

千问 | 2015-8-18 12:18:21 | 显示全部楼层
hmm, I see, that is , I need calc all the mem used for the detail info ............


回复

使用道具 举报

千问 | 2015-8-18 12:18:21 | 显示全部楼层
算一共的?好像没有一个命令就能出来的,solaris的Ism只留给够用的尽管你的sga很大可能大于实际的物理内存,也不会有错的,我记得啊
回复

使用道具 举报

千问 | 2015-8-18 12:18:21 | 显示全部楼层
Solaris Version, 2.6 的pmap可以显示出ISM标记吗?
Memory: 8192M real, 125M free, 385M swap in use, 1663M swap free你这个solaris分配的物理swap孔减少了一点,对于2。6保守一点 起码也要是物理内存的2倍啊
在solaris2.6,这个125M free应该是你的可用的free memory;(按道理这个数值应该接近0,因为unix file system cache要是用掉所有的内存) ;man看看解释。。。
从Solaris8开始,vmstat /top显示的free是系统可用的剩余内存(free memory)和可pageable的文件系统缓存(file system cache memory),man的解释:free size of the free list (Kbytes) 。文件系统缓存也挂在内存Free List上。
如果你想看文件系统缓存占用了多少内存,可以看看solaris internal的MemTool
http://www.solarisinternals.com/si/tools/index.php
回复

使用道具 举报

千问 | 2015-8-18 12:18:21 | 显示全部楼层
好的,那我给它加大点

顺便看看到底内存用了多少
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行