From: Eric Wong Date: 2010-11-12T16:11:46+09:00 Subject: [ruby-core:33150] Re: [Ruby 1.9-Feature#4038] IO#advise Run Paint Run Run wrote: > + if (rv = posix_fadvise(fptr->fd, offset, len, advice)) I would release the GVL when making this call, some implementations may block (even only on certain advice) the running thread for disk ops. This is the case with POSIX_FADV_WILLNEED under Linux: the entire range to be read into the page cache before returning from this function, making it very noticeable on a slow device/filesystem with large files such as sshfs. -- Eric Wong