From: Eric Wong Date: 2010-07-22T10:26:41+09:00 Subject: Re: Writing to file delay Matt Triviski wrote: > I am writing to NFS, so I am thinking that this may be the issue. I'm > starting to think that there is no way for me to get what I want, except > to rewrite this in C or Assembly :( NFS is your problem, not Ruby. See the nfs(5) manpage and see if you (or your friendly systems administrator) can tune the NFS mount options to invalidate the cache more frequently. Ruby IO methods are already thin wrappers around corresponding C functions (and thinner if you use the sys{write,read,...} variants). You normally don't need to go lower-level than that. Heck, with enough time and effort, you even could write your own NFS client implementation in Ruby (not a serious suggestion :) -- Eric Wong