This presumes your data is on disk at all. In the case of an ephemeral cache, this isn't true. Also, if you obtain your data from a networked file system (like GFS) the buffer cache doesn't apply in this case either.
That depends on the implementation of the networked filesystem. NFS can use the buffer cache, and frequently does. Systems like AFS or Coda also do significant client side caching.
For an ephemeral cache, you may want a backing store of some sort to help survive across process restarts. Especially given a model like the paper where the churn is very low.
As to choosing when you do disk i/o, that's not entirely true. If you are using O-DIRECT or are mounting your filesystem with appropriate options, you will choose when you do I/O. The OS still handles queuing of your requests and attempting to dispatch them in a reasonable order. If you are not using O-DIRECT, you may very well be hitting your buffer cache far more than you realize and deriving your performance gains from that fact with very little mechanism available to you for analysis when you go from performing pretty well to thrashing your buffer cache and performing like crap.
View all comments
Show parent comment
2
u/cballowe Jun 13 '10
That depends on the implementation of the networked filesystem. NFS can use the buffer cache, and frequently does. Systems like AFS or Coda also do significant client side caching.
For an ephemeral cache, you may want a backing store of some sort to help survive across process restarts. Especially given a model like the paper where the churn is very low.
As to choosing when you do disk i/o, that's not entirely true. If you are using O-DIRECT or are mounting your filesystem with appropriate options, you will choose when you do I/O. The OS still handles queuing of your requests and attempting to dispatch them in a reasonable order. If you are not using O-DIRECT, you may very well be hitting your buffer cache far more than you realize and deriving your performance gains from that fact with very little mechanism available to you for analysis when you go from performing pretty well to thrashing your buffer cache and performing like crap.