Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a large image stored on NFS. I want to read only the first portion of the image to get the header.

Does the NFS client stop reading after it gets the blocks it needs or will it receive the entire file from the server?

share|improve this question
OS? Implementation? – Chris S Mar 12 '12 at 16:30
the application would control this not nfs. – tony roth Mar 12 '12 at 16:40
up vote 3 down vote accepted

in its simplest form, NFS just presents a filesystem API accross the network.

When your application starts reading data from the file, you'll send read commands to the server, and it will respond with the data. When the app stops reading, there won't be any more responses.

Of course, there's a lot more under the hood, especially a 'readahead buffer' that reads a little more than asked, so in the common case of needing it shortly thereafter, it might be already waiting; but this is configurable and typically small (in the order of 64-512KB)

In short: if your application doesn't read, there won't be any significant useless traffic.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.