The forum will be unavailable for maintenance at some point from Friday, April 13 at 19:00 EDT until Sunday, April 15 at 23:59 EDT. Downtime will be minimized but the exact timing is unknown.

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?


asked 19 Jan '16, 10:46

Breck%20Carter's gravatar image

Breck Carter
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
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

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 19 Jan '16, 10:46

question was seen: 402 times

last updated: 19 Jan '16, 13:25