Kernel parameter requirements ( Linux DB2)
Kernel parameter requirements ( Linux DB2)
https://www.ibm.com/support/knowledgecenter/SSEPGG_9.7.0/com.ibm.db2.luw.qb.server.doc/doc/c0057140.html
You must have root authority to modify kernel parameters.
- Run the ipcs -l command to list the current kernel parameter settings.
# ipcs -l ------ Shared Memory Limits --------
max number of segments = // SHMMNI
max seg size (kbytes) = // SHMMAX
max total shared memory (kbytes) = // SHMALL
min seg size (bytes) = ------ Semaphore Limits --------
max number of arrays = // SEMMNI
max semaphores per array = // SEMMSL
max semaphores system wide = // SEMMNS
max ops per semop call = // SEMOPM
semaphore max value = ------ Messages: Limits --------
max queues system wide = // MSGMNI
max size of message (bytes) = // MSGMAX
default max size of queue (bytes) = // MSGMNB
- Modify the kernel parameters that you have to adjust by editing the /etc/sysctl.conf file. If this file does not exist, create it. The following lines are examples of what should be placed into the file:
#Example for a computer with 16GB of RAM:
kernel.shmmni=
kernel.shmmax=
kernel.shmall=
#kernel.sem=<SEMMSL> <SEMMNS> <SEMOPM> <SEMMNI>
kernel.sem=
kernel.msgmni=
kernel.msgmax=
kernel.msgmnb=
- Run sysctl with -p parameter to load in sysctl settings from the default file /etc/sysctl.conf:
sysctl -p
- Optional: Have the changes persist after every reboot:
- (SUSE Linux) Make boot.sysctl active.
- (Red Hat) The rc.sysinit initialization script reads the /etc/sysctl.conf file automatically.
这里对每个参数值做个简要的解释和说明。 ()shmmax:参数定义了共享内存段的最大值(以字节为单位)。缺省为32M,对于db2oracle来说,该缺省值太低了,设置为RAM内存大小单位byte 即17179869184///=16G, ()shmmni:参数用于设置系统范围内共享内存段的最大值。该参数的默认值是 4096btyes 。通常不需要更改。 ()shmall:该参数表示系统一次可以使用的共享内存总量(以页为单位)。缺省值就是2097152,通常不需要修改,设置为RAM的90%。 ()sem:该参数表示设置的信号量。这4个参数内容大小固定。 ()file-max:该参数表示文件句柄的最大数量。文件句柄设置表示在linux系统中可以打开的文件数量。
参考配置:
vi /etc/sysctl.conf #kernel.sem=<SEMMSL> <SEMMNS> <SEMMNS> <SEMOPM> <SEMMNI> kernel.sem=250 256000 32 1024 kernel.shmmax=1073741824 #以64位系统为例的shmmax设置值 kernel.shmall=3774873 #以16GB内存为例的90%的shmal设置值 kernel.msgmni=1024kernel.msgmax=65535 kernel.msgmnb=65535
Kernel parameter requirements ( Linux DB2)的更多相关文章
- Linux kernel parameter command line设置
现在CPU2核以上比较普遍了,平时用linux上上网可能用不着双核甚至4核,大部分发行版内核都启用了CPU_HOTPLUG,到/sys/devices/system/cpu下可以看到文件夹cpu0.c ...
- [中英对照]Linux kernel coding style | Linux内核编码风格
Linux kernel coding style | Linux内核编码风格 This is a short document describing the preferred coding sty ...
- Linux Kernel - Debug Guide (Linux内核调试指南 )
http://blog.csdn.net/blizmax6/article/details/6747601 linux内核调试指南 一些前言 作者前言 知识从哪里来 为什么撰写本文档 为什么需要汇编级 ...
- Linux+db2+was部署问题总结
Linux+db2+was部署问题总结 前段日子在住建部进行了Linux环境下,db2+rbp+was的部署,由于是集群,切涉及到了很多was的东西,搞了很长时间,在此做一个问题总结,供后续查询 ...
- 使用 linux kernel +busybox 定制linux系统
目的: 了解linux的启动过程 主要内容: 1.grub 是启动程序的bootloader 2.linux-kernel 是linux的开源内核 3.busybox 是linux的工具集合 启动顺序 ...
- sysctl kernel parameter Optimization note
syncookies cookies the connection state,when the ack arrives,then deal with the pause connection,ver ...
- OS Kernel Parameter.semopm
安装Oracle11g内核参数semopm未校验通过,点击Fix&Check Again后,会提示执行修改脚本,在/tmp/CVU_11.2.0.1.0_oracle下,找到并执行该脚本run ...
- Kernel parameters for Db2 database server installation (Linux and UNIX)
Db2 11.1 For root installations, the database manager uses a formula to automatically adjust kernel ...
- arm linux kernel 从入口到start_kernel 的代码分析
参考资料: <ARM体系结构与编程> <嵌入式Linux应用开发完全手册> Linux_Memory_Address_Mapping http://www.chinaunix. ...
随机推荐
- 关于unity3dGUI(uGUI)的一些自适应的收获,在这里跟大家分享一下
假设大家要转载这篇文章,请注明出处.本人名字叫赖张殷,博客地址为http://my.csdn.net/?c=674f97f953e5dbfdba9fefaa3d1fcbe1 //2017年5月12日改 ...
- android的activity被杀死后如何重启
最近公司的大屏展示机器人上的程序运行时间长了,比如五天,十天会出现偶尔的崩溃,查日志可能是内存溢出或者是ndk层的错误,这种错误一时也不太好查找,但是产品那边有个要求就是程序退出了一定要能重启,能抓日 ...
- 基于mindwave脑电波进行疲劳检测算法的设计(3)
这一节我将讲解thinkgear.h 里面的函数和宏定义.这一些都可以在MindSet Development Tools\ThinkGear Communications Driver\docs\h ...
- 【Big Data - Hadoop - MapReduce】通过腾讯shuffle部署对shuffle过程进行详解
摘要: 通过腾讯shuffle部署对shuffle过程进行详解 摘要:腾讯分布式数据仓库基于开源软件Hadoop和Hive进行构建,TDW计算引擎包括两部分:MapReduce和Spark,两者内部都 ...
- Python3自定义http/https请求拦截mitmproxy脚本
[本文出自天外归云的博客园] 脚本内容 代码如下: from mitmproxy import http, ctx from multiprocessing import Lock class Fil ...
- centos 安装oracle 11g r2(一)-----软件安装
centos 安装oracle 11g r2(一)-----软件安装 1.进入管理员权限 [anzerong@localhost ~]# su - root password [root@localh ...
- git push origin master和git push有什么区别?
1.master是主分支,还可以建一些其他的分支用于开发.2.git push origin master的意思就是上传本地当前分支代码到master分支.git push是上传本地所有分支代码到远程 ...
- 理解Java枚举类型
(参考资料:深入理解java enum) 1.原理:对编译后的class文件javap反编译可以看出,定义的枚举类继承自java.lang.Enum抽象类且通过public static final定 ...
- IllegalArgumentException:@Body parameters cannot be used with form or multi-part encoding
使用retrofit时报错IllegalArgumentException:@Body parameters cannot be used with form or multi-part encodi ...
- WebSphere集群环境修改IHS端口号的方法 分类: WebSphere 2015-08-06 13:41 14人阅读 评论(0) 收藏
参考资料:http://wenku.baidu.com/link?url=E9BkuEjJ16i9lg7l91L0-xhKCYkHV0mAnlwAeSlDCFM4TjZyk4ZVxmUu64BGd4F ...