- 论坛徽章:
- 0
|
» 我的Sybase运行速度慢!做一个3万条纪录的计算、统计操作都需要1个半小时, 原因在那里?小弟才疏学浅,向各位高手求救!感激不尽!
附上sp_sysmon "00:50:00" 的报告
===============================================================================
Sybase Adaptive Server Enterprise System Performance Report
===============================================================================
Server Version: Adaptive Server Enterprise/11.9.2.5/1245/P/SWR 9817 ESD
Server Name: Server is Unnamed
Run Date: Jul 05, 2006
Statistics Cleared at: 11:38:18
Statistics Sampled at: 12:28:18
Sample Interval: 00:50:00
===============================================================================
Kernel Utilization
------------------
Engine Busy Utilization
Engine 0 97.9 %
CPU Yields by Engine per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
Engine 0 0.5 0.0 1617 100.0 %
Network Checks
Non-Blocking 27864.0 12.6 83592134 100.0 %
Blocking 1.1 0.0 3234 0.0 %
------------------------- ------------ ------------ ----------
Total Network I/O Checks 27865.1 12.6 83595368
Avg Net I/Os per Check n/a n/a 0.01575 n/a
Disk I/O Checks
Total Disk I/O Checks 14975.4 6.8 44926266 n/a
Checks Returning I/O 13783.3 6.2 41349809 92.0 %
Avg Disk I/Os Returned n/a n/a 0.06469 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 5 n/a
Task Context Switches by Engine
Engine 0 2132.3 1.0 6396877 100.0 %
Task Context Switches Due To:
Voluntary Yields 804.3 0.4 2412945 37.7 %
Cache Search Misses 1.5 0.0 4583 0.1 %
System Disk Writes 1.3 0.0 3768 0.1 %
I/O Pacing 88.1 0.0 264335 4.1 %
Logical Lock Contention 0.3 0.0 819 0.0 %
Address Lock Contention 0.0 0.0 0 0.0 %
Log Semaphore Contention 0.1 0.0 275 0.0 %
Group Commit Sleeps 0.1 0.0 348 0.0 %
Last Log Page Writes 796.0 0.4 2387971 37.3 %
Modify Conflicts 0.1 0.0 333 0.0 %
I/O Device Contention 0.0 0.0 0 0.0 %
Network Packet Received 5.8 0.0 17327 0.3 %
Network Packet Sent 433.2 0.2 1299552 20.3 %
SYSINDEXES Lookup 0.0 0.0 45 0.0 %
Other Causes 1.5 0.0 4576 0.1 %
===============================================================================
Application Management
----------------------
Application Statistics Summary (All Applications)
-------------------------------------------------
Priority Changes per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
To High Priority 0.4 0.0 1094 1.8 %
To Medium Priority 10.0 0.0 30092 50.0 %
To Low Priority 9.7 0.0 28994 48.2 %
------------------------- ------------ ------------ ----------
Total Priority Changes 20.1 0.0 60180
Allotted Slices Exhausted per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
High Priority 0.5 0.0 1442 17.3 %
Medium Priority 2.3 0.0 6886 82.7 %
Low Priority 0.0 0.0 0 0.0 %
------------------------- ------------ ------------ ----------
Total Slices Exhausted 2.8 0.0 8328
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 206.3 0.1 618894 98.4 %
Dirty 3.3 0.0 9995 1.6 %
------------ ------------ ----------
Total Washes 209.6 0.1 628889
Garbage Collections 9.2 0.0 27741 n/a
Pages Processed in GC 0.0 0.0 0 n/a
Statistics Updates 9.2 0.0 27741 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 2216.2 n/a 6648495 n/a
Transaction Detail per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
Inserts
APL Heap Table 36.1 0.0 108311 41.1 %
APL Clustered Table 50.2 0.0 150582 57.1 %
Data Only Lock Table 1.6 0.0 4836 1.8 %
------------------------- ------------ ------------ ---------- ----------
Total Rows Inserted 87.9 0.0 263729 76.8 %
Updates
APL Deferred 0.6 0.0 1736 36.1 %
APL Direct In-place 0.5 0.0 1437 29.9 %
APL Direct Cheap 0.3 0.0 1016 21.1 %
APL Direct Expensive 0.0 0.0 0 0.0 %
DOL Deferred 0.2 0.0 624 13.0 %
DOL Direct 0.0 0.0 0 0.0 %
------------------------- ------------ ------------ ---------- ----------
Total Rows Updated 1.6 0.0 4813 1.4 %
Data Only Locked Updates
DOL Replace 0.2 0.0 624 100.0 %
DOL Shrink 0.0 0.0 0 0.0 %
DOL Cheap Expand 0.0 0.0 0 0.0 %
DOL Expensive Expand 0.0 0.0 0 0.0 %
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 0.2 0.0 624 0.2 %
Deletes
APL Deferred 21.1 0.0 63356 84.6 %
APL Direct 2.2 0.0 6708 9.0 %
DOL 1.6 0.0 4836 6.5 %
------------------------- ------------ ------------ ---------- ----------
Total Rows Deleted 25.0 0.0 74900 21.8 %
========================= ============ ============ ==========
Total Rows Affected 114.5 0.1 343442
===============================================================================
Transaction Management
----------------------
ULC Flushes to Xact Log per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
by Full ULC 1.7 0.0 5028 0.0 %
by End Transaction 794.9 0.4 2384656 20.9 %
by Change of Database 0.0 0.0 100 0.0 %
by System Log Record 1575.9 0.7 4727582 41.4 %
by Other 1432.1 0.6 4296430 37.6 %
------------------------- ------------ ------------ ----------
Total ULC Flushes 3804.6 1.7 11413796
ULC Log Records 4074.7 1.8 12224012 n/a
Max ULC Size During Sample n/a n/a 2048 n/a
ULC Semaphore Requests
Granted 15429.7 7.0 46288957 100.0 %
Waited 0.0 0.0 1 0.0 %
------------------------- ------------ ------------ ----------
Total ULC Semaphore Req 15429.7 7.0 46288958
Log Semaphore Requests
Granted 2379.7 1.1 7138984 100.0 %
Waited 0.1 0.0 275 0.0 %
------------------------- ------------ ------------ ----------
Total Log Semaphore Req 2379.8 1.1 7139259
Transaction Log Writes 884.2 0.4 2652630 n/a
Transaction Log Alloc 175.7 0.1 527061 n/a
Avg # Writes per Log Page n/a n/a 5.03287 n/a
===============================================================================
Index Management
----------------
Nonclustered Maintenance per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
Ins/Upd Requiring Maint 3.4 0.0 10214 n/a
# of NC Ndx Maint 3.4 0.0 10214 n/a
Avg NC Ndx Maint / Op n/a n/a 1.00000 n/a
Deletes Requiring Maint 2.0 0.0 6084 n/a
# of NC Ndx Maint 2.0 0.0 6084 n/a
Avg NC Ndx Maint / Op n/a n/a 1.00000 n/a
RID Upd from Clust Split 0.1 0.0 271 n/a
# of NC Ndx Maint 1.3 0.0 3794 n/a
Avg NC Ndx Maint / Op n/a n/a 14.00000 n/a
Upd/Del DOL Req Maint 1.8 0.0 5460 n/a
# of DOL Ndx Maint 1.8 0.0 5460 n/a
Avg DOL Ndx Maint / Op n/a n/a 1.00000 n/a
Page Splits 0.0 0.0 77 n/a
Retries 0.0 0.0 0 0.0 %
Deadlocks 0.0 0.0 0 0.0 %
Empty Page Flushes 0.0 0.0 0 0.0 %
Add Index Level 0.0 0.0 0 0.0 %
Page Shrinks 0.0 0.0 0 n/a
Index Scans per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
Ascending Scans 9062.7 4.1 27188152 91.5 %
DOL Ascending Scans 49.0 0.0 147102 0.5 %
Descending Scans 791.8 0.4 2375265 8.0 %
DOL Descending Scans 0.0 0.0 0 0.0 %
------------ ------------ ----------
Total Scans 9903.5 4.5 29710519
===============================================================================
Metadata Cache Management
-------------------------
Metadata Cache Summary per sec per xact count % of total
------------------------ ------------ ------------ ---------- ----------
Open Object Usage
Active 0.2 0.0 606 n/a
Max Ever Used Since Boot 0.2 0.0 612 n/a
Free 0.1 0.0 394 n/a
Reuse Requests
Succeeded 0.0 0.0 0 n/a
Failed 0.0 0.0 0 n/a
Open Index Usage
Active 0.2 0.0 509 n/a
Max Ever Used Since Boot 0.2 0.0 515 n/a
Free 0.2 0.0 491 n/a
Reuse Requests
Succeeded 0.0 0.0 0 n/a
Failed 0.0 0.0 0 n/a
Open Database Usage
Active 0.0 0.0 6 n/a
Max Ever Used Since Boot 0.0 0.0 6 n/a
Free 0.0 0.0 6 n/a
Reuse Requests
Succeeded 0.0 0.0 0 n/a
Failed 0.0 0.0 0 n/a
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 %
[ 本帖最后由 northstar 于 2006-7-5 16:16 编辑 ] |
|