title: File Copy using mmap
body: <p>Problem - Transfer a file of size 350 MB from linux networking box 1 to another linux networking box 2 on the fly dynamically when the box 2 requests for it.</p>
  
  <p>System has limited memory of 1 GB and the file which is of size 350 MB is stored on the disk. The system is actually busy doing a lot of other things. </p>
  
  <p>What is the best approach to take to transfer the file on the fly on demand automatically? If I read the complete file from the disk and store it on RAM before transferring that would actually take up a lot of memory. If I want to avoid that, then whether using mmap to transfer the file would help? How would mmap fit in this scenario? </p>