
Signature
Andrew J. Kelly SQL MVP
Solid Quality Mentors
> Sorry, I should have noted I am working with SQL2000.
>
> Thanks!
Also note that you can actually get much WORSE performance if you have, say,
a single drive that you are putting multiple files on! the head thrashing
that results will be unkind to IO throughput.

Signature
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net
> Most of what is in the link John supplied about Tempdb is still valid for
> 2000 even though the article was written for 2005. But here is the
[quoted text clipped - 7 lines]
>>
>> Thanks!
Linchi Shea - 14 Jul 2008 21:08 GMT
Hmmm... This is an interesting question. I'm not sure to be honest. If there
is head thrashing, one would think there'll be head thrashing even with a
single file???
Linchi
> Also note that you can actually get much WORSE performance if you have, say,
> a single drive that you are putting multiple files on! the head thrashing
[quoted text clipped - 11 lines]
> >>
> >> Thanks!
JXStern - 15 Jul 2008 00:05 GMT
>Hmmm... This is an interesting question. I'm not sure to be honest. If there
>is head thrashing, one would think there'll be head thrashing even with a
>single file???
Could be less thrashing, but more waiting, depending on scenario.
The danger is that more concurrency produces relatively more
thrashing!
J.
TheSQLGuru - 15 Jul 2008 16:25 GMT
I had a client that created a 16 file tempdb on a 2 drive raid1 set.
Dropping back to (IIRC) a single file improved performance of their typical
workload between 10 and 15%. Note that they wrote a fairly large amount of
data to tempdb for work tables, etc, but they did NOT have large amounts of
create/drops (i.e. no SGAM issues). Also note that a conforming benchmark
was not done before/after - just timing metrics of report runs which clearly
could have been affected by other loads on server.

Signature
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net
> Hmmm... This is an interesting question. I'm not sure to be honest. If
> there
[quoted text clipped - 22 lines]
>> >>
>> >> Thanks!
David Hay - 15 Jul 2008 16:38 GMT
Thanks for all the input. There are some pieces that do extensive
create/drops in TempDB, then I have the business objects users who are
doing alot of sorting/grouping etc which also takes place in tempdb.
I do see the pagelatch_up waits Andrew mentioned. I might just have
to do my best to convince them to let me try it if I cannot replicate
the production volume/configuration. Once again, many thanks to all!
David Hay
JXStern - 15 Jul 2008 00:03 GMT
>Also note that you can actually get much WORSE performance if you have, say,
>a single drive that you are putting multiple files on! the head thrashing
>that results will be unkind to IO throughput.
A very interesting point - not mentioned in any of the Microsoft white
papers I've seen! Let's see, do we benefit by reducing contention at
the cost of more head movement? I suppose you can find scenarios that
are better one way or the other.
J.
Andrew,
Thanks for the link. Based on what I am seeing I do have some
contention issues, but before I can implement a change, I need to
prove it in a dev/qa environment before I can push it to production no
matter what "best proactices" says, or other peoples observations. I
need to be able to prove it on one of our boxes. My issue is that our
Dev and QA environments do not have the same set up, much less the
volume that the production server has. That is why I am looking for
some kind of script that I can run against either configuration and
show those results as proof that the concept works.
Thanks again!
David Hay
John Bell - 14 Jul 2008 21:57 GMT
> Andrew,
>
[quoted text clipped - 11 lines]
>
> David Hay
Hi
If you don't have something like LoadRunner or Rational Performance Tester
or if you Web Application Visual Studio Team System, you will be able to put
different loads on the system and monitor the changes. Of course over use of
tempdb by your application could actually be the issue rather than how they
system is configured. If you only want to prove the discs are slow then look
at SQLIOStress or the newer SQLIOSim. http://support.microsoft.com/kb/231619
John
Andrew J. Kelly - 14 Jul 2008 22:38 GMT
If you don't have a test env that will stress the db similar to the prod
then it will be hard to prove that the changes will actually make a
difference. But if you can prove you have contention issues in tempdb then
that should be enough. Do you have pagelatch_UP waits? If you do that is a
very good sign you have contention and the additional files and or trace
flags should help. In my experience with lots of contention this can make a
dramatic difference. There is an extremely low if any risk you will see any
decrease in performance even if this wasn't the issue.

Signature
Andrew J. Kelly SQL MVP
Solid Quality Mentors
> Andrew,
>
[quoted text clipped - 11 lines]
>
> David Hay