Bonjour,

J'ai un pb de performances sur l'alimentation d'un datawarehouse (que des grosses requetes select, updtae,insert en milions de lignes)
J'ai lancé un sp_sysmon "00:01:00" mais je ne suis pas assez qualifié pour l'interprété. ESt ce que vous pourriez me dire les problèmes à résoudre asap?

merci

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
 
Kernel Utilization
------------------
 
  Engine Busy Utilization 
    Engine 0                        0.0 %                                      
    Engine 1                      100.0 %                                      
    Engine 2                        0.0 %                                      
    Engine 3                        0.3 %                                      
  -----------             ---------------          ----------------
  Summary                 Total   100.3 %          Average   25.1 %           
 
  CPU Yields by Engine            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Engine 0                         53.5         169.0        3211      30.5 %
    Engine 1                          0.0           0.0           0       0.0 %
    Engine 2                         53.4         168.6        3204      30.4 %
    Engine 3                         68.6         216.6        4116      39.1 %
  -------------------------  ------------  ------------  ----------
  Total CPU Yields                  175.5         554.3       10531             
 
  Network Checks
    Non-Blocking                   1342.7        4240.2       80563      88.5 %
    Blocking                        175.3         553.6       10518      11.5 %
  -------------------------  ------------  ------------  ----------
  Total Network I/O Checks         1518.0        4793.7       91081             
  Avg Net I/Os per Check              n/a           n/a     0.00072       n/a   
 
  Disk I/O Checks
    Total Disk I/O Checks          1586.5        5009.9       95189       n/a   
    Checks Returning I/O              0.0           0.0           0       0.0 %
 
 
=================
 
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   
 
 Tuning Recommendations for Worker Processes                                    
 -------------------------------------------                                    
  - Consider decreasing the 'number of worker processes'
    configuration parameter.
 
 
=================
 
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.1           1       n/a   
 
  Task Context Switches by Engine
    Engine 0                          0.9           2.9          56      25.9 %
    Engine 1                          1.7           5.3         100      46.3 %
    Engine 2                          0.4           1.3          24      11.1 %
    Engine 3                          0.6           1.9          36      16.7 %
  -------------------------  ------------  ------------  ----------
    Total Task Switches:              3.6          11.4         216             
 
  Task Context Switches Due To:
    Voluntary Yields                  1.4           4.5          85      39.4 %
    Cache Search Misses               0.0           0.0           0       0.0 %
    System Disk Writes                0.0           0.0           0       0.0 %
    I/O Pacing                        0.0           0.0           0       0.0 %
    Logical Lock Contention           0.0           0.0           0       0.0 %
    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           0       0.0 %
    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           0       0.0 %
    Modify Conflicts                  0.0           0.0           0       0.0 %
    I/O Device Contention             0.0           0.0           0       0.0 %
    Network Packet Received           0.5           1.5          29      13.4 %
    Network Packet Sent               0.6           1.9          37      17.1 %
    Other Causes                      1.1           3.4          65      30.1 %
 
 
=================
 
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                             58.7         185.3        3520     100.0 % 
  Dirty                              0.0           0.0           0       0.0 % 
                             ------------  ------------  ----------             
Total Washes                        58.7         185.3        3520              
 
Garbage Collections                  0.0           0.0           0       n/a    
Pages Processed in GC                0.0           0.0           0       n/a    
 
Statistics Updates                   0.1           0.2           4       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.2           0.5          10       n/a    
 Maximum SQL Text Requested          n/a           n/a         987       n/a    
  (since beginning of sample)                                                   
 
 
 Tuning Recommendations for Monitor Access to Executing SQL                     
 ----------------------------------------------------------                     
 - Consider increasing the 'max SQL text monitored' parameter 
   to at least 498 (i.e., half way from its current value 
   to Maximum SQL Text Requested).
 
=================
 
Transaction Profile
-------------------
 
  Transaction Summary             per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Committed Xacts                   0.3           n/a          19     n/a     
 
  Transaction Detail              per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Inserts
      APL Heap Table                  4.6          14.4         274      84.8 %
      APL Clustered Table             0.8           2.6          49      15.2 %
      Data Only Lock Table            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
    Total Rows Inserted               5.4          17.0         323       0.0 %
 
    Updates
      APL Deferred                    0.0           0.0           0       0.0 %
      APL Direct In-place         70935.3      224006.3     4256119     100.0 %
      APL Direct Cheap                0.0           0.0           0       0.0 %
      APL Direct Expensive            0.0           0.0           0       0.0 %
      DOL Deferred                    0.0           0.0           0       0.0 %
      DOL Direct                      0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
    Total Rows Updated            70935.3      224006.3     4256119     100.0 %
 
    Data Only Locked Updates
      Total Rows Updated              0.0           0.0           0       n/a   
  -------------------------  ------------  ------------  ----------  ---------- 
    Total DOL Rows Updated            0.0           0.0           0       0.0 %
 
    Deletes
      Total Rows Deleted              0.0           0.0           0       n/a   
  =========================  ============  ============  ==========
    Total Rows Affected           70940.7      224023.3     4256442             
 
=================
 
Index Management
----------------
 
  Nonclustered Maintenance        per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Ins/Upd Requiring Maint       70935.3      224006.3     4256119       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       70935.3      224006.2     4256118       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             0.0           0.0           0       n/a   
      # of DOL Ndx Maint              0.0           0.0           0       n/a   
 
  Page Splits                         0.0           0.0           0       n/a   
 
  Page Shrinks                        0.0           0.0           0       n/a   
 
  Index Scans                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Ascending Scans                  17.1          53.9        1024      97.9 %
    DOL Ascending Scans               0.4           1.2          22       2.1 %
    Descending Scans                  0.0           0.0           0       0.0 %
    DOL Descending Scans              0.0           0.0           0       0.0 %
                             ------------  ------------  ----------             
    Total Scans                      17.4          55.1        1046             
 
=================
 
Metadata Cache Management
-------------------------
 
  Metadata Cache Summary         per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
 
  Open Object Usage                                                             
    Active                            n/a           n/a        1762       n/a   
    Max Ever Used Since Boot          n/a           n/a        1769       n/a   
    Free                              n/a           n/a        9238       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        3152       n/a   
    Max Ever Used Since Boot          n/a           n/a        3166       n/a   
    Free                              n/a           n/a         348       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          20       n/a   
    Max Ever Used Since Boot          n/a           n/a          20       n/a   
    Free                              n/a           n/a           2       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                45.1         142.4        2706       n/a   
  Avg Lock Contention                 0.0           0.0           0       0.0 %
  Deadlock Percentage                 0.0           0.0           0       0.0 %
 
  Lock Detail                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
 
  Table Lock Hashtable
    Lookups                           1.2           3.9          74       n/a   
    Avg Chain Length                  n/a           n/a     0.00000       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %
 
  Exclusive Table
    Granted                           0.1           0.2           4     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total EX-Table Requests             0.1           0.2           4       0.1 %
 
  Shared Table
    Total SH-Table Requests           0.0           0.0           0       n/a   
 
  Exclusive Intent
    Granted                           0.1           0.2           4     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total EX-Intent Requests            0.1           0.2           4       0.1 %
 
  Shared Intent
    Granted                           1.1           3.5          66     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total SH-Intent Requests            1.1           3.5          66       2.4 %
 
  Page & Row Lock HashTable
    Lookups                          18.6          58.8        1118       n/a   
    Avg Chain Length                  n/a           n/a     0.00000       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %
 
  Exclusive Page
    Granted                           0.2           0.6          12     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total EX-Page Requests              0.2           0.6          12       0.4 %
 
  Update Page
    Granted                           0.2           0.6          12     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total UP-Page Requests              0.2           0.6          12       0.4 %
 
  Shared Page
    Granted                          16.8          52.9        1006     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total SH-Page Requests             16.8          52.9        1006      37.2 %
 
 
  Exclusive Row
    Total EX-Row Requests             0.0           0.0           0       n/a   
 
  Update Row
    Total UP-Row Requests             0.0           0.0           0       n/a   
 
  Shared Row
    Granted                           0.2           0.7          14     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total SH-Row Requests               0.2           0.7          14       0.5 %
 
 
  Next-Key
    Total Next-Key Requests           0.0           0.0           0       n/a   
 
  Address Lock Hashtable
    Lookups                          26.5          83.6        1588       n/a   
    Avg Chain Length                  n/a           n/a     0.00000       n/a   
    Spinlock Contention               n/a           n/a         n/a       0.0 %
 
  Exclusive Address
    Granted                           0.3           0.8          15     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total EX-Address Requests           0.3           0.8          15       0.6 %
 
  Shared Address
    Granted                          26.2          82.8        1573     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total SH-Address Requests          26.2          82.8        1573      58.1 %
 
 
  Last Page Locks on Heaps
    Granted                           4.6          14.4         274     100.0 %
    Waited                            0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------  ---------- 
  Total Last Pg Locks                 4.6          14.4         274     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           0       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   
 
 
=================
 
Data Cache Management
---------------------
 
  Cache Statistics Summary (All Caches)
  -------------------------------------
                                  per sec      per xact       count  % of total
                             ------------  ------------  ----------  ----------
 
    Cache Search Summary
      Total Cache Hits            19089.2       60281.7     1145352     100.0 %
      Total Cache Misses              0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches          19089.2       60281.7     1145352             
 
    Cache Turnover
      Buffers Grabbed                 0.0           0.1           1       n/a   
      Buffers Grabbed Dirty           0.0           0.0           0       0.0 %
 
    Cache Strategy Summary
      Cached (LRU) Buffers        19063.2       60199.7     1143794     100.0 %
      Discarded (MRU) Buffers         0.0           0.1           2       0.0 %
 
    Large I/O Usage
                                      0.0           0.0           0       n/a   
 
    Large I/O Effectiveness
      Pages by Lrg I/O Cached         0.0           0.0           0       n/a   
 
    Asynchronous Prefetch Activity
                                      0.0           0.0           0       n/a   
 
    Other Asynchronous Prefetch Statistics
      APFs Used                       0.0           0.0           0       n/a   
      APF Waits for I/O               0.0           0.0           0       n/a   
      APF Discards                    0.0           0.0           0       n/a   
 
    Dirty Read Behavior
      Page Requests                   0.0           0.1           2       n/a   
 
------------------------------------------------------------------------------- 
  Cache: default data 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     100.0 %
 
    Cache Searches
      Cache Hits                  19089.2       60281.7     1145352     100.0 %
         Found in Wash               28.0          88.4        1680       0.1 %
      Cache Misses                    0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Searches          19089.2       60281.7     1145352             
 
    Pool Turnover
      2  Kb Pool                                                                
          LRU Buffer Grab             0.0           0.1           1     100.0 %
            Grabbed Dirty             0.0           0.0           0       0.0 %
  -------------------------  ------------  ------------  ----------
    Total Cache Turnover              0.0           0.1           1             
 
    Buffer Wash Behavior
      Statistics Not Available - No Buffers Entered Wash Section Yet
 
    Cache Strategy
      Cached (LRU) Buffers        19063.2       60199.7     1143794     100.0 %
      Discarded (MRU) Buffers         0.0           0.1           2       0.0 %
 
    Large I/O Usage
      Total Large I/O Requests        0.0           0.0           0       n/a   
 
    Large I/O Detail
     4   Kb Pool                                                                
        Pages Cached                  0.0           0.0           0       n/a   
        Pages Used                    0.0           0.0           0       n/a   
     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.1           2       n/a          
 
    Tuning Recommendations for Data cache : default data cache                  
    -------------------------------------                                       
    - Consider using 'relaxed LRU replacement policy'
      for this cache.
 
    - Consider removing the 4k pool for this cache.                             
 
    - Consider removing the 16k pool for this cache.                            
 
=================
 
Memory Management                 per sec      per xact       count  % of total
---------------------------  ------------  ------------  ----------  ---------- 
  Pages Allocated                     0.3           0.8          15       n/a   
  Pages Released                      0.3           0.8          15       n/a   
 
=================
 
Recovery Management
-------------------
 
  Checkpoints                     per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
  Total Checkpoints                   0.0           0.0           0       n/a   
 
 
=================
 
Network I/O Management
----------------------
 
  Total Network I/O Requests          0.8           2.5          47       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                          0.0           0.1           2       6.9 %
    Engine 1                          0.3           0.8          16      55.2 %
    Engine 2                          0.0           0.0           0       0.0 %
    Engine 3                          0.2           0.6          11      37.9 %
  -------------------------  ------------  ------------  ----------             
  Total TDS Packets Rec'd             0.5           1.5          29             
 
 
  Total Bytes Received            per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Engine 0                          0.7           2.3          44       1.2 %
    Engine 1                         10.5          33.1         628      17.2 %
    Engine 2                          0.0           0.0           0       0.0 %
    Engine 3                         49.7         156.9        2982      81.6 %
  -------------------------  ------------  ------------  ----------             
  Total Bytes Rec'd                  60.9         192.3        3654             
 
 
   Avg Bytes Rec'd per Packet          n/a           n/a         126       n/a  
 
  ----------------------------------------------------------------------------- 
 
  Total TDS Packets Sent          per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Engine 0                          0.0           0.1           2       5.4 %
    Engine 1                          0.3           0.8          16      43.2 %
    Engine 2                          0.0           0.0           0       0.0 %
    Engine 3                          0.3           1.0          19      51.4 %
  -------------------------  ------------  ------------  ----------             
  Total TDS Packets Sent              0.6           1.9          37             
 
 
  Total Bytes Sent                per sec      per xact       count  % of total
  -------------------------  ------------  ------------  ----------  ---------- 
    Engine 0                          1.3           4.1          78       1.0 %
    Engine 1                          9.2          29.1         552       7.3 %
    Engine 2                          0.0           0.0           0       0.0 %
    Engine 3                        116.4         367.5        6983      91.7 %
  -------------------------  ------------  ------------  ----------             
  Total Bytes Sent                  126.9         400.7        7613             
 
 
  Avg Bytes Sent per Packet           n/a           n/a         205       n/a