Ask the Expert

Risk/performance trade-offs of notification criteria

When writing to disk, an Oracle process waits until it "hears" from the storage device that the write is "done." It turns out that different storage devices have different criteria for when a write is "done." Some when they get the data in their cache, some when it is in their cache and mirrored-cache and others when they find they can write the first block to a physical disk drive. And likely, there are other criteria used as well.

What are the risk/performance trade-offs of these various notification criteria?


    Requires Free Membership to View

The performance of the Oracle database can be better if writes are acknowledged after the subsystem writes to cache memory. However, the performance benefits are only achievable if the database is I/O constrained.

The obvious risk is that a sudden disaster could occur that would keep the data in cache from being written to disk. This can occur if the storage subsystem is physically damaged in some way. Not necessarily a likely scenario but within the realm of possibility.

The real issue with databases is whether or not write ordering is preserved when flashing cache memory. If the cash is tuned to flush on a first in, first out basis then write ordering will be preserved. However, if the cache uses some other algorithms to determine which blocks to flush then it is possible to have data integrity problems with the media image on disk.

The safest method is to use write-through cache which only acknowledges the write after it has been committed to disk.

Regards,
Marc

Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our .bphAaR2qhqA^0@/searchstorage>discussion forums.


This was first published in June 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: