Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 Administration
»
Tempdb and disk
Tempdb and disk
Rate Topic
Display Mode
Topic Options
Author
Message
sqlfriends
sqlfriends
Posted Saturday, January 19, 2013 11:20 PM
SSCommitted
Group: General Forum Members
Last Login: Yesterday @ 10:00 AM
Points: 1,605,
Visits: 2,783
I am reading a tutorial of Randal Paul that says,
Checkpoints don't flush tempdb data to disk. Log records are not flushed to disk on transaction commit. Tempdb data pages and log buffers are not written to disk.
But how can I explain our tempdb .mdf and PDF files keep getting bigger.
Thanks
Post #1409257
ALZDBA
ALZDBA
Posted Sunday, January 20, 2013 6:28 AM
SSCertifiable
Group: General Forum Members
Last Login: Yesterday @ 2:17 AM
Points: 6,862,
Visits: 8,049
it will write tempdb stuff to disk all right, it's just not at checkpoint time, like with regular db.
Why: tempdb is re-created every time SQLServer is started, so there is no need with respect to recovery of db.(which is the need with regular db)
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #1409272
Adi Cohn-120898
Adi Cohn-120898
Posted Sunday, January 20, 2013 8:21 AM
SSCrazy
Group: General Forum Members
Last Login: Yesterday @ 9:50 AM
Points: 2,019,
Visits: 4,923
The automatic checkpoint that SQL Server issues is not the only mechanism that writes the data into the disk. If you issue manual checkpoint command, it will write the TempDB's data to the disk. When Lazywriter writes the data to the disk it will also write the TempDB's data.
Adi
--------------------------------------------------------------
To know how to ask questions and increase the chances of getting asnwers:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1409281
sqlfriends
sqlfriends
Posted Sunday, January 20, 2013 5:29 PM
SSCommitted
Group: General Forum Members
Last Login: Yesterday @ 10:00 AM
Points: 1,605,
Visits: 2,783
ALZDBA (1/20/2013)
it will write tempdb stuff to disk all right, it's just not at checkpoint time, like with regular db.
Why: tempdb is re-created every time SQLServer is started, so there is no need with respect to recovery of db.(which is the need with regular db)
I understand the Why: statement above you mentioned,
But i am not sure what it means: when you say it will wirte tempdb stuff to disk all right.
Post #1409328
sqlfriends
sqlfriends
Posted Sunday, January 20, 2013 5:31 PM
SSCommitted
Group: General Forum Members
Last Login: Yesterday @ 10:00 AM
Points: 1,605,
Visits: 2,783
Adi Cohn-120898 (1/20/2013)
The automatic checkpoint that SQL Server issues is not the only mechanism that writes the data into the disk. If you issue manual checkpoint command, it will write the TempDB's data to the disk. When Lazywriter writes the data to the disk it will also write the TempDB's data.
Adi
We don't usually do the manul checkpoint command.
SO what else make it to write to disk and cause tempdb space grow?
Thanks
Post #1409329
Adi Cohn-120898
Adi Cohn-120898
Posted Sunday, January 20, 2013 10:34 PM
SSCrazy
Group: General Forum Members
Last Login: Yesterday @ 9:50 AM
Points: 2,019,
Visits: 4,923
We don't usually do the manul checkpoint command.
SO what else make it to write to disk and cause tempdb space grow?
Thanks
As I wrote in the previous message - Lazywriter will also write TempDB's data to the disk.
Adi
--------------------------------------------------------------
To know how to ask questions and increase the chances of getting asnwers:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #1409354
ALZDBA
ALZDBA
Posted Monday, January 21, 2013 1:50 AM
SSCertifiable
Group: General Forum Members
Last Login: Yesterday @ 2:17 AM
Points: 6,862,
Visits: 8,049
as you will know Tempdb is a special db, available and used by everyone in the instance.
General usage of tempdb:
http://msdn.microsoft.com/en-us/library/ms190768.aspx
Great post by Gail Shaw which highlights indexing and how operations spill data to tempdb
http://sqlinthewild.co.za/index.php/2011/11/07/sql-university-advanced-indexing-sorting-and-grouping/
another nice usage article :
http://www.databasejournal.com/features/mssql/tempdb-space-usage-in-sql-server.html
Johan
Jul 13
Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't get you anywhere
-
How to post Performance Problems
-
How to post data/code to get the best help
-
How to prevent a sore throat after hours of presenting ppt ?
"press F1 for solution", "press
shift
+F1 for urgent solution"
Need a bit of Powershell? How about
this
Who am I ?
Sometimes this is me
but
most of the time this is me
Post #1409416
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.