Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sunsanvin
Master Smack Fu Yak Hacker
1274 Posts |
Posted - 2007-11-15 : 03:52:32
|
| Dear Experts,just now i've read a great article from sql server performance.comand understand several key factors related to performance.still i have one doubt that what will be the best ratio between extents scanned and extent switches.here i'm pasting some of my table result. please suggest me how is the performance of the tabletable 1- Pages Scanned................................: 85618- Extents Scanned..............................: 11283- Extent Switches..............................: 85405- Avg. Pages per Extent........................: 7.6- Scan Density [Best Count:Actual Count].......: 12.53% [10703:85406]- Logical Scan Fragmentation ..................: 49.93%- Extent Scan Fragmentation ...................: 46.31%- Avg. Bytes Free per Page.....................: 2707.1- Avg. Page Density (full).....................: 66.55%table2- Pages Scanned................................: 60648- Extents Scanned..............................: 7650- Extent Switches..............................: 60639- Avg. Pages per Extent........................: 7.9- Scan Density [Best Count:Actual Count].......: 12.50% [7581:60640]- Logical Scan Fragmentation ..................: 50.93%- Extent Scan Fragmentation ...................: 64.01%- Avg. Bytes Free per Page.....................: 2672.5- Avg. Page Density (full).....................: 66.98%thankyou very muchVinodEven you learn 1%, Learn it with 100% confidence. |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2007-11-15 : 04:25:01
|
am assuming you've already read up in BOL (for dbcc showcontig)...?quote: Statistic Description Pages Scanned Number of pages in the table or index. Extents Scanned Number of extents in the table or index. Extent Switches Number of times the DBCC statement moved from one extent to another while the statement traversed the pages of the table or index. Avg. Pages per Extent Number of pages per extent in the page chain. Scan Density [Best Count: Actual Count] Is a percentage. It is the ratio Best Count to Actual Count. This value is 100 if everything is contiguous; if this value is less than 100, some fragmentation exists.Best Count is the ideal number of extent changes if everything is contiguously linked. Actual Count is the actual number of extent changes. Logical Scan Fragmentation Percentage of out-of-order pages returned from scanning the leaf pages of an index. This number is not relevant to heaps. An out-of-order page is one for which the next page indicated in an IAM is a page different from the page pointed to by the next page pointer in the leaf page. Extent Scan Fragmentation Percentage of out-of-order extents in scanning the leaf pages of an index. This number is not relevant to heaps. An out-of-order extent is one for which the extent that contains the current page for an index is not physically the next extent after the extent that contains the previous page for an index. Note: This number is meaningless when the index spans multiple files. Avg. Bytes Free per Page Average number of free bytes on the pages scanned. The larger the number, the less full the pages are. Lower numbers are better if the index will not have many random inserts. This number is also affected by row size; a large row size can cause a larger number. Avg. Page density (full) Average page density, as a percentage. This value takes into account row size. Therefore, the value is a more accurate indication of how full your pages are. The larger the percentage, the better.
extents scanned and extents switches - basically the closer those numbers are together, the better. The numbers you've posted above seem pretty poorEm |
 |
|
|
sunsanvin
Master Smack Fu Yak Hacker
1274 Posts |
Posted - 2007-11-15 : 05:31:53
|
| where will be the mistake?how can i adjust the fragmentation...please suggest meVinodEven you learn 1%, Learn it with 100% confidence. |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-11-15 : 22:24:54
|
| Rebuild clustered index on the table. |
 |
|
|
|
|
|