The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

Just the number of physical index and table pages written by actual checkpoint operations?

Is there any I/O optimization; e.g., predictive writes prior to a final checkpoint?

Does DiskWrite include anything else?

Physical temporary file pages?

OUTPUT statements?

UNLOAD statements?

xp_write_file()?

asked 19 Jan '16, 10:46

Breck%20Carter's gravatar image

Breck Carter
26.6k418575824
accept rate: 21%


There is only two places in SQLA that the DiskWrite database counter is incremented. They are:

  • after the completion of a database page disk write to any of the dbspaces, including temp and (transaction and mirror) logs
  • after the completion of a group write (i.e. multiple pages) to any of the dbspaces.

So the counter does not include any writes to any auxiliary files such as unload, xp_write_file, etc (nor output... but this is done by the dbisql[c] client!)

Regarding your question "Is there any I/O optimization?". Yes, prior to a checkpoint a pass over the cache is made to flush dirty pages before the database is locked (from connections) to do the actual checkpoint.

permanent link

answered 19 Jan '16, 11:01

Mark%20Culp's gravatar image

Mark Culp
22.3k9129262
accept rate: 40%

edited 19 Jan '16, 13:23

> any of the dbspaces, including temp

That makes sense...

> and logs

...but what about the LogWrite property?

(19 Jan '16, 12:29) Breck Carter
Replies hidden
2

Sorry, by "logs" I was referring to the transaction log and mirror log, not the console log, etc. I've clarified my answer. LogWrite refers to the number of writes made to the transaction log and is a subset of DiskWrite.

(19 Jan '16, 13:23) Mark Culp
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×20

question asked: 19 Jan '16, 10:46

question was seen: 199 times

last updated: 19 Jan '16, 13:25