Re: Using O_DIRECT in I/O to cache

From: Chris Worley <worleys_at_gmail.com>
Date: Thu, 5 Aug 2010 13:45:22 -0600

On Thu, Aug 5, 2010 at 11:27 AM, Chris Worley <worleys_at_gmail.com> wrote:
> I have a customer using Squid and
> want to be able to help optimize Squid for very low latency drives.  I
> want to experiment with bypassing the Linux scheduler and open all
> files in the cache with O_DIRECT, but in looking at the source code,
> there are hundreds of "opens", and nothing clearly directed at the fs
> cache (to the first-time observer; an idiot, or however you see me),
> and was hoping somebody would point me to which "open" calls I should
> focus on.  There also seems to be some AIO functionality too... any
> pointers to how that's setup to work would be a bonus.

Here's my thinking:

build and configure squid for aufs, but first modify all instances of
"O_BINARY" to "O_BINARY | O_DIRECT" in the files in the src/fs/aufs
directory.

Are there chances for success?

Thanks,

Chris
Received on Thu Aug 05 2010 - 19:45:28 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 25 2010 - 12:00:05 MDT