All of lore.kernel.org
 help / color / mirror / Atom feed
* NFS behavior as seen by EXT2
@ 2005-12-19 11:52 Muhammad Irfan Nazir
  2005-12-19 23:14 ` Greg Banks
  0 siblings, 1 reply; 2+ messages in thread
From: Muhammad Irfan Nazir @ 2005-12-19 11:52 UTC (permalink / raw)
  To: nfs

[-- Attachment #1: Type: text/plain, Size: 1817 bytes --]

Hi,

I am involved in research around EXT2 file system. During the ongoing
research project I have noticed nfs behavior for which I would like to
benefit from your experiences.

I am using Red Hat Linux 9.0 (kernel version 2.4.20-8).

*Scenairo:*

The nfs client is required to read a file residing on a remote server.

I monitored nfs requests as recieved by the EXT2 using kernel mode messages.
I found the following sequence:

On Client Side:
Application opens file residing on nfs mounted directory.
reads the file
reads the file
reads the file
closes the file

Server side: Requests as recieved by the Ext2

nfs request opens the file
reads the data
closes the file

nfs request opens the file
reads the data
closes the file

nfs request opens the file
reads the data
closes the file

*Behaviour Noticed:*

Nfs client opens the file for every read request and reads the data then
closes the file. And repeats the same procedure for every read request.

*Question:*

It was noted that after each Read, the file is closed,so the Virtual File
System (VFS) file object is deleted.
For next time Read a new VFS level file object is created.

Now nfs keeps record of the last reading position and sends the read request
to EXT2 with last reading position.


Where as at EXT2 level I was supposing to get the position zero as the file
was closed in the last reading and all its memory references were deleted.

How/where does the nfs keeps the record of the previous reading position?

I want to get the reference to the documentation stating the read/write
behaviour of nfs.

with best regards,

 Arfan
--
Muhammad Arfan Nazir
Research Associate
COMSATS Institute of IT (CIIT),
Islamabad, Pakistan
http://csr.comsats.edu.pk/research/multimedia.shtml

[-- Attachment #2: Type: text/html, Size: 2147 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-19 23:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-19 11:52 NFS behavior as seen by EXT2 Muhammad Irfan Nazir
2005-12-19 23:14 ` Greg Banks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.