NFS troubles

Sergey Zhumatiy (serg@vvv.srcc.msu.su)
Mon, 05 Jan 1998 16:06:09 +0300


This is a multi-part message in MIME format.
--------------851DF90254FE122B329FAFA2
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

Hello!
I have some problems with NFS. Actually, I think, with cached data.
(May be that's not NFS problem, but I wanto understand where it is)

My test is very simply: two processes on two machines. First process
writes data to file via NFS. Then second process reads this file and checks.
Then first writes another data, and then second reads it and
checks. (Totally 10 iterations).
All times processes are syncronized.

First ---WRITE--+-----------+--WRITE2---+-------+--...
| | | ...
Second----------+---READ----+-----------+--READ-+--...
^ ^ ^ ^
\ | / /
\ | / /
----BARIERS------+------

On second or third iteration second process often reads
OLD data! (I guess cached).
Can you help me in this case?

Serg.

--------------851DF90254FE122B329FAFA2
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <34B0DA07.FB40015F@vvv.srcc.msu.su>
Date: Mon, 05 Jan 1998 16:03:03 +0300
From: Sergey Zhumatiy <serg@vvv.srcc.msu.su>
Organization: SRCC
X-Mailer: Mozilla 4.03 [en] (X11; I; Linux 2.0.32 i586)
MIME-Version: 1.0
To: Majordomo@vger.rutgers.edu
Subject: NFS troubles
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

Hello!
I have some problems with NFS. Actually, I think, with cached data.
(May be that's not NFS problem, but I wanto understand where it is)

My test is very simply: two processes on two machines. First process
writes data to file via NFS. Then second process reads this file and checks.
Then first writes another data, and then second reads it and
checks. (Totally 10 iterations).
All times processes are syncronized.

First ---WRITE--+-----------+--WRITE2---+-------+--...
| | | ...
Second----------+---READ----+-----------+--READ-+--...
^ ^ ^ ^
\ | / /
\ | / /
----BARIERS------+------

On second or third iteration second process often reads
OLD data! (I guess cached).
Can you help me in this case?

Serg.

--------------851DF90254FE122B329FAFA2--