ORACLE安裝核心引數配置_linux平臺
面列出ORACLE安裝時,sysctl.conf需要更改的引數。
#modify vm echo "vm.dirty_ratio=5 vm.dirty_background_ratio=1 vm.dirty_writeback_centisecs=100 vm.dirty_expire_centisecs=500 vm.drop_caches=3 vm.swappiness=100 vm.vfs_cache_pressure=163">>/etc/sysctl.conf
#modify net echo "net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=2097152 net.ipv4.ip_local_port_range = 9000 65500" >>/etc/sysctl.conf
#modify kernel echo "fs.aio-max-nr = 1048576 fs.file-max = 1536000 kernel.shmall = 7864320 kernel.shmmax = 32212254720 kernel.shmmni = 4096 kernel.sem=3000 1536000 3000 512 ">> /etc/sysctl.conf #modify private network rp_filter echo "net.ipv4.conf.eth3.rp_filter = 0 net.ipv4.conf.eth2.rp_filter = 0 net.ipv4.conf.bond1.rp_filter = 0">>/etc/sysctl.conf && tail -3 /etc/sysctl.conf
#modify big page echo "vm.nr_hugepages = 23100">>/etc/sysctl.conf && tail -1 /etc/sysctl.conf |
1,shmmax
說明
The maximum size(in bytes) of a single shared memory segment(sga).
配置
透過介紹是配置作業系統上所有的SGA記憶體的和,也就是所有共享記憶體的和,如果此引數小於共享記憶體的和,那麼會出現下面的情況: SHMMAX is the maximum size of a single shared memory segment set in bytes.. Ideally, we would like SGA_TARGET to fit in one shared memory segment at startup by having SGA_TARGET < SHMMAX . If SGA_TARGET > SHMMAX , then Oracle will try to use contiguous multi-segment to use to fit the SGA_TARGET. If it is not able to do so, then it will use non-contiguous multi-segment allocation and in this Oracle has to grab the free memory segments fragmented between used spaces.
kernel.shmmax = nnnnn |
2,shmall
說明
This parameter sets the total amount of shared memory pages that can be used system wide. Hence, shmall should always be at least ceil(shmmax/page_size).如果直接大頁,可以不需要配置此引數
配置
$ getconf PAGE_SIZE 4096 SHMMAX/PAGE_SIZE
kernel.shmall = 2097152 |
3,shmmin
說明
The minimum size(in bytes) of a single shared memory segment.
配置
預設值就可以了
kernel.shmmin = 4096 |
4,file-max
說明
所有程式能同時開啟的檔案總數
配置
512 x processes
fs.file-max = 6815744 |
5,ip_local_port_range
說明
埠號範圍
配置
11G環境 ip_local_port_range = 9000 65500 11G之前環境 ip_local_port_range = 1024 65000
net.ipv4.ip_local_port_range = 9000 65500 |
6,aio-max-nr
說明:
異常的IO最大大小,MOS說在rhel 4,5已經取消此引數,但是在rhel 6與rhel 5裡面肯定有此引數
配置: ORACLE建議配置為1048576
fs.aio-max-nr = 1048576 |
7,sem訊號量引數
說明:
kernel.sem = SEMMSL_value SEMMNS_value SEMOPM_value SEMMNI_value
NAME | DESCRIPTION | MIN VALUE ——-+————————————————–+————- SEMMSL | maximum number of semaphores in a semphore set | 250(process+10) SEMMNS | maximum number of semphores in the system | 32000(semmsl*semmni) SEMOPM | maximum number of operations per semop(P) call | 100(process+10) SEMMNI | maximum number of semaphore sets in system | 128 配置
kernel.sem=3000 1536000 3000 512 |
8,配置引數
These values determine how much kernel buffer memory is allocated per socket opened for network reads and writes:
* The _default values determine how much memory is consumed per socket immediately at socket creation. * The _max values determine how much memory each socket is allowed to consume dynamically, if the memory requirements grow beyond the defaults.
Therefore, the best practice recommendation is to define lower default values (i.e. 256k) in order to conserve memory when possible, but have larger max values (1MB or greater) to allow for network performance gains if more memory is needed for a given socket.
#modify net echo "net.core.rmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_default=262144 net.core.wmem_max=2097152 " >>/etc/sysctl.conf |
9,虛擬記憶體
檔案系統一些引數配置 vm.dirty_ratio=5 檔案系統快取佔記憶體的百分比 vm.dirty_background_ratio=3 當髒資料達到記憶體百分之多少時,開始寫出 vm.dirty_writeback_centisecs=100 寫出喚醒的時間間隔,單位毫秒 vm.dirty_expire_centisecs=500 緩衝區資料被LRU考慮寫出的時間,單位毫秒 vm.drop_caches=3 釋放已經使用的cache vm.swappiness=100 表示系統進行交換行為的程度,數值(0-100)越高,越可能發生磁碟交換 vm.vfs_cache_pressure=163 表示核心回收用於directory和inode cache記憶體的傾向,這個值越大,回收的傾向越嚴重 。
#modify vm echo "vm.dirty_ratio=5 vm.dirty_background_ratio=1 vm.dirty_writeback_centisecs=100 vm.dirty_expire_centisecs=500 vm.drop_caches=3 vm.swappiness=100 vm.vfs_cache_pressure=163">>/etc/sysctl.conf |
9,私有網路卡
RAC私有網路配置 echo "net.ipv4.conf.eth3.rp_filter = 0 net.ipv4.conf.eth2.rp_filter = 0 net.ipv4.conf.bond1.rp_filter = 0">>/etc/sysctl.conf && tail -3 /etc/sysctl.conf |
10,大頁配置
大頁配置 #這個是配置大頁使用的(值為sga(M)/2+1) #注意這裡SGA為主機上所有例項的SGA,LINUX每一個大頁支援2M。大頁不支援AMM配置記憶體方式 vm.nr_hugepages=23100 |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25462274/viewspace-2130389/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle安裝linux時的核心引數解釋OracleLinux
- 安裝oracle時核心引數的含義Oracle
- 12c linux 安裝引數配置Linux
- Linux平臺Oracle ODBC安裝使用LinuxOracle
- Linux平臺下解除安裝ORACLELinuxOracle
- 安裝ORACLE時在Linux上設定核心引數的含義OracleLinux
- (轉)redhat下安裝oracle,設定redhat核心引數RedhatOracle
- Oracle安裝相關Linux引數(轉)OracleLinux
- 【轉】Oracle安裝相關Linux引數OracleLinux
- 安裝oracle資料庫時,設定linux核心引數的意義Oracle資料庫Linux
- Linux 核心引數優化(for oracle)Linux優化Oracle
- Linux核心引數以及Oracle引數調整(updated)LinuxOracle
- solaris10中安裝oracle核心引數的調整Oracle
- linux系統基於oracle的核心引數配置說明LinuxOracle
- Linux平臺下ocfs2的安裝、配置Linux
- RED HAT 7.3裝Oracle8.1.7配置什麼核心引數(轉)Oracle
- Linux 核心引數 和 Oracle相關引數調整LinuxOracle
- Linux 核心引數及Oracle相關引數調整LinuxOracle
- Oracle 核心引數Oracle
- ORACLE核心引數Oracle
- oracle相關的linux核心引數OracleLinux
- oracle sga配置相關的os 核心引數Oracle
- Linux安裝Oracle修改引數(名詞解釋)LinuxOracle
- Linux平臺下snmp服務的安裝和配置Linux
- Linux6下yum方式安裝配置LAMP平臺LinuxLAMP
- 基於Linux平臺的Domino Server安裝與配置LinuxServer
- mac平臺安裝配置TomCatMacTomcat
- Linux AS4平臺Oracle10g安裝LinuxOracle
- (轉)Linux 核心引數及Oracle相關引數調整LinuxOracle
- 【DG】Oracle11g異構平臺之Linux To Windows DataGuard安裝配置--duplicateOracleLinuxWindows
- Linux平臺Oracle 11g單例項 安裝部署配置快速參考LinuxOracle單例
- linux 核心引數Linux
- Linux核心引數Linux
- linux下安裝oracle的個別優化引數LinuxOracle優化
- Linux平臺HBase單機版安裝和配置步驟Linux
- Linux平臺上手動解除安裝Oracle資料庫LinuxOracle資料庫
- Linux4.0平臺下Oracle10g安裝LinuxOracle
- solaris 10 安裝 oracle 11g R2核心引數設定Oracle