SAP Sybase参数调整
2016-03-17 23:02
453 查看
在创建ASE Server后,我们需要根据机器的硬件资源情况和应用特征等因素调整ASE Server的参数设置。在这里将以本人的一个虚拟机环境为例加以说明。
虚拟机环境如下:
* 4个逻辑CPU (Intel(R) Xeon(R) CPU E5620 @ 2.40GHz)
* 内存8GB,可用内存4GB
针对应用:
本人在文章"一个测试数据库OLTP性能的Benchmark程序"中所述的应用
下面是具体的设置:
--1. 调整ASE Server的配置参数
sp_configure 'max memory' , 2097152
go
sp_configure 'lock scheme' , 0 , 'datarows'
go
sp_configure 'procedure cache size' , 102400 --200M
go
sp_configure 'statement cache size', 10240 --20M
go
sp_configure 'enable literal autoparam', 1
go
--sp_configure 'optimization goal','allrows_oltp'
--go
--sp_configure 'enable monitoring',1
--go
sp_configure 'disk i/o structures', 1024
go
sp_configure 'max online engines' , 4
go
sp_configure 'number of user connections' , 200
go
sp_configure 'number of locks' , 1000000
go
sp_configure 'number of open objects' , 1000
go
sp_configure 'number of open indexes' , 2000
go
sp_configure 'number of open partitions' , 2000
go
--2. 设置缺省数据高速缓存
sp_cacheconfig 'default data cache' , '1024M', 'cache_partition=8'
go
--3. 修改线程池设置
alter thread pool syb_blocking_pool with thread count = 2
go
alter thread pool syb_default_pool with thread count = 4
go
虚拟机环境如下:
* 4个逻辑CPU (Intel(R) Xeon(R) CPU E5620 @ 2.40GHz)
* 内存8GB,可用内存4GB
针对应用:
本人在文章"一个测试数据库OLTP性能的Benchmark程序"中所述的应用
下面是具体的设置:
--1. 调整ASE Server的配置参数
sp_configure 'max memory' , 2097152
go
sp_configure 'lock scheme' , 0 , 'datarows'
go
sp_configure 'procedure cache size' , 102400 --200M
go
sp_configure 'statement cache size', 10240 --20M
go
sp_configure 'enable literal autoparam', 1
go
--sp_configure 'optimization goal','allrows_oltp'
--go
--sp_configure 'enable monitoring',1
--go
sp_configure 'disk i/o structures', 1024
go
sp_configure 'max online engines' , 4
go
sp_configure 'number of user connections' , 200
go
sp_configure 'number of locks' , 1000000
go
sp_configure 'number of open objects' , 1000
go
sp_configure 'number of open indexes' , 2000
go
sp_configure 'number of open partitions' , 2000
go
--2. 设置缺省数据高速缓存
sp_cacheconfig 'default data cache' , '1024M', 'cache_partition=8'
go
--3. 修改线程池设置
alter thread pool syb_blocking_pool with thread count = 2
go
alter thread pool syb_default_pool with thread count = 4
go
相关文章推荐
- Linux Kernel 学习路线
- 安装 Apache 出现 <OS 10013> 以一种访问权限不允许的方式做了一个访问套接字的尝试
- JavaScript中with语句的优缺点
- 国内计算机类期刊 SCI收录:
- 设计模式C++学习笔记之十八(Visitor访问者模式)
- 127. Word Ladder LeetCode
- hud 2549 壮志难酬
- AsyncCallback BeginInvode endinvode 异步调用
- 复利计算器开发总结
- SPOJ COT2 Count on a tree II 树上莫队算法
- 安卓第十五天笔记-图形图像一些简单处理
- [nodejs] nodejs开发个人博客(七)后台登陆
- 面试总结
- 盘点8种CSS实现垂直居中水平居中的绝对定位居中技术
- IPv6的重复地址检测
- 设计模式C++学习笔记之十七(Chain of Responsibility责任链模式)
- 安装 Apache 出现 <OS 10013> 以一种访问权限不允许的方式做了一个访问套接字的尝试
- iOS推送通知——Push Notifications Tutorial: Getting Started
- SAP Sybase创建用户数据库
- HTTP 协议