`
61party
  • 浏览: 1106862 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

Modifying Linux Kernel Parameters

 
阅读更多

本文转载自:http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.uprun.doc/doc/t0008238.htm

另外,http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.qb.server.doc/doc/t0008238.html也解释了如何修改kernel的参数。

To update kernel parameters:

Red Hat and SUSE Linux
The following information can be used to determine if there are any necessary changes required for your system.

The following is the output from theipcs -lcommand. Comments have been added following the//to show what the parameter names are.

  

Beginning with the first section on Shared Memory Limits, SHMMAX and SHMALL are the parameters that need to be looked at. SHMMAX is the maximum size of a shared memory segment on a Linux system whereas SHMALL is the maximum allocation of shared memory pages on a system.

For SHMMAX, the minimum required on x86 systems would be 268435456 (256 MB) and for 64-bit systems, it would be 1073741824 (1 GB).

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 DB2, then this parameter should be increased to approximately 90% of the physical memory as specified for your computer. For instance, if you have a computer system with 16 GB of memory to be used primarily for DB2, then 90% of 16 GB is 14.4 GB divided by 4 KB (the base page size) is 3774873. The ipcs output has converted SHMALL into kilobytes. The kernel requires this value as a number of pages.

The next section covers the amount of semaphores available to the operating system. The kernel parameter sem consists of 4 tokens, SEMMSL, SEMMNS, SEMOPM and SEMMNI. SEMMNS is the result of SEMMSL multiplied by SEMMNI. The database manager requires that the number of arrays (SEMMNI) be increased as necessary. Typically, SEMMNI should be twice the maximum number of connections allowed (MAXAGENTS) multiplied by the number of logical partitions on the database server computer plus the number of local application connections on the database server computer.

The third section covers messages on the system.

MSGMNI affects the number of agents that can be started, MSGMAX affects the size of the message that can be sent in a queue, and MSGMNB affects the size of the queue.

MSGMAX should be change to 64 KB (that is, 65535 bytes), and MSGMNB should be increased to 65535 on Server systems.

To modify these kernel parameters, we need to edit the/etc/sysctl.conffile. If this file does not exist, it should be created. The following lines are examples of what should be placed into the file:

Runsysctlwith-pparameter to load insysctlsettings from the default file/etc/sysctl.conf.

   sysctl -p

To make the changes effective after every reboot,boot.sysctlneeds to be active on SUSE Linux. On Red Hat, therc.sysinitinitialization script will read the/etc/sysctl.conffile automatically.

分享到:
评论

相关推荐

    linux kernel in a nutshell

    ### Linux Kernel In A Nutshell: Key Insights and Concepts The book "Linux Kernel In A Nutshell" by Greg Kroah-Hartman is a comprehensive guide designed to provide a high-level overview of the Linux ...

    Linux+Kernel+In+A+Nutshell.pdf

    Part I. Building the Kernel 1. Introduction . . . . . . . ....2. Requirements for Building and Using the Kernel ....Tools to Build the Kernel 5 ...Modifying the Bootloader for the New Kernel 32 ..........

    Improving Support Vector Machine Classifiers by Modifying Kernel Functions

    ### 改进支持向量机分类器通过修改核函数 #### 概述 在机器学习领域,支持向量机(SVM)作为一种强大的分类技术,近年来受到广泛关注。它由Vapnik及其团队提出,与传统的分类方法不同,SVM不仅关注最小化训练误差...

    vxworks_kernel_programmers_guide_6.9

    1.2 Kernel Architecture ......................................................................................................... 3 1.3 Related Documentation Resources ...................................

    RACGuides_Rac10gR2OnLinux.pdf

    Configuring Kernel Parameters - 配置内核参数以满足Oracle RAC的要求。 #### 2.7. Setting Shell Limits for the oracle User - 为oracle用户设置shell限制,如最大文件句柄数等。 #### 2.8. Configuration of ...

    Linux Pocket Guide, 3rd Edition

    The third edition features new commands for processing image files and audio files, running and killing programs, reading and modifying the system clipboard, and manipulating PDF files, as well as ...

    accessing-and-modifying.zip

    "accessing-and-modifying.zip"这个压缩包可能包含了关于如何使用Python和OpenCV来访问和修改图像数据的相关资料。接下来,我们将深入探讨这两个关键主题。 Python是一种高级编程语言,以其简洁、易读的语法而闻名...

    linux的一些命令嵌入式

    初始化文件识别与修改 (Identifying and Modifying Initialization Files) - **文件**: `.bashrc`, `.bash_profile`, `.profile` - **功能**: 用户级别的初始化脚本。 - **示例**: 编辑 `.bashrc` 添加环境变量...

    Wiley.Publishing.Fedora.Linux.Toolbox.1000+.Commands.for.Fedora.CentOS.and.Red.Hat.Power.Users.and.Red.Hat.Power.Users.2008.pdf

    ### Fedora Linux Toolbox: 1000+ Commands for Fedora, CentOS, and Red Hat Power Users #### Chapter 1: Starting with Fedora Linux In this chapter, readers are introduced to Fedora Linux, an advanced ...

    Oracle sqldeveloper without jdk (win+linux)

    - Bug # 4918539: ORA-ORA-06502 or ORA-01460 may occurs if a procedure is executed through the Run PL/SQL dialog box and a string with multibyte characters is assigned to one of the parameters. ...

    akn_cd_modifying_概率模拟_MATLAB抽卡_

    通过对"akn_cd_modifying.py"文件的研究,我们可以深入理解概率模拟在实际应用中的方法。 首先,我们要了解概率模拟的基础概念。概率模拟是通过计算机程序来模拟随机事件,以研究真实世界中复杂的概率问题。在抽卡...

    OpenWF Display Configuration Developer's Guide: Modifying the Wfdcfg library

    If you are integrating a new display, you must configure and provide the parameters of your display based on its specifications via the OpenWF Display Configuration API (Wfdcfg Library).

    NVIDIA GRID vGPU软件最新版-中文用户指南(全).docx

    NVIDIA GRID vGPU用户指南(全).docx,本... 《Modifying a VM's NVIDIA vGPU Configuration》本节介绍如何移除虚拟机的vGPU该任务指导软件调测工程师为开启vgpu的虚拟机配置和修改GPU分配。必备事项  《Monitoring

    modifying-the-name-of-computer.rar_computer

    这个函数定义在`kernel32.dll`库中,其原型如下: ```delphi function SetComputerName(lpComputerName: LPCTSTR): BOOL; stdcall; ``` 其中,`lpComputerName`参数是要设置的新计算机名称。这个函数返回`TRUE`...

    Stellaris Launchpad with OpenOCD and Linux.pdf

    In this project we will walk you through the process of building OpenOCD on Linux to work with Launchpad, debugging a project with GDB, and modifying the project behavior. OpenOCD opens up debug ...

    Ubuntu The Complete Reference

    - **Advanced System Configuration**: In-depth coverage of more advanced topics like kernel parameters, boot loader configuration, and managing startup services. - **Performance Tuning**: Techniques ...

    Android 开发核心指南

    9. Linux内核和安全性(Linux Kernel and Security): - Android基于Linux内核,每个应用运行在独立的用户ID下,从而具有良好的隔离性。 - 通过Linux用户ID和权限设置,可以控制应用的文件访问,确保数据安全。 ...

    SpringData @Query和@Modifying注解原理解析

    在Spring Data JPA中,`@Query`和`@Modifying`这两个注解是用于扩展和控制数据访问层的操作。它们提供了一种更灵活的方式来执行自定义的JPA查询和修改操作,而不仅仅是依赖于默认的方法命名规则。 `@Query`注解允许...

    js-dom-and-events-modifying-html-readme-v-000-源码.rar

    这个压缩包"js-dom-and-events-modifying-html-readme-v-000-源码.rar"包含的源码很可能是一系列关于使用JavaScript操作DOM和处理事件的示例。 **DOM基础** DOM是一个树形结构,其中每个节点代表HTML文档的一部分...

Global site tag (gtag.js) - Google Analytics