编辑 sysctl.conf 文件

编辑 sysctl.conf 文件

shmmax使用 Red Hat Enterprise Linux Server 版本 5.11 (Tikanga),但我需要更改& 的值shmall

vi /etc/sysctl.conf

# Controls the maximum shared segment size, in bytes

kernel.shmmax = 68719476736 

# Controls the maximum number of shared memory segments, in pages

kernel.shmall = 4294967296

fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
fs.file-max = 6815744

kernel.shmall = 2097152
kernel.shmmax = 536870912

kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586

kernel.shmmax = 4294967295

上面shmax是三次提到的,也是shmall两次提到的。我应该在哪里改变?

当我输入命令时ipcs -lm它显示

[oracle@NTSLSRVDBS02 ~]$ ipcs -lm

------ Shared Memory Limits --------

max number of segments = 4096

max seg size (kbytes) = 4194303

max total shared memory (kbytes) = 8388608

min seg size (bytes) = 1

我需要更改shmmax和的值shmall

相关内容