Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Increase tempdb database, SQL 2008 R2

393 views
Skip to first unread message

m

unread,
Dec 21, 2011, 10:26:01 AM12/21/11
to
Hello,

I need to increase tempdb database on SQL Server 2008 R2.

Can I do it in business hours?
Is there any negative inpact on the system?

regards,

m


Bob Barrows

unread,
Dec 21, 2011, 11:12:27 AM12/21/11
to
Why? Had you trned autogrow off? I believe you can turn it back on without
restarting.


Erland Sommarskog

unread,
Dec 21, 2011, 5:36:46 PM12/21/11
to
m (web12...@gmail.com) writes:
> I need to increase tempdb database on SQL Server 2008 R2.
>
> Can I do it in business hours?
> Is there any negative inpact on the system?

If the service account does not have the Windows permission Perform Volume
Maintenance Tasks, SQL Server needs to clear all pages in the newly
allocated space, and that will take resources.
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

m

unread,
Dec 22, 2011, 2:25:39 AM12/22/11
to
We have bad performanse on that SQL server,
I noticed that tempdb is smaller than it should be (producer of software we
use on that sql server advice to have inital min 100MB of tempdb)

Now initial size of tempdb is 8MB with 10% of autogrowth and size is 90MB
and application database is about 4GB.

I'm planing to put inital 200MB with autogrowth 25%
What do you think?


"Bob Barrows" <reb0...@NOyahooSPAM.com> wrote in message
news:jct0hl$dis$1...@dont-email.me...

Erland Sommarskog

unread,
Dec 22, 2011, 3:45:11 AM12/22/11
to
m (web12...@gmail.com) writes:
> We have bad performanse on that SQL server, I noticed that tempdb is
> smaller than it should be (producer of software we use on that sql
> server advice to have inital min 100MB of tempdb)
>
> Now initial size of tempdb is 8MB with 10% of autogrowth and size is 90MB
> and application database is about 4GB.
>
> I'm planing to put inital 200MB with autogrowth 25%
> What do you think?

Even without instant file initialization, clearing 200 MB of disk is not
that painful. Go for it.

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

m

unread,
Dec 22, 2011, 3:59:51 AM12/22/11
to
Thank you.

Regards

"Erland Sommarskog" <esq...@sommarskog.se> wrote in message
news:Xns9FC363373...@127.0.0.1...

Bob Barrows

unread,
Dec 22, 2011, 6:17:38 AM12/22/11
to
With Autogrow on, the database is already as big as it needs to be
(depending on how long it's been since the last restart). The size of your
application database is not really relevant unless you're doing thins like
sorting in tempdb. Even still, autogrow has already made tempdb as big as it
needs to be. Why are you blaming tempdb for your sluggish performance? Are
you noticing that many waits while tempdb is resized?

That said, however, as Erland put it, 200 Mb is nothing. Go for it. Then
monitor it for a while to see if it remains at 200 Mb.

m

unread,
Dec 22, 2011, 7:43:48 AM12/22/11
to
Thanks.

We have 8GB RAM on that SQL server.

What do you think if we limit SQL memory to 6GB, would there be any
improvment on server performance?


"m" <web12...@gmail.com> wrote in message
news:jcuri7$e6j$1...@gregory.bnet.hr...

Erland Sommarskog

unread,
Dec 22, 2011, 5:28:40 PM12/22/11
to
m (web12...@gmail.com) writes:
> We have 8GB RAM on that SQL server.
>
> What do you think if we limit SQL memory to 6GB, would there be any
> improvment on server performance?

Since the database is only 4GB, there should be plenty of headroom.

Is this 32-bit or 64-bit SQL Server?

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

m

unread,
Dec 23, 2011, 3:23:48 AM12/23/11
to
This is Microsoft SQL Server Enterprise Edition (64-bit) 2008 R2


"Erland Sommarskog" <esq...@sommarskog.se> wrote in message
news:Xns9FC3EED4A...@127.0.0.1...

Bob Barrows

unread,
Dec 23, 2011, 9:24:37 AM12/23/11
to
m wrote:
> Thanks.
>
> We have 8GB RAM on that SQL server.
>
> What do you think if we limit SQL memory to 6GB, would there be any
> improvment on server performance?
>

I don't know. There might be ... there might not be. It depends on if memory
issues are causing the performance problems.

It sounds like you're just willy-nilly throwing solutions at the server
hoping one of them will luckily solve your problem. You need to do some
monitoring and tracing to find out where your performance bottlenecks really
are. Here are some tools that can help in that regard:
http://pal.codeplex.com/

Install and run the SQL 2008 R2 Best Practices Analyzer
http://blogs.msdn.com/b/psssql/archive/2010/06/20/introducing-the-sql-server-2008-r2-best-practices-analyzer-bpa.aspx

Look at the event logs and see if any IO or memory pressure situations are
being reported.

Do some index analysis and see if there are indexes that can be created that
will help:
http://blogs.msdn.com/b/psssql/archive/2010/06/20/introducing-the-sql-server-2008-r2-best-practices-analyzer-bpa.aspx

or indexes that can be dropped due to lack of use:
https://www.google.com/search?hl=en&safe=active&q=sql+unused+indexes&oq=sql+unused+indexes&aq=f&aqi=g1g-v4g-b5&aql=&gs_sm=e&gs_upl=67889l69117l0l70056l7l7l0l0l0l0l201l798l3.3.1l7l0

Hire a consultant to analyze your system and make recommendations.



0 new messages