data written to file missed by reader
- From: seanmkirkpatrick@xxxxxxxxx
- Date: 13 Sep 2006 08:05:34 -0700
Hello All,
We currently run processes that communicate by writing an encoded
message to a flat file while other processes are reading the file. A
message that was written to the file by one process (fsync is not
called after each write) was missed by the reader. A second message
was written 1 ms later. When I say "missed", I mean that the process
read the second message and continued processing. Another process
reading messages from the same file came through ~200 ms later and read
the missed message and then the second message in the expected
sequence. Is there some kind of synchronization issue after the data
has been written that could have caused the reading process to miss the
data? Perhaps during the flush to disk? Is there any inter-process
file access management performed in the virtual layer?
We are running on linux kernel 2.4.21-32.0.1 using multiple processors
(smp) and SCSI disks in a RAID 1 configuration.
Thanks,
--Sean
.
- Follow-Ups:
- Re: data written to file missed by reader
- From: Kaz Kylheku
- Re: data written to file missed by reader
- From: David Schwartz
- Re: data written to file missed by reader
- Prev by Date: Re: env variables
- Next by Date: Re: data written to file missed by reader
- Previous by thread: About Chelsio Communications
- Next by thread: Re: data written to file missed by reader
- Index(es):
Relevant Pages
|