apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhe Zhang <zhezh...@us.ibm.com>
Subject Re: Question about httpd memory buffer alignment
Date Fri, 11 Jan 2013 19:54:11 GMT
Ben Reser <ben@reser.org> wrote on 01/11/2013 02:48:00 PM:

> From: Ben Reser <ben@reser.org>
> To: Zhe Zhang/Watson/IBM@IBMUS,
> Cc: dev@apr.apache.org
> Date: 01/11/2013 02:48 PM
> Subject: Re: Question about httpd memory buffer alignment
>
> On Fri, Jan 11, 2013 at 11:21 AM, Ben Reser <ben@reser.org> wrote:
> > If you're trying to align the actual memory that's going to mean
> > messing with the memory pooling system for APR.  Probably writing your
> > own allocator.  And using that allocator with
> > apr_brigade_insert_file() call in default_handler() in server/core.c.
>
> If this is what you want you might be able to mess with
> APR_ALIGN_DEFAULT in include/apr_general.h, looks like it's aligning
> to 8 bytes.
>

Changed to 4096 but I'm still getting 8 bytes aligned buffers.

Thanks,
Zhe
Mime
View raw message