Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1565754
  • 博文数量: 201
  • 博客积分: 2812
  • 博客等级: 少校
  • 技术积分: 3029
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-18 18:28
个人简介

从事数据库工作多年,目前看好分布式NeSQL/HTAP数据库在企业客户市场的发展。未来的主要方向是——致力于 NewSQL/HTAP 数据库的推广普及。

文章存档

2016年(1)

2015年(8)

2014年(23)

2013年(50)

2012年(32)

2011年(87)

分类: Sybase

2013-07-17 10:15:10

    在创建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

阅读(2107) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~