sp_poolconfig

Description

Creates multiple buffer pools.

Syntax

sp_poolconfig cache_name [, "mem_size [P\K\M\G]", "config_poolK" 
	[, "affected_poolK"]] [, 'instance instance_name']

Parameters

Examples

Example 15

Creating a 4K pool for named cache Executing sp_poolconfig 'tempdb_cache' on instance SALES_INSTANCE displays:


sp_poolconfig 'tempdb_cache','25M','4K'
go
Cache Name    Status Type        Config Value  Run Value
------------ ------ ------------ ------------ ------------
tempdb_cache Active Global,Mixed   100.00 Mb    100.00 Mb
(1 row affected)
                                  ------------ ------------
                            Total 100.00 Mb 100.00 Mb
==========================================================================
Cache: tempdb_cache, Status: Active, Type: Global,Mixed
	Config Size: 100.00 Mb, Run Size: 100.00 Mb
	Config Replacement: strict LRU, Run Replacement: strict LRU
	Config Partition: 1, Run Partition: 1
IO Size    Wash Size    Config Size   Run Size   APF Percent
-------- ------------- ------------ ------------ -----------
2 Kb      15360 Kb       0.00 Mb      75.00 Mb      10
4 Kb       5120 Kb      25.00 Mb     25.00 Mb      10
(return status = 0)

Example 16

Creating a pool configuration for local caches You can create an 8K pool for named cache 'log_hr'. Executing sp_poolconfig 'tempdb_cache' on instance HR_INSTANCE displays:

sp_poolconfig 'log_hr','50M','8K','instance HR_INSTANCE'
go

Cache Name          Status Type    Config Value   Run Value
------------------ ------ -------- ------------ ------------
HR_INSTANCE:log_hr Active Log Only   150.00 Mb    150.00 Mb
(1 row affected)
                                 ------------ ------------
                              Total 150.00 Mb 150.00 Mb
==========================================================================
Cache: HR_INSTANCE:log_hr, Status: Active, Type: Log Only
	Config Size: 150.00 Mb, Run Size: 150.00 Mb
	Config Replacement: strict LRU, Run Replacement: strict LRU
	Config Partition: 1, Run Partition: 1
IO Size    Wash Size    Config Size    Run Size    APF Percent
-------- ------------- ------------ ------------ -----------
2 Kb        20480 Kb      0.00 Mb       100.00 Mb     10
8 Kb        10240 Kb    50.00 Mb         50.00 Mb    10
(return status = 0)

NoteThere is no instance-specific configuration of buffer pools for a global cache. The instance option is used to detect the local cache configuration for which pool configuration is necessary.