ORACLE LARGE MEMORY(zt)
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/shm chown 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 -m14. Configure hugepages
a. Get Hugepagesize from
$ grep Hugepagesize /proc/meminfob. 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 instance17. 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/meminfo
and check the output: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.
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 two abstract memory operations. Since there are less number of pages to work on, the possible bottleneck on page table access is clearly avoided.
kswapd: kswapd will get very busy if there is a very large 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 different from the configuration on 32-bit systems. See Note 361323.1 section "Parameters/Setup" for the generic setup of the 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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-242496/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle enqueue(zt)OracleENQ
- oracle event 2 (zt)Oracle
- oracle job管理(zt)Oracle
- oracle time_zone(zt)Oracle
- AUTO START ORACLE ON LINUX(zt)OracleLinux
- ORACLE MTS的介紹(zt)Oracle
- Oracle's Parallel Execution Features(zt)OracleParallel
- How Oracle Store Number internal(zt)Oracle
- Oracle SQL optimization-2(zt)OracleSQL
- Oracle Shared Pool Memory ManagementOracle
- 修改Oracle資料庫字符集(zt)Oracle資料庫
- oracle9i下streams複製(zt)Oracle
- Oracle 19c Concepts(14):Memory ArchitectureOracle
- Oracle 12C新特性In-MemoryOracle
- Oracle多粒度封鎖機制研究二(zt)Oracle
- 【MEMORY】Oracle 共享池堆簡單說明Oracle
- ORACLE9I升級到10G(zt)Oracle
- Oracle 叢集軟體資源的手工註冊(zt)Oracle
- large pool
- Oracle DBLink bug引發的故障(Session Hang Memory leak)OracleSession
- 騰訊冷啟動論文閱讀《Enhancing User Interest based on Stream Clustering and Memory Networks in Large-Scale Recommender Systems》REST
- INSTEAD OF(zt)
- lsof(zt)
- Oracle 18c新特性詳解:In-Memory 專題Oracle
- Oracle叢集檔案系統(OCFS2)使用者指南(zt)Oracle
- Oracle 20c 的 In-Memory 新特性 Spatial 和 Text 支援Oracle
- SQLSERVER SELECT(zt)SQLServer
- V$LOCK(zt)
- EXISTS、IN、NOT EXISTS、NOT IN(zt)
- Event Reference(zt)
- Fallacies Of The CBO(zt)
- memory
- 【MEMORY】Oracle記憶體結構資源常用檢視及sqlOracle記憶體SQL
- Oracle 20c 新特性:自主的 In-Memory 管理 - Self-ManagingOracle
- DBMS_TRACE(zt)
- Understanding System Statistics(zt)
- dbms_stats(zt)
- 切換UNDO(zt)