您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: