LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2009, 10:12 AM   #1
vlyamtse
Member
 
Registered: Apr 2007
Posts: 54

Rep: Reputation: 15
remote file cacheing -??


Hello,
I have to write some code ("C") to fetch few blocks from the remote file ( via NFS ), and cache them locally. The idea is to speed up file prebuffering for the local app where functionality is sensitive to file I/O speed. Can someone suggest an approach, or point me out to examples?
Thanks,
-V
 
Old 02-14-2009, 04:05 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Could be difficult..
Things also depend on whether the app reads, writes, or both.

One thing that comes to mind is that NFS-client software will probably have some buffering. Maybe you can change NFS-client code to add/increase buffering? With some luck it may even be a compile time option.

Or add caching code to the app? If it is one specific app.

If you really need something in between, first thing I would think of is to implement a Fileystem in Userspace that mirrors/duplicates part of the NFS mounted directory tree and does the caching in between. Seems a similar thing has been made already too. See: "mcachefs"
 
Old 02-16-2009, 09:32 AM   #3
vlyamtse
Member
 
Registered: Apr 2007
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks HKO, excellent idea.
-V
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is my squid server cacheing ? tataiermail Linux - Server 2 07-04-2007 02:17 PM
nis/yp client cacheing group info dmonty Linux - Security 5 09-19-2006 04:55 PM
Adding 'static' records to a Cacheing only DNS server? Paul_Randle Linux - Networking 3 08-19-2005 07:18 AM
How do I make Dillo stop cacheing? Nebetsu Linux - Software 0 05-22-2005 12:28 PM
ICS and cacheing meetenshah Linux - Newbie 1 09-14-2004 05:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration