




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
HP-UX Kernel Configuration for Oracle DBs Last Update: July 2002 (Oracle 8/8i/9i R1/9i R2, HP-UX 11/11i)Oracle 9i recommendations:- Minimum RAM = 256 MB- HP-UX 11 or HP-UX 11i- Swap Space: Minimum 2 x RAM or 400MB, whichever is greater- available Disk Space: 3 GB- Create OS UNIX groups for Oracle system:o OSDBA group : Requiredo OSOPER group: Optionalo ORAINVENTORY group: Optionalo APACHE group: Recommended- Please check appendix 6 for SCHED_NOAGE usage and MLOCKNote: These are minimum kernel requirements for Oracle9i. If you have previouslytuned your kernel parameters to levels equal to or higher than these values (be careful for file system cache parameters dbc_max_pct, dbc_min_pct), continue to use the higher values. A system restart is necessary for kernel changes to take effect.Kernel Parameter Setting PurposeHP-UX 11.x Kernel ParameterDescription, Default/Recommended ValuebufpagesNumber of static Buffer Pages of 4kB, enables dynamic buffer cache (see dbc_max/min_pct). default= 0recommended: 0dbc_max_pctMax dynamic Buffer Cache size in percentof system memory, when bufpages andnbuf are both set to 0, default=50.recommended: between 3 and 10Its more efficient to use system memoryfor Oracle SGA instead of file systembuffer cachedbc_min_pctMin dynamic Buffer Cache size in percentof system memory (see dbc_max_pct),default=5.recommended: between 2 and 5fs_asyncsee appendix 2 and appendix 6KSI_ALLOC_MAX(NPROC * 8) Defines the system wide limit of queued signal that can be allocated.max_async_portsMaximum number of asyncdsk ports that can be open at one time. If an error happens with this, it will not shown in the Oracle alert.log file or in trace files. default: 50recommended: max. no of shadow processes + no of parallel querie slavesmax_thread_procMax no. of threads allowed in each processdefault: 64recommended: = Oracle 8.1.7 = 256maxfilesSoft File Limit per Process, soft limit for number of files a process is allowed to have open simultaneously. Processes can increase their soft limit until they reach the hard limit maxfiles_lim.default=60.recommended=1024maxfiles_limHard File Limit per Process,default=1024.recommended=1024 (default).maxdsizRefers to the maximum data segment size for 32-bit systems. Setting this value too low may cause the processes to run out of memory.Max Data Segment Size (Bytes)default: 67108864recommended: = Oracle 9i = 1073741824 bytesmaxdsiz_64bitRefers to the maximum data segment size for 64-bit systems. Setting this value too low may cause the processes to run out of memory.Max Data Segment Size (Bytes)default: 1073741824recommended:= Oracle 9i = 2147483648 bytesMAXSSIZDefines the maximum stack segment size in bytes for 32-bit systems.Recommended:= Oracle 9i = 134217728 bytesMAXSSIZ_64BITDefines the maximum stack segment size in bytes for 64-bit systems.Recommended:= Oracle 9i = 1073741824 bytesmaxtsizeMax Text Segment size (Bytes)Recommended: 128MBmax_fcp_reqsMaximum Number of Concurrent Fiber Channel Requests Per Adapterrecommended: 512maxswapchunksmaximum number of swap chunks where SWCHUNK is the swap chunk size (1 KB blocks).Default: 2048recommended: = Oracle 9i = 16384maxusersValue of MAXUSERS macro, limits theSsstem resource allocation (not the actualnumber of users). Influences nproc, ninode, nfile.default=32.recommended: set to number of concurrent Oracle DB users + 64maxuprcMax Number of simultaneous user processes (per user-id!). default=75Because all database processes often runwith the Oracle user-id, its recommended: = Oracle 9i = (NPROC*9)/10)MaxvgsMax. number of volume groups:Default: 10Recommended: increase to the number of volume groups you would like to have on the system (maximum 256)MSGMAPDefines the maximum number of message map entries.Recommended:= Oracle 9i = (MSGTQL + 2)MSGMNIDefines the number of message queueidentifiers.Recommended:= Oracle 9i = (NPROC)MSGSEGDefines the number of segments available for messages.Recommended:= Oracle 9i = (NPROC * 4) (at least 32767)MSGTQLDefines the number of message headers.Recommended: = Oracle 9i = (NPROC)NCALLOUTDefines the maximum number of pending timeouts.Recommended:= Oracle 9i = (NPROC + 16)NCSIZEDefines the Directory Name Lookup Cache (DNLC) space needed for inodes.Recommended:= Oracle 9i = (8 * NPROC + 2048) + VX_NCSIZE)VX_NCSIZE is by default 1024.nfileMax Number of simultaneously Openfiles system-wide at any given time. Totalnumber of slots it the file descriptor table,default=16*(nproc+16+maxusers)/10+32+ 2*(npty+nstrpty)recommended:= Oracle 9i = (15 * NPROC + 2048)nflocksMax Number of File Locks availablesystem-wide, (check with glance if you are getting close to the value you have set)default=200 or 200+10*(num_clients)recommended: = Oracle 9i = (nproc) (at least 4096)NINODEDefines the maximum number of open inodes.Recommended:= Oracle 9i = (8 * NPROC + 2048)NKTHREADDefines the maximum number of kernel threads supported by the system.Recommended: = Oracle 9i = (NPROC * 7) / 4) + 16)nprocMax Number of Processes that can existsimultaneously in the system,default=(20+8*MAXUSERS), influences ninode, nfile.recommended: = Oracle 9i = 4096nptyNumber of ptys (pseudo ttys), default=60.recommended: if you are using rlogin/telnetconnections from clients to server thenincrease npty up to the number of clientusers, otherwise use default.Note: ptys are not used when using Oracle SQL*Netnum_tachyon_adaptersHP-UX 11.0 onlyNumber of Tachyon-based Fiber Channel Adapters in the SystemRecommended: minimum 5, set to real number of Fiber Channel AdaptersHP-UX 11i no support for tachyon adapters, the new is tachlite, which do not use this kernel parameter.o_sync_is_o_dsyncEnable/Disable translation of O_SYNC toO_DSYNC in open()/fcntl() calls,default=0.recommended:= Oracle7.3 = use default for o_sync_is_o_dsync=0 (patch #310042 not needed).SEMMAPDefines the maximum number ofsemaphore map entries. Recommended: = Oracle 9i = (SEMMNI + 2)semmniNumber of Semaphore Identifiers,specifies the maximum number of sets ofsemaphores that can exist simultaneouslyon the system, default=64.recommended: = Oracle9i = 4096semmnsMax Number of Semaphores, defines thesystem-wide maximum number ofindividual semaphores that can beallocated for users, default=128.recommended: = Oracle 9i = (semmni * 2)SEMMNUDefines the number of semaphore undostructures.Recommended: = Oracle 9i = (NPROC 4)SEMVMXMaximum value of a semaphore.Recommended: = Oracle 9i = 32768shmmax (see appendix 4)maximum allowable size of one shared memory segment. The SHMMAX setting should be largeenough to hold the entire SGA in one shared memory segment. A low setting can cause creation of multiple shared memory segments which may lead to performance degradation, but normally it is ok to use a small number of shared memory segments.default=0x04000000 (64MB) Oracle 7 0x40000000 (1GB = 1073741824 Bytes) Oracle 8, 8irecommended: db_block_size * db_block_buffers + shared_pool_size + log_buffer + shared memory for the application orhold the entire SGA in one shared memory segment !(for 64bit use up to size of physical memory, but Oracle can also use multiple segments (please check appendix 4)Shmmnimaximum number of shared memory segments in the entire system.default=200. recommended: = Oracle 9i = 512Shmsegmaximum number of shared memory segments one process can attach.default=12.recommended: = Oracle 9i = 32 per Oracle database StreampipesSet this parameter to 0 during on the installation of Oracle DB will reduce the installation time.Default: 0Recommended for installation: 0swapmem_on(see appendix 5)Allow Memory to Exceed Swap Spacedefault: 0 (off)recommended: 1 (on)SwchunkSwap Chunk Size (1K Blocks)default: 2048recommended: 4096VPS_CEILINGmaximum System-Selected Page Size in kilobytes.Recommended: = Oracle9i = 64Helpful Tools:To list all kernel parameters on the system - use SAM or - /usr/sbim/kmtune l | moreTo update a kernel parameter - Use SAM or- /usr/sbin/kmtune s =|+To find out 32 or 64 bit HP-UX 11.x getconf KERNEL_BITSLimitations on processes- ulimit aThe command sysdef analyzes the currently running system and reports on its tunable configuration parameters.- sysdef | moreTo find out 32 or 64 bit Oracle software version $ cd $ORACLE_HOME/bin $ file oracle # if this is the answer, you have 32-bit Oracle oracle: PA-RISC1.1 shared executable dynamically linked -not stripped # if this is the answer, you have 64 bit Oracle oracle: ELF-64 executable object file - PA-RISC 2.0 (LP64)APPENDIX 1: db_block_sizeThe default db_block_size on HP-UX is 2048. But we recommend to use the following values: - db_block_size = 4096 to 8192 for OLTP Applications, - db_block_size = 8192 to 16384 for DSS/DW Applications.APPENDIX 2: Raw Devices + Asynchronous IOWe recommend to use raw devices instead of file system files for Oracledatafiles and to use asynchronous IO, both resulting in much betterperformance.Use stripping with a large number of disks to spread IO over multiple disks (high number is good). Define the number of disks in your stripe set also dependent of your future growth of your storage, otherwise you will get probably hot spots in the future. For the stripping are 2 possibility exists. For a high number of disks we did not figured out big difference in performance. Use the HP-UX Logical Volume Manager to stripe logical volumes (used asdatafiles) across single disks. Recommended stripe size: 64KB or use HP-UX Extend-based-striping with 1 MB or even larger extends.To implement asynchronous IO
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 环评单位实习报告写作指导范文
- 中学英语教师资格考试备考指南
- 幼儿园扎染手工艺制作教学活动方案
- 小学生语文课程纲要解读
- 建筑工程材料验收检查标准
- 建筑节能施工技术规范及项目应用案例
- 医院门诊医生工作考核办法
- 高中生物常用口诀全集
- 城市公共交通安全管理规范与案例分析
- 企业供应链优化与成本控制方案
- 网络交友新时代课件
- 电商直播行业合规性风险管控与流程优化报告
- 第08讲+建议信(复习课件)(全国适用)2026年高考英语一轮复习讲练测
- 政务大模型安全治理框架
- 生态视角下陕南乡村人居环境适老化设计初步研究
- “研一教”双驱:名师工作室促进区域青年教师专业发展的实践探索
- 手卫生及消毒隔离基本知识
- 2025四川能投合江电力有限公司员工招聘11人笔试备考题库及答案解析
- 江苏省徐州市2025年中考英语真题(含答案)
- 包钢招聘考试试题及答案
- 生物安全实验室管理体系文件
评论
0/150
提交评论