请问怎么设置让系统cached的内存变小些?

[复制链接]
查看11 | 回复9 | 2005-7-16 18:49:11 | 显示全部楼层 |阅读模式
请问怎么设置让系统cached的内存变小些?
我们现在的系统总是因为内存不够而reboot 机器,red hat advance server2.1,请问有没有办法设置让cached 的内存变小些,要是有什么命令也行?
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
vi /etc/sysctl.conf
vm.pagecache=5 10 15
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
最初由 yimuniao 发布
[B]请问怎么设置让系统cached的内存变小些?
我们现在的系统总是因为内存不够而reboot 机器,red hat advance server2.1,请问有没有办法设置让cached 的内存变小些,要是有什么命令也行? [/B]

how much is your ram? and sga?
kernel can free cache if there is application requirement.
If you can show error msg, it would be
much helpful.
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
内存3.6g,sga 310m
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
最初由 yimuniao 发布
[B]内存3.6g,sga 310m [/B]

if your system are not running other big programs, it's not likely
that memory problem cause your system crash ( unless something
exceptional ).
show your result of top or sar, to see what's going on.
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
11:28amup 9 days, 16:52,3 users,load average: 0.08, 0.02, 0.01
83 processes: 82 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 12.3% user,0.1% system,0.0% nice, 86.2% idle
CPU1 states: 13.0% user,0.3% system,0.0% nice, 85.2% idle
CPU2 states:0.0% user,0.0% system,0.0% nice, 100.0% idle
CPU3 states:0.1% user,0.1% system,0.0% nice, 99.1% idle
PID USER PRINISIZERSS SHARE STAT %CPU %MEM TIME COMMAND
1251 oracle18 0227M 195M194M S26.95.5 410:11 oracle
1249 oracle15 0113M92M 82796 S 0.32.6 0:35 oracle
1243 oracle15 0102M70M 71972 S 0.02.0 0:55 oracle
1253 oracle15 0 9710462M 63212 S 0.31.7 4:20 oracle
1237 oracle15 0 9232455M 56688 S 0.01.5 2:08 oracle
1245 oracle15 0 4944816M 16172 S 0.00.4 0:00 oracle
1247 oracle15 0 4776414M 14480 S 0.00.4 0:00 oracle
1241 oracle15 0 4384010M8956 S 0.00.3 0:06 oracle
1235 oracle15 0 41644 89008124 S 0.00.2 0:00 oracle
1239 oracle15 0 41720 88207056 S 0.30.2 2:54 oracle
30329 root15 06152 57243772 S 0.00.1 0:00 server
15348 root15 06176 56684024 S 0.00.1 0:00 server
30309 root15 05976 53123708 S 0.00.1 0:24 server
30310 root15 05976 53123708 S 0.00.1 0:01 server
30311 root15 05976 53123708 S 0.00.1 0:00 server
30312 root15 05976 53123708 S 0.00.1 0:00 server
30313 root15 05976 53123708 S 0.00.1 9:28 server
30314 root15 05976 53123708 S 0.00.1 0:00 server
30315 root15 05976 53123708 S 0.00.1 0:00 server
30316 root15 05976 53123708 S 0.00.1 0:00 server
30317 root15 05976 53123708 S 0.00.1 0:00 server
30318 root15 05976 53123708 S 0.00.1 0:06 server
30319 root15 05976 53123708 S 0.00.1 0:06 server
30320 root15 05976 53123708 S 0.00.1 0:06 server
30321 root15 05976 53123708 S 0.00.1 0:05 server
30322 root15 05976 53123708 S 0.00.1 0:06 server
30323 root15 05976 53123708 S 0.00.1 0:06 server
30324 root15 05976 53123708 S 0.00.1 0:06 server
30325 root15 05976 53123708 S 0.00.1 0:05 server
30326 root15 05976 53123708 S 0.00.1 0:05 server
30327 root15 05976 53123708 S 0.00.1 0:05 server
30330 root15 05960 48803688 S 0.00.1 0:00 server
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
run "free" to show memory usage.
And in oracle user account, type "ulimit -a"
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
[root@DBServer root]# free

total used free sharedbuffers cached
Mem: 3605516359209213424 282324 2147682967412
-/+ buffers/cache: 4099123195604
Swap:1602413080 2944
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
[oracle@DBServer root]$ ulimit -a
core file size (blocks) 0
data seg size (kbytes)unlimited
file size (blocks)
unlimited
max locked memory (kbytes)unlimited
max memory size (kbytes)unlimited
open files
1024
pipe size (512 bytes) 8
stack size (kbytes) 8192
cpu time (seconds)
unlimited
max user processes
14335
virtual memory (kbytes) unlimited
回复

使用道具 举报

千问 | 2005-7-16 18:49:11 | 显示全部楼层
Can you explain why swap is so small? because of big ram?
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行