免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4318 | 回复: 19
打印 上一主题 下一主题

求救:我的sybase实在太慢了,请高手帮忙看看! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-09-02 16:30 |只看该作者 |倒序浏览
服务器550
CUP:porer5 1.5G 两个
内存:4g

数据库现在运行了5个月,现在数据量4个多G,其中有个表有280多万行记录,主要的查询均用到此表,现在速度变得其慢无比。现在发现简单的SQL查询速度不慢,一旦用存储过程查询速度就会很慢,而其对其他工作站的影响相当大,感觉好像是TEMPDB的问题。
贴出SP_SYSMON “00:20:00”,请高手们帮忙看看,谢谢!
DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role.
===============================================================================
      Sybase Adaptive Server Enterprise System Performance Report
===============================================================================

Server Version:        Adaptive Server Enterprise/12.5.0.3/EBF 10691 IR/P/RS600
Server Name:           XYHM                                                     
Run Date:              Sep 02, 2005                                             
Statistics Cleared at: 15:10:37                                                
Statistics Sampled at: 15:30:38                                                
Sample Interval:       00:20:00                                                

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

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

  Engine Busy Utilization
    Engine 0                       98.6 %                                      
    Engine 1                       96.0 %                                      
  -----------             ---------------          ----------------
  Summary                 Total   194.6 %          Average   97.3 %           

  CPU Yields by Engine            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                          0.4           0.1         502      53.8 %
    Engine 1                          0.4           0.1         431      46.2 %
  -------------------------  ------------  ------------  ----------
  Total CPU Yields                    0.8           0.2         933            

  Network Checks
    Non-Blocking                    922.5         198.9     1107042      99.0 %
    Blocking                          9.2           2.0       11037       1.0 %
  -------------------------  ------------  ------------  ----------
  Total Network I/O Checks          931.7         200.9     1118079            
  Avg Net I/Os per Check              n/a           n/a     0.10457       n/a   

  Disk I/O Checks
    Total Disk I/O Checks          4659.2        1004.7     5590994       n/a   
    Checks Returning I/O            458.5          98.9      550240       9.8 %
    Avg Disk I/Os Returned            n/a           n/a     0.07061       n/a   

  Tuning Recommendations for Kernel Utilization                                 
  ---------------------------------------------                                 
  - Consider bringing more engines online


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

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   


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

论坛徽章:
0
2 [报告]
发表于 2005-09-02 16:37 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

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.1           0.0         173       n/a   

  Task Context Switches by Engine
    Engine 0                         48.3          10.4       57948      48.6 %
    Engine 1                         51.0          11.0       61251      51.4 %
  -------------------------  ------------  ------------  ----------
    Total Task Switches:             99.3          21.4      119199            

  Task Context Switches Due To:
    Voluntary Yields                 21.9           4.7       26231      22.0 %
    Cache Search Misses               0.4           0.1         422       0.4 %
    System Disk Writes                0.3           0.1         380       0.3 %
    I/O Pacing                        2.0           0.4        2449       2.1 %
    Logical Lock Contention           0.1           0.0         142       0.1 %
    Address Lock Contention           0.0           0.0           0       0.0 %
    Latch Contention                  0.0           0.0           0       0.0 %
    Log Semaphore Contention          0.0           0.0           7       0.0 %
    PLC Lock Contention               0.0           0.0           0       0.0 %
    Group Commit Sleeps               0.2           0.0         224       0.2 %
    Last Log Page Writes              3.1           0.7        3693       3.1 %
    Modify Conflicts                  0.1           0.0         107       0.1 %
    I/O Device Contention             0.0           0.0           0       0.0 %
    Network Packet Received          37.4           8.1       44919      37.7 %
    Network Packet Sent              60.0          12.9       72004      60.4 %
    Other Causes                    -26.1          -5.6      -31379     -26.3 %

  Tuning Recommendations for Task Management                                    
  ------------------------------------------                                    
  - Consider tuning your Network I/O sub-system.


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

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

  Application Statistics Summary (All Applications)
  -------------------------------------------------
  Priority Changes                per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    To High Priority                  0.2           0.0         278      24.2 %
    To Medium Priority                0.5           0.1         628      54.6 %
    To Low Priority                   0.2           0.0         244      21.2 %
  -------------------------  ------------  ------------  ----------
  Total Priority Changes              1.0           0.2        1150            

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

  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                             10.8           2.3       13018      96.3 %
  Dirty                              0.4           0.1         497       3.7 %
                             ------------  ------------  ----------            
Total Washes                        11.3           2.4       13515              

Garbage Collections                  7.6           1.6        9138       n/a   
Pages Processed in GC                0.0           0.0           0       n/a   

Statistics Updates                   0.1           0.0          68       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                   4.6           n/a        5565     n/a     

  Transaction Detail              per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Inserts
      APL Heap Table               2445.5         527.3     2934637      44.4 %
      APL Clustered Table          3041.1         655.8     3649330      55.3 %
      Data Only Lock Table           16.4           3.5       19641       0.3 %
  -------------------------  ------------  ------------  ----------  ----------
    Total Rows Inserted            5503.0        1186.6     6603608      99.2 %

    Updates
      APL Deferred                    0.1           0.0          71       0.1 %
      APL Direct In-place             0.0           0.0          56       0.1 %
      APL Direct Cheap                0.0           0.0          22       0.0 %
      APL Direct Expensive            0.0           0.0          50       0.1 %
      DOL Deferred                    0.0           0.0           0       0.0 %
      DOL Direct                     40.6           8.8       48776      99.6 %
  -------------------------  ------------  ------------  ----------  ----------
    Total Rows Updated               40.8           8.8       48975       0.7 %

    Data Only Locked Updates
      DOL Replace                    23.3           5.0       27951      57.3 %
      DOL Shrink                      0.2           0.0         276       0.6 %
      DOL Cheap Expand                0.5           0.1         540       1.1 %
      DOL Expensive Expand           16.1           3.5       19339      39.6 %
      DOL Expand & Forward            0.6           0.1         670       1.4 %
      DOL Fwd Row Returned            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
    Total DOL Rows Updated           40.6           8.8       48776       0.7 %

    Deletes
      APL Deferred                    2.4           0.5        2837      56.5 %
      APL Direct                      1.8           0.4        2127      42.4 %
      DOL                             0.0           0.0          56       1.1 %
  -------------------------  ------------  ------------  ----------  ----------
    Total Rows Deleted                4.2           0.9        5020       0.1 %
  =========================  ============  ============  ==========
    Total Rows Affected            5548.0        1196.3     6657603            

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

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

  ULC Flushes to Xact Log         per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    by Full ULC                       6.5           1.4        7776      38.1 %
    by End Transaction                3.2           0.7        3888      19.0 %
    by Change of Database             0.1           0.0          74       0.4 %
    by Single Log Record              0.7           0.2         898       4.4 %
    by Other                          6.5           1.4        7781      38.1 %
  -------------------------  ------------  ------------  ----------
  Total ULC Flushes                  17.0           3.7       20417            

  ULC Log Records                   121.4          26.2      145649       n/a   
  Max ULC Size During Sample          n/a           n/a        4096       n/a   

  ULC Semaphore Requests
    Granted                         242.8          52.4      291341     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
  Total ULC Semaphore Req           242.8          52.4      291341            

  Log Semaphore Requests
    Granted                          14.3           3.1       17113     100.0 %
    Waited                            0.0           0.0           7       0.0 %
  -------------------------  ------------  ------------  ----------
  Total Log Semaphore Req            14.3           3.1       17120            

  Transaction Log Writes             12.1           2.6       14490       n/a   
  Transaction Log Alloc               9.0           1.9       10758       n/a   
  Avg # Writes per Log Page           n/a           n/a     1.34690       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.5           0.1         659       n/a   
      # of NC Ndx Maint               1.4           0.3        1675       n/a   
      Avg NC Ndx Maint / Op           n/a           n/a     2.54173       n/a   

    Deletes Requiring Maint           0.3           0.1         419       n/a   
      # of NC Ndx Maint               0.9           0.2        1030       n/a   
      Avg NC Ndx Maint / Op           n/a           n/a     2.45823       n/a   

    RID Upd from Clust Split          0.0           0.0          21       n/a   
      # of NC Ndx Maint               0.3           0.1         320       n/a   
      Avg NC Ndx Maint / Op           n/a           n/a    15.23810       n/a   

    Upd/Del DOL Req Maint            40.7           8.8       48832       n/a   
      # of DOL Ndx Maint              0.0           0.0          56       n/a   
      Avg DOL Ndx Maint / Op          n/a           n/a     0.00115       n/a   

  Page Splits                         0.4           0.1         428       n/a   
    Retries                           0.0           0.0           0       0.0 %
    Deadlocks                         0.0           0.0           0       0.0 %
    Add Index Level                   0.0           0.0           1       0.2 %

  Page Shrinks                        0.0           0.0           2       n/a   
    Deadlocks                          %                                       
    Deadlock Retries Exceeded         0.0           0.0           0       0.0 %

  Index Scans                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Ascending Scans                1222.3         263.6     1466742      96.6 %
    DOL Ascending Scans              36.4           7.9       43692       2.9 %
    Descending Scans                  7.0           1.5        8376       0.6 %
    DOL Descending Scans              0.0           0.0           0       0.0 %
                             ------------  ------------  ----------            
    Total Scans                    1265.7         272.9     1518810            

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

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

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

  Open Object Usage                                                            
    Active                            n/a           n/a         881       n/a   
    Max Ever Used Since Boot          n/a           n/a         896       n/a   
    Free                              n/a           n/a        4119       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         621       n/a   
    Max Ever Used Since Boot          n/a           n/a         621       n/a   
    Free                              n/a           n/a          15       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           8       n/a   
    Max Ever Used Since Boot          n/a           n/a           8       n/a   
    Free                              n/a           n/a           4       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.0 %

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

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

  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            151230.0       32610.2   181475964       n/a   
  Avg Lock Contention                 0.1           0.0         142       0.0 %
  Deadlock Percentage                 0.0           0.0           0       0.0 %

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

  Table Lock Hashtable
    Lookups                          81.1          17.5       97322       n/a   
    Avg Chain Length                  n/a           n/a     0.02549       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %

  Exclusive Table
    Granted                           0.8           0.2         941      99.5 %
    Waited                            0.0           0.0           5       0.5 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Table Requests             0.8           0.2         946       0.0 %

  Shared Table
    Granted                           0.1           0.0         171      98.8 %
    Waited                            0.0           0.0           2       1.2 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Table Requests             0.1           0.0         173       0.0 %

  Exclusive Intent
    Granted                           7.8           1.7        9332     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Intent Requests            7.8           1.7        9332       0.0 %

  Shared Intent
    Granted                          72.1          15.6       86564     100.0 %
    Waited                            0.0           0.0          27       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Intent Requests           72.2          15.6       86591       0.0 %

  Page & Row Lock HashTable
    Lookups                      141927.8       30604.4   170313373       n/a   
    Avg Chain Length                  n/a           n/a     0.01118       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %

  Exclusive Page
    Granted                           4.7           1.0        5628     100.0 %
    Waited                            0.0           0.0           1       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Page Requests              4.7           1.0        5629       0.0 %

  Update Page
    Granted                           7.2           1.6        8652      99.4 %
    Waited                            0.0           0.0          53       0.6 %
  -------------------------  ------------  ------------  ----------  ----------
  Total UP-Page Requests              7.3           1.6        8705       0.0 %

  Shared Page
    Granted                      141868.0       30591.5   170241592     100.0 %
    Waited                            0.0           0.0          54       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Page Requests         141868.0       30591.5   170241646      93.8 %


  Exclusive Row
    Granted                           0.2           0.0         262     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Row Requests               0.2           0.0         262       0.0 %

  Update Row
    Granted                           0.0           0.0          56     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total UP-Row Requests               0.0           0.0          56       0.0 %

  Shared Row
    Granted                          36.9           8.0       44293     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Row Requests              36.9           8.0       44293       0.0 %


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

  Address Lock Hashtable
    Lookups                        9231.9        1990.7    11078331       n/a   
    Avg Chain Length                  n/a           n/a     0.00002       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %

  Exclusive Address
    Granted                          24.7           5.3       29641     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total EX-Address Requests          24.7           5.3       29641       0.0 %

  Shared Address
    Granted                        9207.2        1985.4    11048690     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total SH-Address Requests        9207.2        1985.4    11048690       6.1 %


  Last Page Locks on Heaps
    Granted                        2445.5         527.3     2934637     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total Last Pg Locks              2445.5         527.3     2934637     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.1           0.0         102       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.


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

论坛徽章:
0
3 [报告]
发表于 2005-09-02 16:41 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

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

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

    Cache Search Summary
      Total Cache Hits           154978.6       33418.6   185974339     100.0 %
      Total Cache Misses             69.5          15.0       83424       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches         155048.1       33433.6   186057763            

    Cache Turnover
      Buffers Grabbed                 9.9           2.1       11890       n/a   
      Buffers Grabbed Dirty           0.0           0.0           0       0.0 %

    Cache Strategy Summary
      Cached (LRU) Buffers       154532.4       33322.3   185438825     100.0 %
      Discarded (MRU) Buffers         0.0           0.0           0       0.0 %

    Large I/O Usage
      Large I/Os Performed            2.5           0.5        2947      95.6 %

      Large I/Os Denied due to                                                  
      Pool < Prefetch Size            0.1           0.0         136       4.4 %
  -------------------------  ------------  ------------  ----------
    Total Large I/O Requests          2.6           0.6        3083            

    Large I/O Effectiveness
      Pages by Lrg I/O Cached        19.6           4.2       23576       n/a   
      Pages by Lrg I/O Used           1.1           0.2        1376       5.8 %

    Asynchronous Prefetch Activity
      APFs Issued                     5.8           1.2        6904       7.4 %
      APFs Denied Due To                                                        
        APF I/O Overloads             0.0           0.0           0       0.0 %
        APF Limit Overloads           0.0           0.0           0       0.0 %
        APF Reused Overloads          0.0           0.0           0       0.0 %
      APF Buffers Found in Cache                                                
        With Spinlock Held            0.0           0.0           0       0.0 %
        W/o Spinlock Held            71.6          15.4       85934      92.6 %
  -------------------------  ------------  ------------  ----------
    Total APFs Requested             77.4          16.7       92838            

    Other Asynchronous Prefetch Statistics
      APFs Used                       5.7           1.2        6897       n/a   
      APF Waits for I/O               1.7           0.4        1990       n/a   
      APF Discards                    0.0           0.0           0       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       2.0 %

    Utilization                       n/a           n/a         n/a      92.2 %

    Cache Searches
      Cache Hits                 142904.9       30815.1   171485879     100.0 %
         Found in Wash                8.0           1.7        9551       0.0 %
      Cache Misses                    7.3           1.6        8703       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches         142912.2       30816.6   171494582            

    Pool Turnover
      2  Kb Pool                                                               
          LRU Buffer Grab             5.9           1.3        7027      81.9 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
      16 Kb Pool                                                               
          LRU Buffer Grab             0.1           0.0         172       2.0 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Turnover              7.1           1.5        8575            

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

    Cache Strategy
      Cached (LRU) Buffers       142541.6       30736.7   171049940     100.0 %
      Discarded (MRU) Buffers         0.0           0.0           0       0.0 %

    Large I/O Usage
      Large I/Os Performed            0.1           0.0         172      56.0 %

      Large I/Os Denied due to                                                  
      Pool < Prefetch Size            0.1           0.0         136      44.3 %
  -------------------------  ------------  ------------  ----------
    Total Large I/O Requests          0.3           0.1         307            

    Large I/O Detail
     16  Kb Pool                                                               
        Pages Cached                  1.1           0.2        1376       n/a   
        Pages Used                    1.1           0.2        1376     100.0 %

    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: tempdb_cache                                                           
                                  per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Spinlock Contention               n/a           n/a         n/a       0.0 %

    Utilization                       n/a           n/a         n/a       7.8 %

    Cache Searches
      Cache Hits                  12073.7        2603.5    14488460      99.5 %
         Found in Wash                1.1           0.2        1275       0.0 %
      Cache Misses                   62.3          13.4       74721       0.5 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches          12136.0        2616.9    14563181            

    Pool Turnover
      2  Kb Pool                                                               
          LRU Buffer Grab             0.5           0.1         540      16.3 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
      16 Kb Pool                                                               
          LRU Buffer Grab             2.3           0.5        2775      83.7 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Turnover              2.8           0.6        3315            

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

    Cache Strategy
      Cached (LRU) Buffers        11990.7        2585.6    14388885     100.0 %
      Discarded (MRU) Buffers         0.0           0.0           0       0.0 %

    Large I/O Usage
      Large I/Os Performed            2.3           0.5        2775     100.0 %

      Large I/Os Denied due to                                                  
      Pool < Prefetch Size            0.1           0.0         136       4.9 %
  -------------------------  ------------  ------------  ----------
    Total Large I/O Requests          2.3           0.5        2776            

    Large I/O Detail
     16  Kb Pool                                                               
        Pages Cached                 18.5           4.0       22200       n/a   
        Pages Used                    0.0           0.0           0       0.0 %

    Dirty Read Behavior
          Page Requests               0.0           0.0           0       n/a         

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

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

Procedure Cache Management        per sec      per xact       count  % of total
---------------------------  ------------  ------------  ----------  ----------
  Procedure Requests                  2.3           0.5        2793       n/a   
  Procedure Reads from Disk           0.0           0.0          14       0.5 %
  Procedure Writes to Disk            0.1           0.0          75       2.7 %
  Procedure Removals                  0.0           0.0          25       n/a   


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

Memory Management                 per sec      per xact       count  % of total
---------------------------  ------------  ------------  ----------  ----------
  Pages Allocated                     0.2           0.0         272       n/a   
  Pages Released                      0.2           0.0         272       n/a   

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

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

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

  Avg Time per Normal Chkpt       3.19048 seconds                              

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

论坛徽章:
0
4 [报告]
发表于 2005-09-02 16:44 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

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

  Max Outstanding I/Os            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Server                            n/a           n/a           0       n/a   
    Engine 0                          n/a           n/a         112       n/a   
    Engine 1                          n/a           n/a         111       n/a   


  I/Os Delayed by
    Disk I/O Structures               n/a           n/a           0       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          32.4           7.0       38852            

  Completed Disk I/O's
    Engine 0                         13.7           3.0       16495      42.5 %
    Engine 1                         18.6           4.0       22357      57.5 %
  -------------------------  ------------  ------------  ----------            
  Total Completed I/Os               32.4           7.0       38852            


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

  Device:                                                                       
    /dev/rmaster_lv                                                            
    master                        per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.0           0.0           9       3.1 %
    Writes                            0.2           0.1         283      96.9 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.2           0.1         292       0.8 %


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

  Device:                                                                       
    /dev/rsybproc_lv                                                            
    sysprocsdev                   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:                                                                       
    /dev/rsybtmp_lv                                                            
    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:                                                                       
    /dev/rtempdb_data_lv                                                        
    tempdb_data                   per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.0           0.0          56       0.7 %
    Writes                            6.4           1.4        7681      99.3 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          6.4           1.4        7737      19.9 %


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

  Device:                                                                       
    /dev/rtempdb_data1_lv                                                      
    tempdb_data1                  per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.0           0.0          25       0.3 %
    Writes                            6.2           1.3        7477      99.7 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          6.3           1.3        7502      19.3 %


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

  Device:                                                                       
    /dev/rtempdb_log_lv                                                         
    tempdb_log                    per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.0           0.0          37       0.4 %
    Writes                            8.1           1.7        9689      99.6 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          8.1           1.7        9726      25.0 %


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

  Device:                                                                       
    /dev/rwudebit_data_lv                                                      
    wudebit_data                  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          89     100.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.1           0.0          89       0.2 %


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

  Device:                                                                       
    /dev/rwudebit_log_lv                                                        
    wudebit_log                   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         148     100.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.1           0.0         148       0.4 %


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

  Device:                                                                       
    /dev/rwumaster_lv                                                           
    wumaster                      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          33     100.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0          33       0.1 %


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

  Device:                                                                       
    /dev/rzbmis_data_lv                                                         
    zbmis_data                    per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.1           0.0         144      10.8 %
      Non-APF                         0.0           0.0          44       3.3 %
    Writes                            1.0           0.2        1145      85.9 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          1.1           0.2        1333       3.4 %


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

  Device:                                                                       
    /dev/rzbmis_data1_lv                                                        
    zbmis_data1                   per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             0.0           0.0           0       0.0 %
      Non-APF                         0.0           0.0           4      13.8 %
    Writes                            0.0           0.0          25      86.2 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          0.0           0.0          29       0.1 %


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

  Device:                                                                       
    /dev/rzbmis_data2_lv                                                        
    zbmis_data2                   per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Reads                                                                       
      APF                             5.6           1.2        6760      93.7 %
      Non-APF                         0.2           0.0         247       3.4 %
    Writes                            0.2           0.0         208       2.9 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          6.0           1.3        7215      18.6 %


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

  Device:                                                                       
    /dev/rzbmis_data3_lv                                                        
    zbmis_data3                   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:                                                                       
    /dev/rzbmis_log_lv                                                         
    zbmis_log                     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                            4.0           0.9        4748     100.0 %
  -------------------------  ------------  ------------  ----------  ----------
  Total I/Os                          4.0           0.9        4748      12.2 %


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



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

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

  Total Network I/O Requests         43.0           9.3       51625       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                         20.7           4.5       24790      55.2 %
    Engine 1                         16.8           3.6       20129      44.8 %
  -------------------------  ------------  ------------  ----------            
  Total TDS Packets Rec'd            37.4           8.1       44919            


  Total Bytes Received            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                       1623.8         350.2     1948600      55.1 %
    Engine 1                       1323.3         285.4     1588015      44.9 %
  -------------------------  ------------  ------------  ----------            
  Total Bytes Rec'd                2947.2         635.5     3536615            


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

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

  Total TDS Packets Sent          per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                         33.8           7.3       40521      56.3 %
    Engine 1                         26.2           5.7       31483      43.7 %
  -------------------------  ------------  ------------  ----------            
  Total TDS Packets Sent             60.0          12.9       72004            


  Total Bytes Sent                per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ----------
    Engine 0                       7696.5        1659.6     9235858      57.7 %
    Engine 1                       5653.0        1219.0     6783606      42.3 %
  -------------------------  ------------  ------------  ----------            
  Total Bytes Sent                13349.6        2878.6    16019464            


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

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

论坛徽章:
0
5 [报告]
发表于 2005-09-02 17:21 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

查看一下查询计划

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
6 [报告]
发表于 2005-09-02 17:23 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

将proc中的sql利用batch来做,看看速度如何?
同时只做某一事务时,速度也慢吗?
事务中除了select还有update、insert、delete吗?
另请执行以下指令,并贴出结果
sp_configure 'memory'
sp_cacheconfig
sp_configure 'user log'
sp_configure 'lock'
sp_configure 'run'
sp_configure 'disk'
sp_configure 'proc'

论坛徽章:
0
7 [报告]
发表于 2005-09-02 17:44 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

同时只做某一种种事务速度也慢,一般都包含了update、insert、delete,主要是对tempdb的操作

sp_configure 'memory'
Parameter Name                 Default     Memory Used Config Value Run Value   Unit                 Type      
--------------                 -------     ----------- ------------ ---------   ----                 ----      
additional network memory                0           0           0            0 bytes                dynamic   
allocate max shared memory               0           0           0            0 switch               dynamic   
heap memory per user                  4096           0        4096         4096 bytes                dynamic   
lock shared memory                       0           0           0            0 switch               static     
max memory                           58368     3352166     1676083      1676083 memory pages(2k)     dynamic   
memory alignment boundary             2048           0        2048         2048 bytes                static     
memory per worker process             1024           4        1024         1024 bytes                dynamic   
Memory Use                               0           0           0            0 not applicable       NULL      
Physical Memory                          0           0           0            0 not applicable       NULL      
shared memory starting address           0           0           0            0 not applicable       static     
total logical memory                 58368     3125726     1562863      1562863 memory pages(2k)     read-only  
total physical memory                    0     3125728           0      1562864 memory pages(2k)     read-only

论坛徽章:
0
8 [报告]
发表于 2005-09-02 17:47 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

sp_cacheconfig
Cache Name                     Status    Type     Config Value Run Value   
----------                     ------    ----     ------------ ---------   
default data cache             Active    Default    2048.00 Mb   2048.00 Mb
tempdb_cache                   Active    Mixed       100.00 Mb    100.00 Mb

IO Size  Wash Size Config Size  Run Size     APF Percent
-------  --------- -----------  --------     -----------
    2 Kb  61440 Kb      0.00 Mb   1024.00 Mb     10      
   16 Kb  61440 Kb   1024.00 Mb   1024.00 Mb     10      

IO Size  Wash Size Config Size  Run Size     APF Percent
-------  --------- -----------  --------     -----------
    2 Kb   4096 Kb      0.00 Mb     20.00 Mb     10      
   16 Kb  16384 Kb     80.00 Mb     80.00 Mb     10      

sp_configure 'user log'
Parameter Name                 Default     Memory Used Config Value Run Value   Unit                 Type      
--------------                 -------     ----------- ------------ ---------   ----                 ----      
user log cache size                   2048           0        2048         2048 bytes                static     
user log cache spinlock ratio           20           0          20           20 ratio                dynamic   

sp_configure 'lock'
Parameter Name                 Default     Memory Used Config Value Run Value   Unit                 Type      
--------------                 -------     ----------- ------------ ---------   ----                 ----      
deadlock checking period               500           0         500          500 milliseconds         dynamic   
deadlock pipe active                     0           0           0            0 switch               dynamic   
deadlock pipe max messages               0           0           0            0 number               dynamic   
deadlock retries                         5           0           5            5 number               dynamic   
dtm lock timeout period                300           0         300          300 seconds              dynamic   
lock address spinlock ratio            100           0         100          100 ratio                static     
lock hashtable size                   2048          76        2048         2048 bytes                static     
Lock Manager                             0           0           0            0 not applicable       NULL      
lock scheme                       allpages           0    datarows     datarows name                 dynamic   
lock shared memory                       0           0           0            0 switch               static     
lock spinlock ratio                     85           0          85           85 ratio                static     
lock table spinlock ratio               20           0          20           20 ratio                static     
lock wait period                2147483647           0  2147483647   2147483647 seconds              dynamic   
number of locks                       5000       23716      100000       100000 number               dynamic   
object lockwait timing                   0           0           0            0 switch               dynamic   
open index hash spinlock ratio         100           0         100          100 ratio                dynamic   
open index spinlock ratio              100           0         100          100 ratio                dynamic   
open object spinlock ratio             100           0         100          100 ratio                dynamic   
page lock promotion HWM                200           0         200          200 number               dynamic   
page lock promotion LWM                200           0         200          200 number               dynamic   
page lock promotion PCT                100           0         100          100 percent              dynamic   
partition spinlock ratio                10           0          10           10 ratio                dynamic   
print deadlock information               0           0           0            0 switch               dynamic   
read committed with lock                 0           0           0            0 switch               dynamic   
row lock promotion HWM                 200           0         200          200 number               dynamic   
row lock promotion LWM                 200           0         200          200 number               dynamic   
row lock promotion PCT                 100           0         100          100 percent              dynamic   
sql server clock tick length        100000           0      100000       100000 microseconds         static     
user log cache spinlock ratio           20           0          20           20 ratio                dynamic

论坛徽章:
0
9 [报告]
发表于 2005-09-02 17:48 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

sp_configure 'run'
Parameter Name                 Default     Memory Used Config Value Run Value   Unit                 Type      
--------------                 -------     ----------- ------------ ---------   ----                 ----      
runnable process search count         2000           0        2000         2000 number               dynamic   


sp_configure 'disk'
Parameter Name                 Default     Memory Used Config Value Run Value   Unit                 Type      
--------------                 -------     ----------- ------------ ---------   ----                 ----      
disable disk mirroring                   1           0           1            1 switch               static     
Disk I/O                                 0           0           0            0 not applicable       NULL      
disk i/o structures                    256          58         256          256 number               dynamic   


sp_configure 'proc'
Parameter Name                 Default     Memory Used Config Value Run Value   Unit                 Type      
--------------                 -------     ----------- ------------ ---------   ----                 ----      
allow procedure grouping                 1           0           1            1 switch               dynamic   
enable surrogate processing              1           0           1            1 switch               dynamic   
Extended Stored Procedure                0           0           0            0 not applicable       NULL      
i/o polling process count               10           0          10           10 number               dynamic   
memory per worker process             1024           4        1024         1024 bytes                dynamic   
number of worker processes               0           0           0            0 number               dynamic   
procedure cache size                  3271      465092      214906       214906 memory pages(2k)     dynamic   
process wait events                      0           0           0            0 switch               dynamic   
Processors                               0           0           0            0 not applicable       NULL      
runnable process search count         2000           0        2000         2000 number               dynamic   
size of process object heap           3000           0        3000         3000 memory pages(2k)     dynamic

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
10 [报告]
发表于 2005-09-02 18:08 |只看该作者

求救:我的sybase实在太慢了,请高手帮忙看看!

不是同时只做某一种事务,而是同时只做一个事务,也就是没有并发的时候也慢吗?
检查OS级别是否有swap发生;tempdb使用情况如何?会建立比较大的临时表吗;监控一下I/O速度是否快,另最好贴出系统级别CPU使用情况。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP