查看: 20728|回复: 34

[精华] ASE15多用户并发时的效率问题

[复制链接]
论坛徽章:
161
生肖徽章:猴
日期:2006-09-07 17:01:44生肖徽章:蛇
日期:2006-09-07 17:01:53生肖徽章:鼠
日期:2006-09-07 17:06:53生肖徽章:兔
日期:2006-09-26 21:21:51蓝色妖姬
日期:2007-01-25 16:53:47蓝色妖姬
日期:2007-01-25 17:00:58生肖徽章:羊
日期:2007-03-08 13:35:12ITPUB元老
日期:2007-09-19 08:54:06生肖徽章:鼠
日期:2007-09-26 17:00:54生肖徽章:牛
日期:2007-09-26 17:01:05
跳转到指定楼层
1#
发表于 2009-3-8 10:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近在ASE15 64位平台做性能测试,经过调优,单用户执行效率比较理想,基本与MSS效率一样,但多用户并发运行时,效率非常慢,与MSS差的太大,请教SYBASE在这块的处理机制与MSS有何不同?还通过调整什么参数来进行优化?
论坛徽章:
161
生肖徽章:猴
日期:2006-09-07 17:01:44生肖徽章:蛇
日期:2006-09-07 17:01:53生肖徽章:鼠
日期:2006-09-07 17:06:53生肖徽章:兔
日期:2006-09-26 21:21:51蓝色妖姬
日期:2007-01-25 16:53:47蓝色妖姬
日期:2007-01-25 17:00:58生肖徽章:羊
日期:2007-03-08 13:35:12ITPUB元老
日期:2007-09-19 08:54:06生肖徽章:鼠
日期:2007-09-26 17:00:54生肖徽章:牛
日期:2007-09-26 17:01:05
2#
 楼主| 发表于 2009-3-8 10:37 | 只看该作者
参数修改如下

创建了一个数据缓存,绑定到tempdb上了

configure.JPG (101.16 KB, 下载次数: 187)

configure.JPG

cache.JPG (15.13 KB, 下载次数: 188)

cache.JPG

使用道具 举报

回复
论坛徽章:
47
生肖徽章:牛
日期:2007-09-26 17:01:04马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14奥运会纪念徽章:摔跤
日期:2012-09-18 10:12:52版主4段
日期:2012-05-15 15:24:112012新春纪念徽章
日期:2012-01-04 11:50:44现任管理团队成员
日期:2011-05-07 01:45:08生肖徽章:蛇
日期:2007-09-26 17:01:59
3#
发表于 2009-3-9 22:16 | 只看该作者
压力的时候,看过sysmon的数据吗,Server整体情况如何?

使用道具 举报

回复
论坛徽章:
161
生肖徽章:猴
日期:2006-09-07 17:01:44生肖徽章:蛇
日期:2006-09-07 17:01:53生肖徽章:鼠
日期:2006-09-07 17:06:53生肖徽章:兔
日期:2006-09-26 21:21:51蓝色妖姬
日期:2007-01-25 16:53:47蓝色妖姬
日期:2007-01-25 17:00:58生肖徽章:羊
日期:2007-03-08 13:35:12ITPUB元老
日期:2007-09-19 08:54:06生肖徽章:鼠
日期:2007-09-26 17:00:54生肖徽章:牛
日期:2007-09-26 17:01:05
4#
 楼主| 发表于 2009-3-10 08:40 | 只看该作者
下面是跟踪下来的数据,扩充了一下命名缓存,及4KIO的wash size,效果比以前好点了,不过还是达不到理想的状态

===============================================================================
      Sybase Adaptive Server Enterprise System Performance Report
===============================================================================

Server Version:        Adaptive Server Enterprise/15.0.2/EBF 14337/P/X64/Window
Server Name:           PERDB2                                                   
Run Date:              Mar 09, 2009                                             
Sampling Started at:   Mar 09, 2009 17:15:00                                    
Sampling Ended at:     Mar 09, 2009 17:25:00                                    
Sample Interval:       00:10:00                                                
Sample Mode:           No Clear                                                
Server Message:  Number  7415, Severity  10
Server 'PERDB2', Procedure 'sp_sysmon', Line 551:
The transaction log in database tempdb is almost full.  Your transaction is being suspended until space is made available in the log.
Counters Last Cleared: Mar 09, 2009 09:41:19                                    

===============================================================================

Kernel Utilization
------------------

  Your Runnable Process Search Count is set to 2000                             
  and I/O Polling Process Count is set to 10                                    

  Engine Busy Utilization        CPU Busy   I/O Busy       Idle                 
  ------------------------       --------   --------   --------   
    Engine 0                       28.4 %     56.5 %     15.1 %              
    Engine 1                       26.2 %     44.4 %     29.4 %              
    Engine 2                       26.4 %     46.9 %     26.7 %              
    Engine 3                       35.2 %     53.4 %     11.4 %              
  ------------------------       --------   --------   --------   
  Summary           Total         116.2 %    201.2 %     82.6 %              
                  Average          29.0 %     50.3 %     20.7 %              

  CPU Yields by Engine            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                          5.3           2.3        3184      18.2 %
    Engine 1                         10.3           4.5        6167      35.3 %
    Engine 2                          9.2           4.0        5493      31.4 %
    Engine 3                          4.4           1.9        2630      15.1 %
  -------------------------  ------------  ------------  ----------
  Total CPU Yields                   29.1          12.8       17474            

  Network Checks
    Non-Blocking                 983959.1      430931.0   590375456     100.0 %
    Blocking                         58.0          25.4       34817       0.0 %
  -------------------------  ------------  ------------  ----------
  Total Network I/O Checks       984017.1      430956.4   590410273            
  Avg Net I/Os per Check              n/a           n/a     0.00029       n/a   

  Disk I/O Checks
    Total Disk I/O Checks        527079.8      230837.9   316247895       n/a   
    Checks Returning I/O         497534.6      217898.3   298520734      94.4 %
    Avg Disk I/Os Returned            n/a           n/a     0.00632       n/a   


===============================================================================

Worker Process Management
-------------------------
                                  per sec      per xact       count  % of total
                             ------------  ------------  ----------  ----------
Worker Process Requests
   Total Requests                     0.0           0.0           0       n/a   

Worker Process Usage
   Total Used                         0.0           0.0           0       n/a   
   Max Ever Used During Sample        0.0           0.0           0       n/a   

Memory Requests for Worker Processes
   Total Requests                     0.0           0.0           0       n/a   


===============================================================================

Parallel Query Management
-------------------------

  Parallel Query Usage            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total Parallel Queries              0.0           0.0           0       n/a   

  Merge Lock Requests             per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total # of Requests                 0.0           0.0           0       n/a   

  Sort Buffer Waits               per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total # of Waits                    0.0           0.0           0       n/a   

===============================================================================

Task Management                   per sec      per xact       count  % of total
---------------------------  ------------  ------------  ----------  ----------

  Connections Opened                  0.0           0.0          20       n/a   

  Task Context Switches by Engine
    Engine 0                       1120.2         490.6      672121      23.2 %
    Engine 1                       1036.9         454.1      622119      21.5 %
    Engine 2                       1048.0         459.0      628780      21.7 %
    Engine 3                       1614.3         707.0      968566      33.5 %
  -------------------------  ------------  ------------  ----------
    Total Task Switches:           4819.3        2110.6     2891586            

  Task Context Switches Due To:
    Voluntary Yields               2253.5         986.9     1352081      46.8 %
    Cache Search Misses            1090.1         477.4      654070      22.6 %
    Exceeding I/O batch size          3.1           1.4        1884       0.1 %
    System Disk Writes               31.7          13.9       18994       0.7 %
    Logical Lock Contention           0.0           0.0           2       0.0 %
    Address Lock Contention           0.0           0.0           2       0.0 %
    Latch Contention                108.5          47.5       65093       2.3 %
    Log Semaphore Contention        618.6         270.9      371154      12.8 %
    PLC Lock Contention               0.0           0.0           0       0.0 %
    Group Commit Sleeps               0.0           0.0           0       0.0 %
    Last Log Page Writes              0.0           0.0          22       0.0 %
    Modify Conflicts                  1.2           0.5         741       0.0 %
    I/O Device Contention             0.0           0.0           0       0.0 %
    Network Packet Received          10.6           4.6        6343       0.2 %
    Network Packet Sent             266.3         116.6      159807       5.5 %
    Network services                  0.0           0.0           0       0.0 %
    Other Causes                    435.7         190.8      261393       9.0 %


===============================================================================

Application Management
----------------------

  Application Statistics Summary (All Applications)
  -------------------------------------------------
  Priority Changes                per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    To High Priority                727.0         318.4      436215      49.8 %
    To Medium Priority              730.0         319.7      437974      50.0 %
    To Low Priority                   2.8           1.2        1662       0.2 %
  -------------------------  ------------  ------------  ----------
  Total Priority Changes           1459.8         639.3      875851            

  Allotted Slices Exhausted       per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    High Priority                     0.0           0.0           0       0.0 %
    Medium Priority                   4.8           2.1        2889     100.0 %
    Low Priority                      0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
  Total Slices Exhausted              4.8           2.1        2889            

  Skipped Tasks By Engine         per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total Engine Skips                  0.0           0.0           0       n/a   

  Engine Scope Changes                0.0           0.0           0       n/a   

===============================================================================

ESP Management                    per sec      per xact       count  % of total
---------------------------  ------------  ------------  ----------  ----------
  ESP Requests                        0.0           0.0           0       n/a   
===============================================================================

Housekeeper Task Activity
-------------------------
                                  per sec      per xact       count  % of total
                             ------------  ------------  ----------            
Buffer Cache Washes                                                            
  Clean                            145.9          63.9       87548      95.0 %
  Dirty                              7.7           3.4        4630       5.0 %
                             ------------  ------------  ----------            
Total Washes                       153.6          67.3       92178              

Garbage Collections                  1.6           0.7         940       n/a   
Pages Processed in GC                0.0           0.0          17       n/a   

Statistics Updates                   0.1           0.0          40       n/a   

===============================================================================

Monitor Access to Executing SQL
-------------------------------
                                  per sec      per xact       count  % of total
                             ------------  ------------  ----------  ----------
Waits on Execution Plans            0.0           0.0           0       n/a   
Number of SQL Text Overflows        0.0           0.0           0       n/a   
Maximum SQL Text Requested          n/a           n/a           0       n/a   
  (since beginning of sample)                                                   


===============================================================================

Transaction Profile
-------------------

  Transaction Summary             per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Committed Xacts                   2.3           n/a        1370     n/a     

  Transaction Detail              per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Inserts
      APL Heap Table               2524.7        1105.7     1514791      33.3 %
      APL Clustered Table             0.0           0.0           0       0.0 %
      Data Only Lock Table         5068.2        2219.7     3040922      66.7 %
      Fast Bulk Insert                0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
    Total Rows Inserted            7592.9        3325.3     4555713      50.0 %

    Updates
      APL Deferred                    0.0           0.0           0       0.0 %
      APL Direct In-place             0.1           0.0          66       0.0 %
      APL Direct Cheap                0.0           0.0           0       0.0 %
      APL Direct Expensive            0.0           0.0           0       0.0 %
      DOL Deferred                 1522.4         666.7      913440      28.2 %
      DOL Direct                   3871.9        1695.7     2323146      71.8 %
  -------------------------  ------------  ------------  ----------  ----------
    Total Rows Updated             5394.4        2362.5     3236652      35.5 %

    Data Only Locked Updates
      DOL Replace                  5366.3        2350.2     3219791      99.5 %
      DOL Shrink                      0.0           0.0           0       0.0 %
      DOL Cheap Expand                0.1           0.0          34       0.0 %
      DOL Expensive Expand           28.7          12.6       17221       0.5 %
      DOL Expand & Forward            0.0           0.0           0       0.0 %
      DOL Fwd Row Returned            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
    Total DOL Rows Updated         5395.1        2362.8     3237046      35.5 %

    Deletes
      APL Deferred                    0.0           0.0           0       0.0 %
      APL Direct                      0.0           0.0           0       0.0 %
      DOL                          2195.6         961.6     1317383     100.0 %
  -------------------------  ------------  ------------  ----------  ----------
    Total Rows Deleted             2195.6         961.6     1317383      14.5 %
  =========================  ============  ============  ==========
    Total Rows Affected           15182.9        6649.5     9109748            

===============================================================================

Transaction Management
----------------------

  ULC Flushes to Xact Log         per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    by Full ULC                    1691.4         740.8     1014832      99.5 %
    by End Transaction                2.3           1.0        1402       0.1 %
    by Change of Database             4.0           1.8        2418       0.2 %
    by Single Log Record              0.0           0.0           2       0.0 %
    by Unpin                          0.0           0.0           1       0.0 %
    by Other                          1.9           0.8        1112       0.1 %
  -------------------------  ------------  ------------  ----------
  Total ULC Flushes                1699.6         744.4     1019767            

  ULC Log Records                 23540.4       10309.6    14124216       n/a   
  Max ULC Size During Sample          n/a           n/a           0       n/a   

  ULC Semaphore Requests
    Granted                       23862.7       10450.8    14317643     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
  Total ULC Semaphore Req         23862.7       10450.8    14317643            

  Log Semaphore Requests
    Granted                        1445.8         633.2      867450      70.0 %
    Waited                          618.6         270.9      371154      30.0 %
  -------------------------  ------------  ------------  ----------
  Total Log Semaphore Req          2064.3         904.1     1238604            

  Transaction Log Writes           1737.2         760.8     1042315       n/a   
  Transaction Log Alloc            1901.8         832.9     1141063       n/a   
  Avg # Writes per Log Page           n/a           n/a     0.91346       n/a   

  Tuning Recommendations for Transaction Management                             
  -------------------------------------------------                             
  - Consider increasing the 'user log cache size'
    configuration parameter.

===============================================================================

Index Management
----------------

  Nonclustered Maintenance        per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Ins/Upd Requiring Maint           0.1           0.0          66       n/a   
      # of NC Ndx Maint               0.0           0.0           0       n/a   
      Avg NC Ndx Maint / Op           n/a           n/a     0.00000       n/a   

    Deletes Requiring Maint           0.1           0.0          66       n/a   
      # of NC Ndx Maint               0.0           0.0           0       n/a   
      Avg NC Ndx Maint / Op           n/a           n/a     0.00000       n/a   

    RID Upd from Clust Split          0.0           0.0           0       n/a   
      # of NC Ndx Maint               0.0           0.0           0       n/a   

    Upd/Del DOL Req Maint          7590.7        3324.4     4554422       n/a   
      # of DOL Ndx Maint           2201.2         964.0     1320730       n/a   
      Avg DOL Ndx Maint / Op          n/a           n/a     0.28999       n/a   

  Page Splits                        67.8          29.7       40669       n/a   
    Retries                           0.0           0.0           0       0.0 %
    Deadlocks                         0.0           0.0           0       0.0 %
    Add Index Level                   0.1           0.0          66       0.2 %

  Page Shrinks                        0.0           0.0           0       n/a   

  Index Scans                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Ascending Scans                2369.2        1037.6     1421506      17.8 %
    DOL Ascending Scans           10868.0        4759.7     6520778      81.6 %
    Descending Scans                 87.5          38.3       52488       0.7 %
    DOL Descending Scans              0.9           0.4         559       0.0 %
                             ------------  ------------  ----------            
    Total Scans                   13325.6        5836.0     7995331            

===============================================================================

Metadata Cache Management
-------------------------

  Metadata Cache Summary         per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------

  Open Object Usage                                                            
    Active                            n/a           n/a         982       n/a   
    Max Ever Used Since Boot          n/a           n/a         982       n/a   
    Free                              n/a           n/a        4018       n/a   
    Reuse Requests                                                              
      Succeeded                       n/a           n/a           0       n/a   
      Failed                          n/a           n/a           0       n/a   

  Open Index Usage                                                              
    Active                            n/a           n/a         183       n/a   
    Max Ever Used Since Boot          n/a           n/a         183       n/a   
    Free                              n/a           n/a        4817       n/a   
    Reuse Requests                                                              
      Succeeded                       n/a           n/a           0       n/a   
      Failed                          n/a           n/a           0       n/a   

  Open Partition Usage                                                         
    Active                            n/a           n/a         183       n/a   
    Max Ever Used Since Boot          n/a           n/a         183       n/a   
    Free                              n/a           n/a       14817       n/a   
    Reuse Requests                                                              
      Succeeded                       n/a           n/a           0       n/a   
      Failed                          n/a           n/a           0       n/a   

  Open Database Usage                                                           
    Active                            n/a           n/a           7       n/a   
    Max Ever Used Since Boot          n/a           n/a           7       n/a   
    Free                              n/a           n/a           5       n/a   
    Reuse Requests                                                              
      Succeeded                       n/a           n/a           0       n/a   
      Failed                          n/a           n/a           0       n/a   

  Object Manager Spinlock Contention  n/a           n/a         n/a       0.1 %

  Object Spinlock Contention          n/a           n/a         n/a       0.0 %

  Index Spinlock Contention           n/a           n/a         n/a       0.0 %

  Index Hash Spinlock Contention      n/a           n/a         n/a       0.0 %

  Partition Spinlock Contention       n/a           n/a         n/a       0.0 %

  Partition Hash Spinlock Contention  n/a           n/a         n/a       0.0 %

===============================================================================

Lock Management
---------------

  Lock Summary                    per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total Lock Requests              5939.1        2601.1     3563441       n/a   
  Avg Lock Contention                 0.0           0.0           4       0.0 %
  Deadlock Percentage                 0.0           0.0           0       0.0 %

  Lock Detail                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------

  Table Lock Hashtable
    Lookups                         464.5         203.4      278704       n/a   
    Avg Chain Length                  n/a           n/a     0.11258       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %

  Exclusive Table
    Granted                          11.0           4.8        6629     100.0 %
    Waited                            0.0           0.0           2       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Table Requests            11.1           4.8        6631       0.2 %

  Shared Table
    Granted                           2.0           0.9        1204     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Table Requests             2.0           0.9        1204       0.0 %

  Exclusive Intent
    Granted                           7.1           3.1        4276     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Intent Requests            7.1           3.1        4276       0.1 %

  Shared Intent
    Granted                         424.7         186.0      254834     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Intent Requests          424.7         186.0      254834       7.2 %

  Page & Row Lock HashTable
    Lookups                        3164.1        1385.7     1898453       n/a   
    Avg Chain Length                  n/a           n/a     0.03522       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %

  Exclusive Page
    Granted                           0.1           0.0          41     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Page Requests              0.1           0.0          41       0.0 %

  Update Page
    Granted                           0.1           0.0          44     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total UP-Page Requests              0.1           0.0          44       0.0 %

  Shared Page
    Granted                        1209.8         529.8      725852     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Page Requests           1209.8         529.8      725852      20.4 %


  Exclusive Row
    Granted                          95.5          41.8       57305     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Row Requests              95.5          41.8       57305       1.6 %

  Update Row
    Granted                          37.9          16.6       22739     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total UP-Row Requests              37.9          16.6       22739       0.6 %

  Shared Row
    Granted                        1636.5         716.7      981919     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Row Requests            1636.5         716.7      981919      27.6 %


  Next-Key
    Total Next-Key Requests           0.0           0.0           0       n/a   

  Address Lock Hashtable
    Lookups                        2514.3        1101.1     1508569       n/a   
    Avg Chain Length                  n/a           n/a     0.00011       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %

  Exclusive Address
    Granted                         137.1          60.1       82270     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Address Requests         137.1          60.1       82270       2.3 %

  Shared Address
    Granted                        2377.2        1041.1     1426324     100.0 %
    Waited                            0.0           0.0           2       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Address Requests        2377.2        1041.1     1426326      40.0 %


  Last Page Locks on Heaps
    Granted                        2524.8        1105.7     1514851     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total Last Pg Locks              2524.8        1105.7     1514851     100.0 %


  Deadlocks by Lock Type          per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total Deadlocks                     0.0           0.0           0       n/a   


  Deadlock Detection
    Deadlock Searches                 0.0           0.0           5       n/a   
    Searches Skipped                  0.0           0.0           0       0.0 %
    Avg Deadlocks per Search          n/a           n/a     0.00000       n/a   


  Lock Promotions
    Total Lock Promotions             0.0           0.0           0       n/a   


  Lock Timeouts by Lock Type      per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total Timeouts                      0.0           0.0           0       n/a   

  Tuning Recommendations for Lock Management                                    
  ------------------------------------------                                    
  - Consider increasing the 'deadlock checking period' parameter
    by 50 ms.


===============================================================================

Data Cache Management
---------------------

  Cache Statistics Summary (All Caches)
  -------------------------------------
                                  per sec      per xact       count  % of total
                             ------------  ------------  ----------  ----------

    Cache Search Summary
      Total Cache Hits            68969.3       30205.5    41381565      98.2 %
      Total Cache Misses           1272.2         557.2      763322       1.8 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches          70241.5       30762.7    42144887            

    Cache Turnover
      Buffers Grabbed              5428.7        2377.5     3257223       n/a   
      Buffers Grabbed Dirty           0.0           0.0           0       0.0 %

    Cache Strategy Summary
      Cached (LRU) Buffers        72013.8       31538.9    43208267     100.0 %
      Discarded (MRU) Buffers         0.0           0.0           0       0.0 %

    Large I/O Usage
      Large I/Os Performed           33.6          14.7       20177      86.5 %

      Large I/Os Denied due to                                                  
        Pool < Prefetch Size         -0.0           0.0          -4      -0.0 %
        Pages Requested                                                         
        Reside in Another                                                      
        Buffer Pool                   5.3           2.3        3162      13.6 %
  -------------------------  ------------  ------------  ----------
    Total Large I/O Requests         38.9          17.0       23335            

    Large I/O Effectiveness
      Pages by Lrg I/O Cached        67.3          29.5       40354       n/a   
      Pages by Lrg I/O Used          55.7          24.4       33438      82.9 %

    Asynchronous Prefetch Activity
      APFs Issued                    20.1           8.8       12084       1.6 %
      APFs Denied Due To                                                        
        APF I/O Overloads             0.3           0.1         198       0.0 %
        APF Limit Overloads          38.5          16.8       23081       3.0 %
        APF Reused Overloads          0.0           0.0           4       0.0 %
      APF Buffers Found in Cache                                                
        With Spinlock Held            0.0           0.0           0       0.0 %
        W/o Spinlock Held          1216.1         532.6      729658      95.4 %
  -------------------------  ------------  ------------  ----------
    Total APFs Requested           1275.0         558.4      765025            

    Other Asynchronous Prefetch Statistics
      APFs Used                      20.1           8.8       12044       n/a   
      APF Waits for I/O               8.9           3.9        5359       n/a   
      APF Discards                    0.1           0.0          31       n/a   

    Dirty Read Behavior
      Page Requests                   0.0           0.0           0       n/a   

-------------------------------------------------------------------------------
  Cache: default data cache
                                  per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Spinlock Contention               n/a           n/a         n/a       0.6 %

    Utilization                       n/a           n/a         n/a      12.5 %

    Cache Searches
      Cache Hits                   8791.6        3850.3     5274950     100.0 %
         Found in Wash              140.5          61.5       84276       1.6 %
      Cache Misses                    0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches           8791.6        3850.3     5274950

    Pool Turnover
      4  Kb Pool
          LRU Buffer Grab             1.3           0.6         758     100.0 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Turnover              1.3           0.6         758

    Buffer Wash Behavior
      Statistics Not Available - No Buffers Entered Wash Section Yet

    Cache Strategy
      Cached (LRU) Buffers         8694.0        3807.6     5216402     100.0 %
      Discarded (MRU) Buffers         0.0           0.0           0       0.0 %

    Large I/O Usage
      Total Large I/O Requests        0.0           0.0           0       n/a

    Large I/O Detail
     16  Kb Pool
        Pages Cached                  0.0           0.0           0       n/a   
        Pages Used                    0.0           0.0           0       n/a   

    Dirty Read Behavior
          Page Requests               0.0           0.0           0       n/a

    Tuning Recommendations for Data cache : default data cache
    -------------------------------------                                       
    - Consider using 'relaxed LRU replacement policy'
      for this cache.

-------------------------------------------------------------------------------
  Cache: tempdbcache
                                  per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Spinlock Contention               n/a           n/a         n/a      12.6 %

    Utilization                       n/a           n/a         n/a      87.5 %

    Cache Searches
      Cache Hits                  60177.7       26355.2    36106615      97.9 %
         Found in Wash              239.0         104.7      143398       0.4 %
      Cache Misses                 1272.2         557.2      763322       2.1 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches          61449.9       26912.4    36869937

    Pool Turnover
      4  Kb Pool
          LRU Buffer Grab          5393.8        2362.3     3236288      99.4 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
      8  Kb Pool
          LRU Buffer Grab            33.6          14.7       20177       0.6 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Turnover           5427.4        2377.0     3256465

    Buffer Wash Behavior
      Buffers Passed Clean         1450.4         635.2      870256      46.1 %
      Buffers Already in I/O          6.0           2.6        3589       0.2 %
      Buffers Washed Dirty         1686.7         738.7     1011998      53.7 %

    Cache Strategy
      Cached (LRU) Buffers        63319.8       27731.3    37991865     100.0 %
      Discarded (MRU) Buffers         0.0           0.0           0       0.0 %

    Large I/O Usage
      Large I/Os Performed           33.6          14.7       20177      86.5 %

      Large I/Os Denied due to
        Pool < Prefetch Size         -0.0           0.0          -4      -0.0 %
        Pages Requested
        Reside in Another
        Buffer Pool                   5.3           2.3        3162      13.6 %
  -------------------------  ------------  ------------  ----------
    Total Large I/O Requests         38.9          17.0       23335

    Large I/O Detail
     8   Kb Pool
        Pages Cached                 67.3          29.5       40354       n/a
        Pages Used                   55.7          24.4       33438      82.9 %

    Dirty Read Behavior
          Page Requests               0.0           0.0           0       n/a

    Tuning Recommendations for Data cache : tempdbcache
    -------------------------------------                                       
    - Consider using Named Caches or Cache partitions or both.

===============================================================================

Procedure Cache Management        per sec      per xact       count  % of total
---------------------------  ------------  ------------  ----------  ----------
  Procedure Requests                 13.7           6.0        8225       n/a   
  Procedure Reads from Disk           0.0           0.0           0       0.0 %
  Procedure Writes to Disk            5.2           2.3        3102      37.7 %
  Procedure Removals                  0.0           0.0           0       n/a   
  Procedure Recompilations            0.0           0.0           0       n/a   

  SQL Statement Cache:
    Statements Cached                 0.0           0.0           0       n/a   
    Statements Found in Cache         0.0           0.0           0       n/a   
    Statements Not Found              0.0           0.0           0       n/a   
    Statements Dropped                0.0           0.0           0       n/a   
    Statements Restored               0.0           0.0           0       n/a   
    Statements Not Cached             4.2           1.8        2495       n/a   


===============================================================================

Memory Management                 per sec      per xact       count  % of total
---------------------------  ------------  ------------  ----------  ----------
  Pages Allocated                    71.9          31.5       43167       n/a   
  Pages Released                     71.9          31.5       43157       n/a   

===============================================================================

Recovery Management
-------------------

  Checkpoints                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    # of Normal Checkpoints           0.0           0.0           4     100.0 %
    # of Free Checkpoints             0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------            
  Total Checkpoints                   0.0           0.0           4            

  Avg Time per Normal Chkpt       0.00000 seconds                              

===============================================================================

Disk I/O Management
-------------------

  Max Outstanding I/Os            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Server                            n/a           n/a         256       n/a   
    Engine 0                          n/a           n/a         256       n/a   
    Engine 1                          n/a           n/a         256       n/a   
    Engine 2                          n/a           n/a         256       n/a   
    Engine 3                          n/a           n/a         256       n/a   


  I/Os Delayed by
    Disk I/O Structures               n/a           n/a      214108       n/a   
    Server Config Limit               n/a           n/a           0       n/a   
    Engine Config Limit               n/a           n/a           0       n/a   
    Operating System Limit            n/a           n/a           0       n/a   


  Total Requested Disk I/Os        3307.6        1448.6     1984563            

  Completed Disk I/O's
    Asynchronous I/O's
      Engine 0                      898.7         393.6      539223      28.6 %
      Engine 1                      538.5         235.8      323080      17.1 %
      Engine 2                      529.5         231.9      317725      16.8 %
      Engine 3                     1178.6         516.2      707134      37.5 %
    Synchronous I/O's
      Total Completed I/Os            0.0           0.0           0       n/a   
  -------------------------  ------------  ------------  ----------            
  Total Completed I/Os             3145.3        1377.5     1887162            


  Device Activity Detail
  ----------------------

  Device:                                                                       
    D:\sybase\data\master.dat                                                   
    master                        per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.8           0.3         477      47.9 %
    Writes                            0.9           0.4         518      52.1 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          1.7           0.7         995       0.1 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    D:\sybase\data\sybsysdb.dat                                                
    systemdbdev                   per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0           0       n/a   
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0           0       0.0 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    D:\sybase\data\sysprocs.dat                                                
    sysprocsdev                   per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.0           0.0           0       0.0 %
    Writes                            0.0           0.0           4     100.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0           4       0.0 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    f:\cwData\cwdata2.dat                                                      
    cwdata2                       per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.0           0.0           0       0.0 %
    Writes                            0.1           0.0          40     100.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.1           0.0          40       0.0 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    f:\cwData\cwlog2.dat                                                        
    cwlog2                        per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0           0       n/a   
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0           0       0.0 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    f:\cwData\cwmaster.dat                                                      
    cwmaster                      per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0           0       n/a   
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0           0       0.0 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    f:\cwData\tempdb3.dat                                                      
    tempdb3                       per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                       887.7         388.8      532596      50.0 %
    Writes                          888.2         389.0      532891      50.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                       1775.8         777.7     1065487      56.5 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    f:\cwData\tempdbd01.dat                                                     
    tempdbd01                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             6.5           2.8        3885       5.6 %
      Non-APF                         9.7           4.2        5809       8.4 %
    Writes                           99.0          43.4       59426      86.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                        115.2          50.5       69120       3.7 %


  -----------------------------------------------------------------------------

  Device:                                                                       
    tempdb2                                                                     
    tempdb2                       per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                            13.7           6.0        8198       1.1 %
      Non-APF                       192.0          84.1      115202      15.3 %
    Writes                         1047.2         458.6      628330      83.6 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                       1252.9         548.7      751730      39.8 %


  -----------------------------------------------------------------------------


  Tuning Recommendations for Disk I/O Management                                
  ----------------------------------------------                                
  - Consider increasing the 'disk i/o structures'
    configuration parameter.


===============================================================================

Network I/O Management
----------------------

  Total Network I/O Requests        280.8         123.0      168460       n/a   
    Network I/Os Delayed              0.0           0.0           0       0.0 %


  Total TDS Packets Received      per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                          3.7           1.6        2228      25.9 %
    Engine 1                          3.8           1.6        2257      26.2 %
    Engine 2                          3.2           1.4        1947      22.6 %
    Engine 3                          3.6           1.6        2168      25.2 %
  -------------------------  ------------  ------------  ----------            
  Total TDS Packets Rec'd            14.3           6.3        8600            


  Total Bytes Received            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                        784.0         343.4      470393      26.6 %
    Engine 1                        747.0         327.2      448196      25.4 %
    Engine 2                        690.0         302.2      414011      23.4 %
    Engine 3                        725.7         317.8      435407      24.6 %
  -------------------------  ------------  ------------  ----------            
  Total Bytes Rec'd                2946.7        1290.5     1768007            


   Avg Bytes Rec'd per Packet          n/a           n/a         205       n/a  

  -----------------------------------------------------------------------------

  Total TDS Packets Sent          per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                         65.0          28.5       39010      24.4 %
    Engine 1                         61.1          26.8       36653      22.9 %
    Engine 2                         75.4          33.0       45246      28.3 %
    Engine 3                         64.9          28.4       38966      24.4 %
  -------------------------  ------------  ------------  ----------            
  Total TDS Packets Sent            266.5         116.7      159875            


  Total Bytes Sent                per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                      36333.2       15912.3    21799915      27.6 %
    Engine 1                      26253.0       11497.6    15751775      19.9 %
    Engine 2                      32189.8       14097.7    19313901      24.4 %
    Engine 3                      36956.0       16185.1    22173624      28.1 %
  -------------------------  ------------  ------------  ----------            
  Total Bytes Sent               131732.0       57692.9    79039215            


  Avg Bytes Sent per Packet           n/a           n/a         494       n/a   

=============================== End of Report =================================

使用道具 举报

回复
论坛徽章:
12
茶鸡蛋
日期:2013-07-01 11:36:19暖羊羊
日期:2015-06-15 11:12:272015年新春福章
日期:2015-06-08 16:49:35懒羊羊
日期:2015-05-01 14:32:02马上有对象
日期:2015-02-08 22:59:56马上有钱
日期:2014-08-04 17:28:09问答徽章
日期:2014-03-25 22:41:342014年新春福章
日期:2014-03-15 11:26:24马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11
5#
发表于 2009-3-11 10:13 | 只看该作者
先给出sp_helpdb,sp_cacheconfig的结果,请注意tempdb快要满了

压力好象都体现在tempdb相关方面,tempcache的8k I/O基本没起作用,检查一下sql的query plan是否存在不合理之处。

此外既然配置有4G mem,为什么不多配一点给cache呢?CPU的时间大部分都浪费在I/O上了。

使用道具 举报

回复
论坛徽章:
161
生肖徽章:猴
日期:2006-09-07 17:01:44生肖徽章:蛇
日期:2006-09-07 17:01:53生肖徽章:鼠
日期:2006-09-07 17:06:53生肖徽章:兔
日期:2006-09-26 21:21:51蓝色妖姬
日期:2007-01-25 16:53:47蓝色妖姬
日期:2007-01-25 17:00:58生肖徽章:羊
日期:2007-03-08 13:35:12ITPUB元老
日期:2007-09-19 08:54:06生肖徽章:鼠
日期:2007-09-26 17:00:54生肖徽章:牛
日期:2007-09-26 17:01:05
6#
 楼主| 发表于 2009-3-11 10:47 | 只看该作者

回复 #5 1017of 的帖子

已经给了不少了

==========================================================================
default data cache        Active        Default          1331.20 Mb          1331.20 Mb
tempdbcache                Active        Mixed          1500.00 Mb          1500.00 Mb

                            Total    2831.20 Mb   2831.20 Mb   
==========================================================================
Cache: default data cache,   Status: Active,   Type: Default
      Config Size: 1331.20 Mb,   Run Size: 1331.20 Mb
      Config Replacement: strict LRU,   Run Replacement: strict LRU
      Config Partition:            1,   Run Partition:            2

    4 Kb            122880 Kb             0.00 Mb          1031.20 Mb            10
   16 Kb             61440 Kb           300.00 Mb           300.00 Mb            10

==========================================================================
Cache: tempdbcache,   Status: Active,   Type: Mixed
      Config Size: 1500.00 Mb,   Run Size: 1500.00 Mb
      Config Replacement: strict LRU,   Run Replacement: strict LRU
      Config Partition:            1,   Run Partition:            1

    4 Kb            102400 Kb             0.00 Mb           800.00 Mb            10
    8 Kb             61440 Kb           700.00 Mb           700.00 Mb            10
==========================================================================

使用道具 举报

回复
论坛徽章:
161
生肖徽章:猴
日期:2006-09-07 17:01:44生肖徽章:蛇
日期:2006-09-07 17:01:53生肖徽章:鼠
日期:2006-09-07 17:06:53生肖徽章:兔
日期:2006-09-26 21:21:51蓝色妖姬
日期:2007-01-25 16:53:47蓝色妖姬
日期:2007-01-25 17:00:58生肖徽章:羊
日期:2007-03-08 13:35:12ITPUB元老
日期:2007-09-19 08:54:06生肖徽章:鼠
日期:2007-09-26 17:00:54生肖徽章:牛
日期:2007-09-26 17:01:05
7#
 楼主| 发表于 2009-3-11 10:49 | 只看该作者
sp_helpdb

sp_helpdb.JPG (45.05 KB, 下载次数: 188)

sp_helpdb.JPG

使用道具 举报

回复
论坛徽章:
0
8#
发表于 2009-3-11 11:09 | 只看该作者
给出sp_configure 'log'结果

default cache 16k和temp cache 8k的效果不大,请结合业务特点考虑降低或取消;此外,看看tempdb上的lock contension是否比较多。

使用道具 举报

回复
论坛徽章:
161
生肖徽章:猴
日期:2006-09-07 17:01:44生肖徽章:蛇
日期:2006-09-07 17:01:53生肖徽章:鼠
日期:2006-09-07 17:06:53生肖徽章:兔
日期:2006-09-26 21:21:51蓝色妖姬
日期:2007-01-25 16:53:47蓝色妖姬
日期:2007-01-25 17:00:58生肖徽章:羊
日期:2007-03-08 13:35:12ITPUB元老
日期:2007-09-19 08:54:06生肖徽章:鼠
日期:2007-09-26 17:00:54生肖徽章:牛
日期:2007-09-26 17:01:05
9#
 楼主| 发表于 2009-3-11 11:45 | 只看该作者
原帖由 1017of_cu 于 2009-3-11 11:09 发表
给出sp_configure 'log'结果

default cache 16k和temp cache 8k的效果不大,请结合业务特点考虑降低或取消;此外,看看tempdb上的lock contension是否比较多。

default cache 16k和temp cache 8k的效果还是很大的,多用户并发时,如果不设,就会非常慢

sp_configure "log"

sp_configure log.JPG (91.11 KB, 下载次数: 181)

sp_configure log.JPG

使用道具 举报

回复
论坛徽章:
12
茶鸡蛋
日期:2013-07-01 11:36:19暖羊羊
日期:2015-06-15 11:12:272015年新春福章
日期:2015-06-08 16:49:35懒羊羊
日期:2015-05-01 14:32:02马上有对象
日期:2015-02-08 22:59:56马上有钱
日期:2014-08-04 17:28:09问答徽章
日期:2014-03-25 22:41:342014年新春福章
日期:2014-03-15 11:26:24马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11
10#
发表于 2009-3-12 08:13 | 只看该作者
user log cache size 都 8192了 ,好像还有问题,奇怪,太少见了,是不是事务都很大呢?
此外,如果large I/O真的有效果,建议把large I/O的块大小放大,最大为基本页面大小乘以16。
表面上,I/O的问题比较明显,但需要确定是出现了不合理的I/O还是I/O本身性能有问题,所以最好能跟踪一下sql的执行计划

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表