List:Commits« Previous MessageNext Message »
From:Stewart Smith Date:November 12 2007 3:21am
Subject:Re: [patch 08/11] WL4081 Allow use of direct IO (O_DIRECT) with
azio
View as plain text  
On Fri, 2007-11-09 at 09:57 +0100, Tomas Ulin wrote:
> why not put this in the common azio?

A few reasons:
1) Don't break ARCHIVE
	a) I've kinda broken the flush implementation in a later patch. This is
okay for us as we never use it, but ARCHIVE does.
	b) File format changed slightly - header is now 512bytes so that we can
easily operate on it with O_DIRECT without rewriting part of the data
file (ick).
2) Fiddling with zlib internals is probably not what we really want to
do in too many places.

Although I plan to work with Brian at some point to consolidate the two

> 
> stewart@stripped wrote:
> > Change azio to either posix_memalign allocate in and out buffers OR
> > allow user to allocate these. Flag in azio_stream should be where
> > padding was so no additional memory used.
> >
> > This enables O_DIRECT usage with azio if aligned buffers are allocated
> > (by default, the azio allocation - posix_memalign - does this).
> >
> > Also fiddles with ZLIB internals to get the correct buffer sizes to allocate
> > for deflate and inflate.

-- 
Stewart Smith, Senior Software Engineer
MySQL AB, www.mysql.com
Office: +14082136540 Ext: 6616
VoIP: 6616@stripped
Mobile: +61 4 3 8844 332

Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Thread
[patch 00/11] WL4081 NDB Compressed LCP and Backupstewart9 Nov
  • [patch 04/11] WL4081: read compressed backup filesstewart9 Nov
  • [patch 03/11] WL4081: Add compressed file support to AsyncFile (azio) and support compressed backups.stewart9 Nov
  • [patch 01/11] WL4081: Copy azio for NDBstewart9 Nov
  • [patch 05/11] WL4081: add support for *storing* compressed LCPstewart9 Nov
  • [patch 07/11] WL4081 Futz with mtr ndb config to enable compressed lcp, backup and O_DIRECTstewart9 Nov
  • [patch 08/11] WL4081 Allow use of direct IO (O_DIRECT) with aziostewart9 Nov
  • [patch 10/11] Fix mem leak in mgmapi report eventstewart9 Nov
  • [patch 11/11] Massive azio bugfix (mainly for O_DIRECT) and error reportingstewart9 Nov
  • [patch 06/11] WL4081: Add support to AsyncFile for reading zlib compressed files.stewart9 Nov
  • [patch 09/11] Cleanup AsyncFile, make modular and nice to readstewart9 Nov
Re: [patch 10/11] Fix mem leak in mgmapi report eventStewart Smith12 Nov
Re: [patch 08/11] WL4081 Allow use of direct IO (O_DIRECT) withazioStewart Smith12 Nov
Re: [patch 07/11] WL4081 Futz with mtr ndb config to enablecompressed lcp, backup and O_DIRECTStewart Smith12 Nov
Re: [patch 06/11] WL4081: Add support to AsyncFile for readingzlib compressed files.Stewart Smith12 Nov
Re: [patch 09/11] Cleanup AsyncFile, make modular and nice to readStewart Smith12 Nov
Re: [patch 08/11] WL4081 Allow use of direct IO (O_DIRECT)with azioStewart Smith12 Nov