[20170516]11G use_large_pages参数2.txt

简介: [20170516]11G use_large_pages参数2.txt //前面我提到如果设置use_large_pages=auto.设置页面大小不足时,oracle会oradism经常修改内核参数vm.

[20170516]11G use_large_pages参数2.txt

//前面我提到如果设置use_large_pages=auto.设置页面大小不足时,oracle会oradism经常修改内核参数vm.nr_hugepages.
//忘记测试是否在退出后可以收回.链接如下:
http://blog.itpub.net/267265/viewspace-2135210/

--//不知道什么回事,以前写的,忘记发了,补上.

1.环境
SYS@book> @ &r/ver1

PORT_STRING                    VERSION        BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx            11.2.0.4.0     Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

SYS@book> show parameter  use_large_pages
NAME             TYPE     VALUE
---------------- -------- ------
use_large_pages  string   AUTO

--//重启数据库设置vm.nr_hugepages=100.执行sysctl -p.

# cat /proc/meminfo | grep -i  page
AnonPages:         63312 kB
PageTables:         2808 kB
AnonHugePages:         0 kB
HugePages_Total:     100
HugePages_Free:      100
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

2.启动数据库:
SYS@book> startup
ORACLE instance started.

Total System Global Area  634732544 bytes
Fixed Size                  2255792 bytes
Variable Size             197133392 bytes
Database Buffers          427819008 bytes
Redo Buffers                7524352 bytes
Database mounted.
Database opened.

--//alert日志:
Tue May 16 15:37:05 2017
Adjusting the default value of parameter parallel_max_servers
from 480 to 120 due to the value of parameter processes (150)
Starting ORACLE instance (normal)
Specified value of sga_max_size is too small, bumping to 637534208
DISM started, OS id=42323
************************ Large Pages Information *******************
Parameter use_large_pages = AUTO
Per process system memlock (soft) limit = 51 GB

Total Shared Global Region in Large Pages = 610 MB (100%)

Large Pages used by this instance: 305 (610 MB)
Large Pages unused system wide = 0 (0 KB)
Large Pages configured system wide = 305 (610 MB)
Large Page size = 2048 KB
Time taken to allocate Large Pages = 0.015872 sec
********************************************************************


--//上次我提到建立进程42323,启动oradism修改内核参数.

# ps -p  42323 -l
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
4 S     0 42323     1  0  80   0 -  3338 pipe_w ?        00:00:00 oradism

$  ls -l $(which oradism)
-rwsr-x--- 1 root oinstall 71790 2013-08-24 10:51:02 /u01/app/oracle/product/11.2.0.4/dbhome_1/bin/oradism
--//oradism具有root属主.

# cat /proc/meminfo | grep -i  page
AnonPages:        157020 kB
PageTables:        11964 kB
AnonHugePages:         0 kB
HugePages_Total:     305
HugePages_Free:       99
HugePages_Rsvd:       99
HugePages_Surp:        0
Hugepagesize:       2048 kB

--//使用305.原来设置100不足.

3.测试关闭后是否会回收.
SYS@book> shutdown immediate ;
Database closed.
Database dismounted.
ORACLE instance shut down.

# cat /proc/meminfo | grep -i  page
AnonPages:         74060 kB
PageTables:         3856 kB
AnonHugePages:         0 kB
HugePages_Total:     305
HugePages_Free:      305
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

--//可以发现不会回收.
# sysctl -p

# cat /proc/meminfo | grep -i  page
AnonPages:         73816 kB
PageTables:         3420 kB
AnonHugePages:         0 kB
HugePages_Total:     100
HugePages_Free:      100
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB

--//如果关闭数据库时能回收就好了.

目录
相关文章
|
小程序
小程序踩坑-appJSON["tabBar"][2]["pagePath"] "pages/test/test" 需在 pages 数组中
小程序踩坑-appJSON["tabBar"][2]["pagePath"] "pages/test/test" 需在 pages 数组中
127 0
|
缓存 Java 关系型数据库
关于page Cache和memory mappped Files 和zero copy
关于page Cache和memory mappped Files 和zero copy
174 0
关于page Cache和memory mappped Files 和zero copy
|
Oracle 关系型数据库 Java
Configuring HugePages (Doc ID 1479908.1)
Configuring HugePages (Doc ID 1479908.1)
92 0
|
缓存 Oracle 关系型数据库
[201804012]关于hugepages 3.txt
[201804012]关于hugepages 3.txt --//有一段时间我一直强调安装oracle一定要配置hugepage,因为现在的服务器内存越来越大,如果还使用4K的页面表,如果内存表占用内存巨大, --//特别连接数量很大的情况下,更加明显,结果导致内存紧张,使用交换,这些类似的例子网上很多.
871 0
|
关系型数据库 Oracle 数据库
[20170927]关于hugepages.txt
[20170927]关于hugepages.txt --//今天测试hugepages与内核参数nr_overcommit_hugepages,才发现HugePages_Surp表示什么? --// [20170209]理解pre_page_sga参数.
999 0
|
关系型数据库 MySQL Linux
Packet for query is too large (12238 > 1024). You can change this value
MySQL max_allowed_packet 设置过小导致记录写入失败 mysql根据配置文件会限制server接受的数据包大小。 有时候大的插入和更新会受max_allowed_packet 参数限制,导致写入或者更新失败。
2037 0
|
Oracle 关系型数据库 数据库
[20170313]11G use_large_pages参数.txt
[20170313]11G use_large_pages参数.txt --11G 增加参数use_large_pages,可以灵活使用hugepages. 1.环境: SYS@book> @ &r/ver1 PORT_STRING             ...
1093 0