(2007 6月28日)oracle 在不同平台使用大内存
来源:互联网 发布:电气控制仿真软件下载 编辑:程序博客网 时间:2024/06/05 20:35
Solution
Follow steps below to perform the configuration:
(Note: For 9iR2 patch 3318884 (9.2.0.4) and patch 3566570 (9.2.0.5)are required respectively.)
1. Logon root
2. Configure Linux to mount ramfs over /dev/shm at every boot. Edit /etc/rc.local and add the following:
umount /dev/shm
mount -t ramfs ramfs /dev/shmchown oracle:oinstall /dev/shm
where oracle is the Oracle owner and oinstall is the group for Oracle owner account.
3. Reboot server
4. Logon as root
5. Check whether /dev/shm is mounted with type ramfs
6. Check permissions of /dev/shm# mount | grep shm
ramfs on /dev/shm type ramfs (rw)
# ls -ld /dev/shm
drwxr-xr-x 3 oracle oinstall 0 Jul 13 12:12 /dev/shm
7. Increase max locked memory limit. Edit /etc/security/limits.conf and add
8. Logon to oracle* soft memlock 3145728* hard memlock 3145728
9. Check max locked mem limit:
$ ulimit -l
3145728
11. Configure instance parameters for VLM:
a. ConvertDB_CACHE_SIZE, DB_xK_CACHE_SIZE parameters to DB_BLOCK_BUFFERS
b. Add parameter USE_INDIRECT_DATA_BUFFERS=TRUE
c. Configure SGA size according to the needs
d. Remove SGA_TARGET if set
12. Startup instance
13. Examine the memory allocation:
$ ls -l /dev/shm
$ ipcs -m
14. Configure hugepages
a. Get Hugepagesize from
$ grep Hugepagesize /proc/meminfo
b. Compute nr_hugepages using Note 401749.1
c. Set kernel parameter:
# sysctl -w vm.nr_hugepages=d. Set parameter for every boot.Edit/etc/sysctl.conf for vm.nr_hugepages=
15. Check available hugepages:
$ grep Huge /proc/meminfo16. Restart instance
17. Check available hugepages (1 or 2 pages free)
$ grep Huge /proc/meminfoNote: If the setting of nr_hugepages is not effective, you might need to reboot the server.
< A>). To check whether HugePages are supported/available on a running configuration, run:$ grep Huge /proc/meminfoand check theoutput:HugePages_Total:
HugePages_Free:
Hugepagesize:Regardless of the values printed, if you can see the lines above, the system supports HugePages.Why HugePages Should Be Used on 64-bit Linux?
- Very Large Memory:The 64-bit systems do have VLM. So the general VLM issues apply.
- Not swappable: HugePages are notswappable. Therefore there is no page replacement mechanismoverhead.HugePages are universally regarded as pinned.
- Eliminated page table lookup overhead: Since the pages are not subject to replacement,page table lookups are not required.
- Faster overall memory performance: On virtual memory systems each memory operation is actually twoabstract memory operations. Since there are less number of pages towork on, the possible bottleneck on page table access is clearlyavoided.
- kswapd: kswapd will get very busy if there is a verylarge area to be paged (i.e. 13 million page table entries for 50GB memory) and will use an incredible amount of CPU resource. When HugePages are used, kswapd is not involved in managing them.
Configuration/Setup
The configuration for HugePages on 64-bit Linuxes are not differentfrom the configuration on 32-bit systems. See Note 361323.1 section "Parameters/Setup" for the generic setup ofthe feature.On 64-bit for best practice, set the memlock user limit to a value larger than the total size of the sga. e.g.For 5GB SGA:
/etc/security/limits.conf:
* soft memlock 5243000
* hard memlock 5243000
- (2007 6月28日)oracle 在不同平台使用大内存
- oracle 在不同平台使用大内存
- ORACLE 使用大内存
- 关于c# 在vs2013 x86平台上开辟大内存
- 大内存使用
- [12月19日的脚本] 在Outlook中保存选定的不同的项 (VBScript)
- Linux大内存页Oracle数据库优化
- 在C++中, 五大内存分区
- linux下Oracle通过设置大内存页解决使用swap分区问题
- 关于oracle 使用大内存出现:ORA-27102: out of memory
- linux下Oracle通过设置大内存页解决使用swap分区问题
- 使用alloc_bootmem得到连续大内存
- Windows2003企业版 + SQL2008R2 使用大内存
- 如何使linux扩展使用 大内存
- 在物理内存不足的情况下使用内存映射文件进行大内存操作
- 8月6日 Oracle
- 6月17日-28日实验安排:oracle linux6.2配置Oracle Dataguard
- 6月28日
- (2007 6月4日)oracle:create context引发ORA-01031,ORA-06512错误
- (2007 6月5日)oracle:跨用户访问视图
- (2007 6月26日)解决:ORA-27102: out of memory
- (2007 6月27日)oracle as 开机自动启动(linux)
- SQL语句优化汇总
- (2007 6月28日)oracle 在不同平台使用大内存
- 实习日志二:SilkPerformer帮助文档翻译(一)
- C/C++ 两大GUI库Qt & GTK比较
- NetBeans IDE 6.5 M1开始完全支持PHP
- powerbuilder程序如何对抗shudepb?pb防反编译
- DNS严重漏洞曝光 谁将面临真正的风险?
- 第二人生的源码分析(107)脚本的词法分析(5)
- Summary on 20080717: web page refresh
- 手机基本功能测试—通话记录测试