Veljko Zrnic
2007-11-08 14:38:06 UTC
Hi all,
We have Sybase 12.5.4 running on a very rich Unix box with 90+G of
memory, and 20+ processors.
However the performance is constantly varying in such way that the same
query could take anywhere from 5 sec to 45 sec, and I'm trying to
determine the cause.
I've examined sysmon output from about 10 different executions in past
few days, each with period of 10mins.
The most obvious thing is tempdb cache spinlock contention which at
times reaches even 40% (but usually holds around 25%). Increasing number
of partitions on tempdb is my first thought but I'm not sure how much to
put? I'm thinking either 4 or 8 (so it would come <10%)
Is there any down-size for increasing the number of cache partitions?
Pool turnover is very different in each of the sysmon reports, so I
can't rely on that. Also, I already checked and tempdb is moved away
from master, and it's using dedicated devices so that should be fine.
Here are some outputs for cacheconfig:
sp_cacheconfig
go
Cache Name Status Type Config Value Run
Value
------------------------------ --------- -------- ------------
------------
default data cache Active Default 8192.00 Mb
8192.00 Mb
tempdb cache Active Mixed 200.00 Mb
200.00 Mb
------------
------------
Total 8392.00 Mb
8392.00 Mb
==========================================================================
Cache: default data cache, Status: Active, Type: Default
Config Size: 8192.00 Mb, Run Size: 8192.00 Mb
Config Replacement: strict LRU, Run Replacement: strict LRU
Config Partition: 1, Run Partition: 4
IO Size Wash Size Config Size Run Size APF Percent
-------- --------- ------------ ------------ -----------
2 Kb 245760 Kb 0.00 Mb 3680.00 Mb 10
4 Kb 104848 Kb 512.00 Mb 512.00 Mb 10
16 Kb 245760 Kb 4000.00 Mb 4000.00 Mb 10
==========================================================================
Cache: tempdb cache, Status: Active, Type: Mixed
Config Size: 200.00 Mb, Run Size: 200.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 10240 Kb 0.00 Mb 50.00 Mb 10
4 Kb 30720 Kb 150.00 Mb 150.00 Mb 10
(return status = 0)
We have Sybase 12.5.4 running on a very rich Unix box with 90+G of
memory, and 20+ processors.
However the performance is constantly varying in such way that the same
query could take anywhere from 5 sec to 45 sec, and I'm trying to
determine the cause.
I've examined sysmon output from about 10 different executions in past
few days, each with period of 10mins.
The most obvious thing is tempdb cache spinlock contention which at
times reaches even 40% (but usually holds around 25%). Increasing number
of partitions on tempdb is my first thought but I'm not sure how much to
put? I'm thinking either 4 or 8 (so it would come <10%)
Is there any down-size for increasing the number of cache partitions?
Pool turnover is very different in each of the sysmon reports, so I
can't rely on that. Also, I already checked and tempdb is moved away
from master, and it's using dedicated devices so that should be fine.
Here are some outputs for cacheconfig:
sp_cacheconfig
go
Cache Name Status Type Config Value Run
Value
------------------------------ --------- -------- ------------
------------
default data cache Active Default 8192.00 Mb
8192.00 Mb
tempdb cache Active Mixed 200.00 Mb
200.00 Mb
------------
------------
Total 8392.00 Mb
8392.00 Mb
==========================================================================
Cache: default data cache, Status: Active, Type: Default
Config Size: 8192.00 Mb, Run Size: 8192.00 Mb
Config Replacement: strict LRU, Run Replacement: strict LRU
Config Partition: 1, Run Partition: 4
IO Size Wash Size Config Size Run Size APF Percent
-------- --------- ------------ ------------ -----------
2 Kb 245760 Kb 0.00 Mb 3680.00 Mb 10
4 Kb 104848 Kb 512.00 Mb 512.00 Mb 10
16 Kb 245760 Kb 4000.00 Mb 4000.00 Mb 10
==========================================================================
Cache: tempdb cache, Status: Active, Type: Mixed
Config Size: 200.00 Mb, Run Size: 200.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 10240 Kb 0.00 Mb 50.00 Mb 10
4 Kb 30720 Kb 150.00 Mb 150.00 Mb 10
(return status = 0)