apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: [PATCH] Re: large file support (was: Re: Memory comsumption of svn)
Date Thu, 07 Mar 2002 22:45:02 GMT
At 12:05 PM 3/7/2002, you wrote:
>On 7 Mar 2002, Jeff Trawick wrote:
>
>| Any reason this didn't get committed?
>
>If everyone likes this general framework, I can do research and get more
>OSes that have largefile support added into that patch, besides just
>having Solaris >= 2.6 enabled.
>
>Also, I know (Greg? Bill?)) was saying something about APR_HAS_LARGEFILES
>or something of the sort. A grep through the unix tree doesnt show that
>symbol, but is this something that's really needed? I'm of the opinion
>that largefile support exists below the APR layer, and any OS-specific
>compile flags are saved to apxs in Apache-land... any other thoughts on
>this?

APR_HAS_LARGEFILES tells us that files don't fit in memory (and that
apr_size_t is not equivalent to apr_off_t.)

This affects code in several places, it's critical we note it.

For example, we 'know' we aren't allowed to sendfile() files bigger than
memory allows, so we split sendfiles into units (16MB each, in apache)
for transmission.  mmap and other users will have similar concerns.

Bill



Mime
View raw message