Ummm, how about O_DIRECT instead of O_SYNC (or maybe as well, my googling
hasn't been clear on whether O_DIRECT bypasses the cache on writes as well)?
All IO bypasses the virtual machine cache, so there's no multiple caching.
> Er, it will be shared in the host's context, but each VM will still
> have their own copy in the page cache. This is no better than a
> COW'ed block device
Nope. You O_DIRECT here as well.
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/