Showing posts with label awe. Show all posts
Showing posts with label awe. Show all posts

Wednesday, March 21, 2012

Performance comparison using Compability 8.0 on SQL 2005 vs. SQL 2000

In production we are running SQL Server 2000, SP4, on Windows 2003, using 4
processors with 6 GB AWE Memory.
I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
all indexes.
A stored procedure with a complex query is timing out.
SP_Who shows that the procedure is not getting blocked, but if anything, is
doing the blocking.
We restore the production database to our DEV environment which is running
SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
The database from production, when restored, is left at Compatability 8.0.
When this same stored procedure is run in DEV it executes in under 2 seconds,
with an entirely different execution plan than production.
Is it possible, that the procedure, when run in DEV is utilizing some
components of SQL 2005 to build a better plan, even though the Compatibility
is left at 8.0?
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums.aspx/sql-server/200611/1
"cbrichards via droptable.com" <u3288@.uwe> wrote in message
news:69a40194e9cbc@.uwe...
> In production we are running SQL Server 2000, SP4, on Windows 2003, using
> 4
> processors with 6 GB AWE Memory.
> I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
> all indexes.
> A stored procedure with a complex query is timing out.
> SP_Who shows that the procedure is not getting blocked, but if anything,
> is
> doing the blocking.
> We restore the production database to our DEV environment which is running
> SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
> The database from production, when restored, is left at Compatability 8.0.
> When this same stored procedure is run in DEV it executes in under 2
> seconds,
> with an entirely different execution plan than production.
> Is it possible, that the procedure, when run in DEV is utilizing some
> components of SQL 2005 to build a better plan, even though the
> Compatibility
> is left at 8.0?
>
Yes, in fact, it's certain. Even in 8.0 Compatibility mode you get get the
(enhanced) SQL Server 2005 query optimizer. In 8.0 Compatibility mode
you're still running SQL Server 2005.
David
|||Did you update the stats after the restore on the dev machine? If not the
optimizer may not have the correct info even if it is a better plan.
Andrew J. Kelly SQL MVP
"cbrichards via droptable.com" <u3288@.uwe> wrote in message
news:69a40194e9cbc@.uwe...
> In production we are running SQL Server 2000, SP4, on Windows 2003, using
> 4
> processors with 6 GB AWE Memory.
> I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
> all indexes.
> A stored procedure with a complex query is timing out.
> SP_Who shows that the procedure is not getting blocked, but if anything,
> is
> doing the blocking.
> We restore the production database to our DEV environment which is running
> SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
> The database from production, when restored, is left at Compatability 8.0.
> When this same stored procedure is run in DEV it executes in under 2
> seconds,
> with an entirely different execution plan than production.
> Is it possible, that the procedure, when run in DEV is utilizing some
> components of SQL 2005 to build a better plan, even though the
> Compatibility
> is left at 8.0?
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forums.aspx/sql-server/200611/1
>
|||I did not run update stats on the DEV machine, since it was a restore of a
database that just had updated stats run on it, and additionally, the
procedure ran like a champ on the DEV machine.
Andrew J. Kelly wrote:[vbcol=seagreen]
>Did you update the stats after the restore on the dev machine? If not the
>optimizer may not have the correct info even if it is a better plan.
>[quoted text clipped - 21 lines]
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums.aspx/sql-server/200611/1
|||You should as a matter of practice update the stats after a restore
regardless of when they were ran last.
Andrew J. Kelly SQL MVP
"cbrichards via droptable.com" <u3288@.uwe> wrote in message
news:69acf56bf722a@.uwe...
>I did not run update stats on the DEV machine, since it was a restore of a
> database that just had updated stats run on it, and additionally, the
> procedure ran like a champ on the DEV machine.
> Andrew J. Kelly wrote:
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forums.aspx/sql-server/200611/1
>

Performance comparison using Compability 8.0 on SQL 2005 vs. SQL 2000

In production we are running SQL Server 2000, SP4, on Windows 2003, using 4
processors with 6 GB AWE Memory.
I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
all indexes.
A stored procedure with a complex query is timing out.
SP_Who shows that the procedure is not getting blocked, but if anything, is
doing the blocking.
We restore the production database to our DEV environment which is running
SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
The database from production, when restored, is left at Compatability 8.0.
When this same stored procedure is run in DEV it executes in under 2 seconds
,
with an entirely different execution plan than production.
Is it possible, that the procedure, when run in DEV is utilizing some
components of SQL 2005 to build a better plan, even though the Compatibility
is left at 8.0?
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200611/1"cbrichards via droptable.com" <u3288@.uwe> wrote in message
news:69a40194e9cbc@.uwe...
> In production we are running SQL Server 2000, SP4, on Windows 2003, using
> 4
> processors with 6 GB AWE Memory.
> I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
> all indexes.
> A stored procedure with a complex query is timing out.
> SP_Who shows that the procedure is not getting blocked, but if anything,
> is
> doing the blocking.
> We restore the production database to our DEV environment which is running
> SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
> The database from production, when restored, is left at Compatability 8.0.
> When this same stored procedure is run in DEV it executes in under 2
> seconds,
> with an entirely different execution plan than production.
> Is it possible, that the procedure, when run in DEV is utilizing some
> components of SQL 2005 to build a better plan, even though the
> Compatibility
> is left at 8.0?
>
Yes, in fact, it's certain. Even in 8.0 Compatibility mode you get get the
(enhanced) SQL Server 2005 query optimizer. In 8.0 Compatibility mode
you're still running SQL Server 2005.
David|||Did you update the stats after the restore on the dev machine? If not the
optimizer may not have the correct info even if it is a better plan.
Andrew J. Kelly SQL MVP
"cbrichards via droptable.com" <u3288@.uwe> wrote in message
news:69a40194e9cbc@.uwe...
> In production we are running SQL Server 2000, SP4, on Windows 2003, using
> 4
> processors with 6 GB AWE Memory.
> I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
> all indexes.
> A stored procedure with a complex query is timing out.
> SP_Who shows that the procedure is not getting blocked, but if anything,
> is
> doing the blocking.
> We restore the production database to our DEV environment which is running
> SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
> The database from production, when restored, is left at Compatability 8.0.
> When this same stored procedure is run in DEV it executes in under 2
> seconds,
> with an entirely different execution plan than production.
> Is it possible, that the procedure, when run in DEV is utilizing some
> components of SQL 2005 to build a better plan, even though the
> Compatibility
> is left at 8.0?
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forum...server/200611/1
>|||I did not run update stats on the DEV machine, since it was a restore of a
database that just had updated stats run on it, and additionally, the
procedure ran like a champ on the DEV machine.
Andrew J. Kelly wrote:[vbcol=seagreen]
>Did you update the stats after the restore on the dev machine? If not the
>optimizer may not have the correct info even if it is a better plan.
>
>[quoted text clipped - 21 lines]
Message posted via droptable.com
http://www.droptable.com/Uwe/Forum...server/200611/1|||You should as a matter of practice update the stats after a restore
regardless of when they were ran last.
Andrew J. Kelly SQL MVP
"cbrichards via droptable.com" <u3288@.uwe> wrote in message
news:69acf56bf722a@.uwe...
>I did not run update stats on the DEV machine, since it was a restore of a
> database that just had updated stats run on it, and additionally, the
> procedure ran like a champ on the DEV machine.
> Andrew J. Kelly wrote:
> --
> Message posted via droptable.com
> http://www.droptable.com/Uwe/Forum...server/200611/1
>

Performance comparison using Compability 8.0 on SQL 2005 vs. SQL 2000

In production we are running SQL Server 2000, SP4, on Windows 2003, using 4
processors with 6 GB AWE Memory.
I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
all indexes.
A stored procedure with a complex query is timing out.
SP_Who shows that the procedure is not getting blocked, but if anything, is
doing the blocking.
We restore the production database to our DEV environment which is running
SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
The database from production, when restored, is left at Compatability 8.0.
When this same stored procedure is run in DEV it executes in under 2 seconds,
with an entirely different execution plan than production.
Is it possible, that the procedure, when run in DEV is utilizing some
components of SQL 2005 to build a better plan, even though the Compatibility
is left at 8.0?
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200611/1"cbrichards via SQLMonster.com" <u3288@.uwe> wrote in message
news:69a40194e9cbc@.uwe...
> In production we are running SQL Server 2000, SP4, on Windows 2003, using
> 4
> processors with 6 GB AWE Memory.
> I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
> all indexes.
> A stored procedure with a complex query is timing out.
> SP_Who shows that the procedure is not getting blocked, but if anything,
> is
> doing the blocking.
> We restore the production database to our DEV environment which is running
> SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
> The database from production, when restored, is left at Compatability 8.0.
> When this same stored procedure is run in DEV it executes in under 2
> seconds,
> with an entirely different execution plan than production.
> Is it possible, that the procedure, when run in DEV is utilizing some
> components of SQL 2005 to build a better plan, even though the
> Compatibility
> is left at 8.0?
>
Yes, in fact, it's certain. Even in 8.0 Compatibility mode you get get the
(enhanced) SQL Server 2005 query optimizer. In 8.0 Compatibility mode
you're still running SQL Server 2005.
David|||Did you update the stats after the restore on the dev machine? If not the
optimizer may not have the correct info even if it is a better plan:).
--
Andrew J. Kelly SQL MVP
"cbrichards via SQLMonster.com" <u3288@.uwe> wrote in message
news:69a40194e9cbc@.uwe...
> In production we are running SQL Server 2000, SP4, on Windows 2003, using
> 4
> processors with 6 GB AWE Memory.
> I run DBCC DBReindex on all indexes and Update Statistics With FullScan on
> all indexes.
> A stored procedure with a complex query is timing out.
> SP_Who shows that the procedure is not getting blocked, but if anything,
> is
> doing the blocking.
> We restore the production database to our DEV environment which is running
> SQL Server 2005, SP1, on Windows 2003, using 2 processors and 3 GB Memory.
> The database from production, when restored, is left at Compatability 8.0.
> When this same stored procedure is run in DEV it executes in under 2
> seconds,
> with an entirely different execution plan than production.
> Is it possible, that the procedure, when run in DEV is utilizing some
> components of SQL 2005 to build a better plan, even though the
> Compatibility
> is left at 8.0?
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200611/1
>|||I did not run update stats on the DEV machine, since it was a restore of a
database that just had updated stats run on it, and additionally, the
procedure ran like a champ on the DEV machine.
Andrew J. Kelly wrote:
>Did you update the stats after the restore on the dev machine? If not the
>optimizer may not have the correct info even if it is a better plan:).
>> In production we are running SQL Server 2000, SP4, on Windows 2003, using
>> 4
>[quoted text clipped - 21 lines]
>> Compatibility
>> is left at 8.0?
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200611/1|||You should as a matter of practice update the stats after a restore
regardless of when they were ran last.
--
Andrew J. Kelly SQL MVP
"cbrichards via SQLMonster.com" <u3288@.uwe> wrote in message
news:69acf56bf722a@.uwe...
>I did not run update stats on the DEV machine, since it was a restore of a
> database that just had updated stats run on it, and additionally, the
> procedure ran like a champ on the DEV machine.
> Andrew J. Kelly wrote:
>>Did you update the stats after the restore on the dev machine? If not the
>>optimizer may not have the correct info even if it is a better plan:).
>> In production we are running SQL Server 2000, SP4, on Windows 2003,
>> using
>> 4
>>[quoted text clipped - 21 lines]
>> Compatibility
>> is left at 8.0?
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200611/1
>

Friday, March 9, 2012

Performance - SQLServer:Buffer Manager Free pages

Hi
Envinnment : Windows 2003 SQLServer 2000 sp3 with AWE enabled
While performance monitoring in the low peak time, I saw the SQLServer:
Buffer Manager - Free pages = 1768 and came down till 500 and back to 1398.
I gathered form sysperfinfo the following
Buffer Cache database pages8360 MB
Free pages10 MB
Procedure Cache Allocated1377 MB
Is any thing wrong with Buffer Manger? because of free space came down? Is
there any lower limit for free pages?
Thanks for looking this issue
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200510/1
sorry to add total memory . 12GB
Dedicated to SQL = 10.5 GB
kpxus wrote:
>Hi
>Envinnment : Windows 2003 SQLServer 2000 sp3 with AWE enabled
>While performance monitoring in the low peak time, I saw the SQLServer:
>Buffer Manager - Free pages = 1768 and came down till 500 and back to 1398.
>I gathered form sysperfinfo the following
>Buffer Cache database pages8360 MB
>Free pages10 MB
>Procedure Cache Allocated1377 MB
>Is any thing wrong with Buffer Manger? because of free space came down? Is
>there any lower limit for free pages?
>Thanks for looking this issue
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200510/1
|||Hi
To use the Buffer Cache Hit Ratio.
I use that along with SQLServer:MemoryManager\Total Server Memory(KB)
and SQLServer:MemoryManager\Target Server Memory(KB). Total and Target
values should be equal.
Target should never be higher than Total. Target is how much SQL
Server would like to use and Total is how much it currently has.
HTH
From
Doller
|||Total and target memory are same 10.506 MB
doller wrote:
>Hi
>To use the Buffer Cache Hit Ratio.
>I use that along with SQLServer:MemoryManager\Total Server Memory(KB)
>and SQLServer:MemoryManager\Target Server Memory(KB). Total and Target
>values should be equal.
> Target should never be higher than Total. Target is how much SQL
>Server would like to use and Total is how much it currently has.
>HTH
>From
>Doller
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...erver/200510/1

Performance - SQLServer:Buffer Manager Free pages

Hi
Envinnment : Windows 2003 SQLServer 2000 sp3 with AWE enabled
While performance monitoring in the low peak time, I saw the SQLServer:
Buffer Manager - Free pages = 1768 and came down till 500 and back to 1398.
I gathered form sysperfinfo the following
Buffer Cache database pages 8360 MB
Free pages 10 MB
Procedure Cache Allocated 1377 MB
Is any thing wrong with Buffer Manger? because of free space came down? Is
there any lower limit for free pages?
Thanks for looking this issue
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...server/200510/1sorry to add total memory . 12GB
Dedicated to SQL = 10.5 GB
kpxus wrote:
>Hi
>Envinnment : Windows 2003 SQLServer 2000 sp3 with AWE enabled
>While performance monitoring in the low peak time, I saw the SQLServer:
>Buffer Manager - Free pages = 1768 and came down till 500 and back to 1398.
>I gathered form sysperfinfo the following
>Buffer Cache database pages 8360 MB
>Free pages 10 MB
>Procedure Cache Allocated 1377 MB
>Is any thing wrong with Buffer Manger? because of free space came down? Is
>there any lower limit for free pages?
>Thanks for looking this issue
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...server/200510/1|||Hi
To use the Buffer Cache Hit Ratio.
I use that along with SQLServer:MemoryManager\Total Server Memory(KB)
and SQLServer:MemoryManager\Target Server Memory(KB). Total and Target
values should be equal.
Target should never be higher than Total. Target is how much SQL
Server would like to use and Total is how much it currently has.
HTH
From
Doller|||Total and target memory are same 10.506 MB
doller wrote:
>Hi
>To use the Buffer Cache Hit Ratio.
>I use that along with SQLServer:MemoryManager\Total Server Memory(KB)
>and SQLServer:MemoryManager\Target Server Memory(KB). Total and Target
>values should be equal.
> Target should never be higher than Total. Target is how much SQL
>Server would like to use and Total is how much it currently has.
>HTH
>From
>Doller
Message posted via droptable.com
http://www.droptable.com/Uwe/Forums...server/200510/1

Performance - SQLServer:Buffer Manager Free pages

Hi
Envinnment : Windows 2003 SQLServer 2000 sp3 with AWE enabled
While performance monitoring in the low peak time, I saw the SQLServer:
Buffer Manager - Free pages = 1768 and came down till 500 and back to 1398.
I gathered form sysperfinfo the following
Buffer Cache database pages 8360 MB
Free pages 10 MB
Procedure Cache Allocated 1377 MB
Is any thing wrong with Buffer Manger? because of free space came down? Is
there any lower limit for free pages?
Thanks for looking this issue
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200510/1sorry to add total memory . 12GB
Dedicated to SQL = 10.5 GB
kpxus wrote:
>Hi
>Envinnment : Windows 2003 SQLServer 2000 sp3 with AWE enabled
>While performance monitoring in the low peak time, I saw the SQLServer:
>Buffer Manager - Free pages = 1768 and came down till 500 and back to 1398.
>I gathered form sysperfinfo the following
>Buffer Cache database pages 8360 MB
>Free pages 10 MB
>Procedure Cache Allocated 1377 MB
>Is any thing wrong with Buffer Manger? because of free space came down? Is
>there any lower limit for free pages?
>Thanks for looking this issue
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200510/1|||Hi
To use the Buffer Cache Hit Ratio.
I use that along with SQLServer:MemoryManager\Total Server Memory(KB)
and SQLServer:MemoryManager\Target Server Memory(KB). Total and Target
values should be equal.
Target should never be higher than Total. Target is how much SQL
Server would like to use and Total is how much it currently has.
HTH
From
Doller|||Total and target memory are same 10.506 MB
doller wrote:
>Hi
>To use the Buffer Cache Hit Ratio.
>I use that along with SQLServer:MemoryManager\Total Server Memory(KB)
>and SQLServer:MemoryManager\Target Server Memory(KB). Total and Target
>values should be equal.
> Target should never be higher than Total. Target is how much SQL
>Server would like to use and Total is how much it currently has.
>HTH
>From
>Doller
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200510/1