NFS server with variable speeds

Pavel Machek (pavel@elf.ucw.cz)
Wed, 29 Apr 1998 23:32:33 +0200


Hi!

I have a nfs server. I believe you have one, too, but mine is special:

It has some 'fast' files and 'fast' directories. These behave
'normally', i.e. response is given in less than second.

And then there are slow files and slow directories. Reading block from
slow file can take something like 30 minutes in worst case. Reading
slow directory will be faster, but it can well take 2 minutes or so.

It is inacceptable to wait > 1 minute just to access fast file while
slow file is being read.

Question 1 is: will it work?

I'm not too sure. First, when I made one readdir hang forever at nfs
server, no other readdirs were possible. Second, I took a quick look
at source and it seems to me that we are making synchronous reads
under some circumstances. (Is it possible to have two synchronous to
same server at same time? What means word synchronous in this
context?)

Question 2 is: what should nfs server do while trying to read block?
My current version just drops the request...

Pavel

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu