June 2, 2010 at 3:05 pm
Oleg Netchaev (6/2/2010)
C. VLFs are overwritten with zeroes? No, in Windows nothing is overwritten with zeroes as there is no need to do that.
Hey Oleg,
Log files are initialised with zeroes (there's some complexity around that - see Paul's blog and Jonathan Kehayias' entries:
Windows uses zero-initialised memory pages too (see Demand Zero Pages).
Paul
June 2, 2010 at 4:06 pm
Paul White NZ (6/2/2010)
Oleg Netchaev (6/2/2010)
C. VLFs are overwritten with zeroes? No, in Windows nothing is overwritten with zeroes as there is no need to do that.Hey Oleg,
Log files are initialised with zeroes (there's some complexity around that - see Paul's blog and Jonathan Kehayias' entries:
Windows uses zero-initialised memory pages too (see Demand Zero Pages).
Paul
Thank you Paul, it is good to know. Usually, Windows does not need to write any zeroes (when you delete files or format drive, just the records from allocation table are deleted and this is good enough), but initializing a log file with zeroes does make a lot of sense.
Since the question was about clearing existing log file, I think that my assumption about not overwriting existing inactive fragments with zeroes is still OK. If not then I guess I got lucky while dismissing options which I perceived as incorrect. In any case, I got my 2 points out of the question posted by Paul Randall, and to get those is never a trivial task.
Oleg
June 2, 2010 at 9:25 pm
thanks Paul 🙂 of all the QOTD, i find your questions the most difficult...:-)
June 3, 2010 at 3:45 am
I "Lost" 2 points :angry: but "gained" a very good knowledge 🙂
June 6, 2010 at 10:05 am
Another good question which made reading the relevant tech pages to answer it interesting and well worth the time.
June 10, 2010 at 4:15 am
good Q on Transaction Log Physical Architecture and Virtual Log Files
Viewing 6 posts - 16 through 20 (of 20 total)
You must be logged in to reply to this topic. Login to reply