You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jens Låås <je...@gmail.com> on 2013/06/17 15:15:31 UTC
increase socache_shmcb maximum size
Hello!
Current maximum size of socache_shmcb is 64MB, which is rather small if you
want to use it with mod_cache_socache.
Memory is cheap etc.
I also noticed that different data types seemed to be used to represent
cache sizes: apr_size_t and unsigned int.
Attached suggestion is to base the maximum size on apr_size_t. Sets max to
half of maximum representable by apr_size_t.
Regards,
Jens
Re: increase socache_shmcb maximum size
Posted by Jens Låås <je...@gmail.com>.
2013/6/17 Graham Leggett <mi...@sharp.fm>
> On 17 Jun 2013, at 3:15 PM, Jens Låås <je...@gmail.com> wrote:
>
> > Current maximum size of socache_shmcb is 64MB, which is rather small if
> you want to use it with mod_cache_socache.
> > Memory is cheap etc.
> >
> > I also noticed that different data types seemed to be used to represent
> cache sizes: apr_size_t and unsigned int.
> >
> > Attached suggestion is to base the maximum size on apr_size_t. Sets max
> to half of maximum representable by apr_size_t.
>
> In theory we should just limit it to APR_SIZE_T_MAX, as you say the cache
> size can be large, if it fits in RAM it fits in RAM.
>
> Undoubtably correct. Even better :-)
Cheers,
Jens
> Regards,
> Graham
> --
>
>
Re: increase socache_shmcb maximum size
Posted by Jim Jagielski <ji...@jaguNET.com>.
On Jun 17, 2013, at 11:34 AM, Graham Leggett <mi...@sharp.fm> wrote:
> On 17 Jun 2013, at 3:15 PM, Jens Låås <je...@gmail.com> wrote:
>
>> Current maximum size of socache_shmcb is 64MB, which is rather small if you want to use it with mod_cache_socache.
>> Memory is cheap etc.
>>
>> I also noticed that different data types seemed to be used to represent cache sizes: apr_size_t and unsigned int.
>>
>> Attached suggestion is to base the maximum size on apr_size_t. Sets max to half of maximum representable by apr_size_t.
>
> In theory we should just limit it to APR_SIZE_T_MAX, as you say the cache size can be large, if it fits in RAM it fits in RAM.
>
+1
Re: increase socache_shmcb maximum size
Posted by Graham Leggett <mi...@sharp.fm>.
On 17 Jun 2013, at 3:15 PM, Jens Låås <je...@gmail.com> wrote:
> Current maximum size of socache_shmcb is 64MB, which is rather small if you want to use it with mod_cache_socache.
> Memory is cheap etc.
>
> I also noticed that different data types seemed to be used to represent cache sizes: apr_size_t and unsigned int.
>
> Attached suggestion is to base the maximum size on apr_size_t. Sets max to half of maximum representable by apr_size_t.
In theory we should just limit it to APR_SIZE_T_MAX, as you say the cache size can be large, if it fits in RAM it fits in RAM.
Regards,
Graham
--