linux安裝DB2之前的作業系統引數
/etc/sysctl.conf
引數設定講解
kernel.shmmni (SHMMNI) 256 * <size of RAM in GB>
kernel.shmmax (SHMMAX) <size of RAM in bytes>
the minimum required on x86 systems is 268435456 (256 MB) and for 64-bit systems, it is 1073741824 (1 GB).
kernel.shmall (SHMALL) 2 * <size of RAM in the default system page size>
SHMALL is set to 8 GB by default (8388608 KB = 8 GB)
If you have more physical memory than this, and it is to be used for the Db2 database system, then this parameter increases to approximately 90% of your computer's physical memory For instance, if you have a computer system with 16 GB of memory to be used primarily for the Db2 database system, then SHMALL should be set to 3774873 (90% of 16 GB is 14.4 GB; 14.4 GB is then divided by 4 KB, which is the base page size). The ipcs output has converted SHMALL into kilobytes. The kernel requires this value as a number of pages.
kernel.sem (SEMMNI) 256 * <size of RAM in GB>
kernel.sem (SEMMSL) 250
kernel.sem (SEMMNS) 256000
kernel.sem (SEMOPM) 32
kernel.msgmni (MSGMNI) 1024 * <size of RAM in GB>
kernel.msgmax (MSGMAX) 65536
kernel.msgmnb (MSGMNB) 65536
SEMMNS is the result of SEMMSL multiplied by SEMMNI
舉例
#Example for a computer with 32GB of RAM:
kernel.shmmni=4096
kernel.shmmax=34359738368
kernel.shmall=7549746
#kernel.sem=<SEMMSL> <SEMMNS> <SEMOPM> <SEMMNI>
kernel.sem=250 1024000 32 4096
kernel.msgmni=16384
kernel.msgmax=65536
kernel.msgmnb=65536
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=262144
net.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144
vm.swappiness=0
vm.overcommit_memory=0
如何使得引數生效
Run sysctl with -p parameter to load in sysctl settings from the default file /etc/sysctl.conf:
sysctl -p
To make the changes effective after every reboot:
– SUSE Linux: Make boot.sysctl active.
su - root
# chkconfig boot.sysctl
boot.sysctl off
# chkconfig boot.sysctl on
# chkconfig boot.sysctl
boot.sysctl on
#
– Red Hat: The rc.sysinit initialization script will read the /etc/sysctl.conf file
automatically.
檢視一下引數
# ipcs -l
------ Shared Memory Limits --------
max number of segments = 4096 // SHMMNI
max seg size (kbytes) = 32768 // SHMMAX
max total shared memory (kbytes) = 8388608 // SHMALL
min seg size (bytes) = 1
------ Semaphore Limits --------
max number of arrays = 1024 // SEMMNI
max semaphores per array = 250 // SEMMSL
max semaphores system wide = 256000 // SEMMNS
max ops per semop call = 32 // SEMOPM
semaphore max value = 32767
------ Messages: Limits --------
max queues system wide = 1024 // MSGMNI
max size of message (bytes) = 65536 // MSGMAX
default max size of queue (bytes) = 65536 // MSGMNB
另外一個引數檔案
/etc/security/limits.conf
db2inst1 soft nofile 65536
db2inst1 hard nofile 65536
db2inst1 soft nproc 65536
db2inst1 hard nproc 65536
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/725820/viewspace-2218456/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux作業系統中安裝VMware ToolsLinux作業系統
- Linux環境安裝Oracle11g(二)——作業系統引數及服務調整LinuxOracle作業系統
- 如何安裝Linux作業系統?Linux運維教學Linux作業系統運維
- # 2020-09-26 #「Linux」- 在作業系統安裝後……Linux作業系統
- 關於安裝VMware以及Linux作業系統過程Linux作業系統
- RedHat 7.6作業系統安裝Redhat作業系統
- linux/OSX中“DD”命令製作ISO映象作業系統安裝U盤Linux作業系統
- Windows 11 作業系統安裝方法Windows作業系統
- Linux雲端計算-01_介紹以及Linux作業系統安裝Linux作業系統
- 【linux】Linux作業系統Linux作業系統
- 計算機作業系統|作業系統引論計算機作業系統
- DB2 Linux環境安裝DB2Linux
- linux修改系統引數Linux
- Linux 作業系統Linux作業系統
- Linux作業系統Linux作業系統
- DBA不可不知的作業系統核心引數作業系統
- 作業-安裝虛擬機器以及CentOS作業系統虛擬機CentOS作業系統
- Linux系統安裝,教你安裝一個屬於自己的Linux系統Linux
- 在Ubuntu作業系統裡安裝DockerUbuntu作業系統Docker
- 實戰-使用 Cobbler 安裝作業系統作業系統
- Powershell 命令列安裝 Windows 作業系統命令列Windows作業系統
- Linux系統安裝Linux
- Linux下安裝DB2的包依賴LinuxDB2
- Oracle安裝相關Linux引數(轉)OracleLinux
- 安裝Linux之前必備知識Linux
- Linux系統安裝——Centos 7.6安裝LinuxCentOS
- 作業系統與Linux作業系統Linux
- Linux作業系統概述Linux作業系統
- window 作業系統,安裝 mongodb.zip 包作業系統MongoDB
- Windows作業系統安裝MySQL解壓版Windows作業系統MySql
- 【git】Ubuntu作業系統上安裝Git LFSGitUbuntu作業系統
- 作業系統 Linux下的程式作業系統Linux
- Linux系統安裝01-centos7系統安裝LinuxCentOS
- Linux作業系統中軟體安裝:用RPM包管理器安裝軟體步驟Linux作業系統
- linux系統安裝nginxLinuxNginx
- Linux系統安裝VNCLinuxVNC
- linux系統安裝jdk,配置環境變數LinuxJDK變數
- RUST 在linux 系統的安裝RustLinux