orion需要首先配置hugepage,否则会出现下列错误。
[root@yyxxdb01 ~]# /opt/app/11.2.0/grid_home/bin/orion -run oltp -testname mytest
ORION: ORacle IO Numbers -- Version 11.2.0.4.0
************************ Large Pages Information *******************
Parameter use_large_pages = onlyPer process system memlock (soft) limit = 64 KB
 
Large Pages unused system wide = 0 (0 KB)
Large Pages configured system wide = 0 (0 KB)
Large Page size = 2048 KB 
ERROR:
  Failed to allocate shared global region with large pages, unix errno = 12.
  Aborting the run of Orion.  ORA-27137: unable to allocate Large Pages to create a shared memory segment
ACTION:
  Total Orion I/O Buf Area size is 6144 KB. Prior to next instance restart:
 
 1. Increase the number of unused large pages (page size 2048 KB)
 to at least 3 (6144 KB) to allocate 100% Orion I/O Buf Area
 with large pages.
 
 2. Large pages are automatically locked into physical memory.
 Increase the per process memlock (soft) limit to at least 8192 KB to lock
 100% Orion I/O Buf Area's large pages into physical memory
*******************************************************************
Increase huge pages as suggested or set  -hugenotneeded flag on command line
Failed to create shared memory of size 1051296 (orion_setup_shmem:skgmcreate)
Linux-x86_64 Error: 12: Cannot allocate memory
Additional information: 2097152
orion_parse_args: orion_setup_shmem failed
  1. #!/bin/bash
  2.  
  3. #
  4.  
  5. # hugepages_settings.sh
  6.  
  7. #
  8.  
  9. # Linux bash script to compute values for the
  10.  
  11. # recommended HugePages/HugeTLB configuration
  12.  
  13. #
  14.  
  15. # Note: This script does calculation for all shared memory
  16.  
  17. # segments available when the script is run, no matter it
  18.  
  19. # is an Oracle RDBMS shared memory segment or not.
  20.  
  21. # Check for the kernel version
  22.  
  23. KERN=`uname -r | awk -F. '{ printf("%d.%d\n",$1,$2); }'`
  24.  
  25. # Find out the HugePage size
  26.  
  27. HPG_SZ=`grep Hugepagesize /proc/meminfo | awk {'print $2'}`
  28.  
  29. # Start from pages to be on the safe side and guarantee free HugePage
  30.  
  31. NUM_PG=
  32.  
  33. # Cumulative number of pages required to handle the running shared memorysegments
  34.  
  35. for SEG_BYTES in `ipcs -m | awk {'print $5'} | grep "[0-9][0-9]*"`
  36.  
  37. do
  38.  
  39. MIN_PG=`echo "$SEG_BYTES/($HPG_SZ*1024)" | bc -q`
  40.  
  41. if [ $MIN_PG -gt ]; then
  42.  
  43. NUM_PG=`echo "$NUM_PG+$MIN_PG+1" | bc -q`
  44.  
  45. fi
  46.  
  47. done
  48.  
  49. # Finish with results
  50.  
  51. case $KERN in
  52.  
  53. '2.4') HUGETLB_POOL=`echo "$NUM_PG*$HPG_SZ/1024" | bc -q`;
  54.  
  55. echo "Recommended setting: vm.hugetlb_pool = $HUGETLB_POOL" ;;
  56.  
  57. '2.6' | '3.8' | '4.1') echo "Recommended setting: vm.nr_hugepages = $NUM_PG" ;;
  58.  
  59. *) echo "Unrecognizedkernel version $KERN. Exiting." ;;
  60.  
  61. esac
  62.  
  63. # End

$ chmod u+x hugepages_setting.sh

$ ./hugepages_setting.sh

在"/etc/sysctl.conf"文件里配置huagepages:

vm.nr_hugepages=306

Run the following command as the"root" user.

说明hugepages的配置可以用sysctl –p进行实时生效

# sysctl -p

oracle orion hugepages_settings.sh(支持OEL 7,4.1内核)的更多相关文章

  1. hugepages_settings.sh

    #!/bin/bash## hugepages_settings.sh## Linux bash script to compute values for the# recommended HugeP ...

  2. Oracle 11g 的官方支持周期和时限

    Oracle公司对于自身产品的支持策略大多数人很难搞清楚,对于Oracle Database 11g的支持周期,有很多朋友产生了异议,参考下文提到的一些文件,希望可以帮助大家理解Oracle的产品支持 ...

  3. Oracle的OracleBulkCopy不支持事务处理

    在进行OracleBulkCopy批量数据导入的过程中使用事务后抛出了异常, 没使用事务时可以正确批量导入, ORA-12154:无法解析指定的连接字符串, 但是TNS配置肯定是没有错的, 难道是Co ...

  4. 【Oracle】ORACLE SQL Developer不支持JAVA版本

    ORACLE SQL Developer不支持JAVA版本 今天我打开 ORACLE SQL Developer准备开始练手.没有想到却给出了错误提示. 我 是安装了java JDK的而且是1.6版本 ...

  5. Oracle Orion tool check io(ORACLE Orion 工具查看以及校验IO)

    文档主要来自oracle官方文档performance 8.3章节 Oracle数据库提供了Orion,一种 I/O校准工具.Orion是预测Oracle数据库性能的工具,无需安装Oracle或创建数 ...

  6. oracle in表达式参数支持最大上限1000个

    oracle in表达式参数支持最大上限1000个 方法是拆分为多个 col in ... or col in ... #region 解决大于1000的问题 private String getSu ...

  7. [转帖]Oracle 数据库官方不支持VMWare

    Oracle 数据库官方不支持VMWare [日期:2014-05-13] 来源:Linux社区  作者:myhuaer [字体:大 中 小]   https://www.linuxidc.com/L ...

  8. 2.移植3.4内核-支持烧写yaffs2,裁剪内核并制作补丁

    在上章-制作文件系统,并使内核成功启动jffs2文件系统了 本章主要内容如下: 1)使内核支持yaffs2文件系统 2)裁剪内核 3)制作内核补丁 1.首先获取yaffs2源码(参考git命令使用详解 ...

  9. oracle+ibatis 批量插入-支持序列自增

    首先请先看我前面一篇帖子了解oracle批量插入的sql:[oracle 批量插入-支持序列自增] 我用的ibatis2.0,sqlMap文件引入的标签如下: <!DOCTYPE sqlMap ...

随机推荐

  1. 天气服务API文档 第1版

    HTTP接口设计文档 此文档为开发HTTP接口的设计文档,目前用于提供天气查询的相关接口. 测试的时候使用 URL=http://www.dennisthink.com/test/api/weathe ...

  2. mac-禅道环境

    开机不能访问,换成IP地址就好了

  3. Appium基础(三)对象抓取

    一.启动Android模拟器 二.打开App应用,这里以计算器为例子 三.打开uiautomatorviewer.bat 这个文件在Android SDK-->Tool目录下 双击uiautom ...

  4. 原生js---ajax的封装插件.js---(对get和post做了兼容)

    function ajax(method,url,data,fn){ // 1.创建对象 var xhr=null; try{ xhr=new XMLHttpRequest(); }catch(e){ ...

  5. mysql基础常用命令

    数据库 1查询 Select * From table select host,user,password from mysql.user where user='ybb' and host='%'; ...

  6. 提示“此Flash Player与您的地区不相容,请重新安装Flash”的解决办法

    问题原因: 因为Flash相对于HTML5,有着运算效率低.资源占用大.安全性不高等缺点,随着HTML5越来越普及,Adobe已宣布2020年正式停止支持Flash这项技术. 但Adobe公司为了利益 ...

  7. CNN那么多的网络有什么区别吗?如何对CNN网络进行修改?

    https://www.zhihu.com/question/53727257/answer/136261195 http://blog.csdn.net/csmqq/article/details/ ...

  8. WEB应用程序:AJAX全套

    概述 对于WEB应用程序:用户浏览器发送请求,服务器接收并处理请求,然后返回结果,往往返回就是字符串(HTML),浏览器将字符串(HTML)渲染并显示浏览器上. 1.传统的Web应用 一个简单操作需要 ...

  9. python 试题归纳及答疑 更新中.....

    一.Python基础篇(80题) 1.你为什么学习Python? 一.答题思路 1.阐述 python 优缺点 2.Python应用领域说明 3.根据自身工作情况阐述为什么会使用python 1)py ...

  10. navicat远程连接阿里云ECS上的MYSQL报Lost connection to MySQL server at 'reading initial communication packet'

    问题现象 MySQL 远程连接报错:Lost connection to MySQL server at 'reading initial communication packet' 解决方案 1.检 ...