Google Answers Logo
View Question
 
Q: computer application disk write behavior (disk semantics) ( No Answer,   1 Comment )
Question  
Subject: computer application disk write behavior (disk semantics)
Category: Computers > Software
Asked by: dr_i_e_weird-ga
List Price: $10.00
Posted: 09 Mar 2005 14:53 PST
Expires: 08 Apr 2005 15:53 PDT
Question ID: 490307
Do real-world applications ever intentionally send more than one write
to the same disk block at the same time?  It does not matter to me if
this is done using asynchronous writes from a single process
(application) on a single host, or using separate threads each of
which is doing a synchronous write, or from multiple hosts in a
distributed application on a cluster.  I just want to know if the disk
can ever see this.

Of course, a buggy application could do this, so the disk firmware
cannot completely fail or crash in this case.  But I'd like to know if
any (sophisticated, to be sure) applications do this on purpose
(probably for performance reasons), and therefore "disk semantics"
would dictate that if two (or more) simultaneous writes occur to the
same block, then is a subsequent read required to return *one* of the
blocks written (which one being indeterminate, of course) -- OR, is it
acceptable to return garbage or an IO error (such as checksum error)?

(I also realize that this applies on a sector (512 byte block) basis;
if two multi-block writes overlap, a later read could return a mixture
of the two writes, on a sector granularity.)

Thanks!
Answer  
There is no answer at this time.

Comments  
Subject: Re: computer application disk write behavior (disk semantics)
From: frde-ga on 10 Mar 2005 02:15 PST
 
I noticed adjacent record corruption on a Novell server back in about 1988.
- not garbage - but retained content in small adjacent records.

I've never seen or heard of such a phenomenon since then.

Nowadays the OS serializes disk access, and the hardware itself is
pretty smart, one HD is a lot smarter than any of the PCs I was using
back then.

Also I can't think of a rational use of such an approach on a hard disk.
But maybe today I am not very imaginative.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy