On Sun, May 13, 2012 at 12:50:39AM +0300, Bar Ziony wrote:
> Thank you Willy!
> 
> I increased the RAM to 2GB and now I don't see the problem. I will change
> the buffers size and report back as well.
> Why did you recommend bufsize of 8130 and not 8192?

As I explained in an earlier mail in this thread, 8030 is 5.5*1460 which is
the default TCP MSS. This ensures that TCP segments remain as much aligned
as possible. Also, not using the kill 8kB leaves some room for the malloc
heads in the same pages, which reduces memory fragmentation.

> Also, Why do I need to change tune.maxrewrite ?

because by default it's half of a buffer, so it would protect 4kB of the
8kB buffer, limiting your request and response headers to 4kB and preventing
to read more than that on the first segments. 1kB is more than enough for
the usual rewrites, so that leaves 7kB usable for the first read.

Willy


Reply via email to