Re: squid performance

2000-01-29 Thread Greg Stark
Leslie Mikesell [EMAIL PROTECTED] writes: I agree that it is correct to serve images from a lightweight server but I don't quite understand how these points relate. A proxy should avoid the need to hit the backend server for static content if the cache copy is current unless the user hits

Re: squid performance

2000-01-29 Thread Leslie Mikesell
According to Greg Stark: 1) Netscape/IE won't intermix slow dynamic requests with fast static requests on the same keep-alive connection I thought they just opened several connections in parallel without regard for the type of content. Right, that's the problem. If the two

Re: squid performance

2000-01-29 Thread Greg Stark
Leslie Mikesell [EMAIL PROTECTED] writes: The 'something happens' is the part I don't understand. On a unix server, nothing one httpd process does should affect another one's ability to serve up a static file quickly, mod_perl or not. (Well, almost anyway). Welcome to the real world

Re: squid performance

2000-01-25 Thread Peter Haworth
Gerald Richter wrote: No, that's the size of the system call buffer. It is not an application buffer. So how one should interpret the info at: http://www.apache.org/docs/mod/mod_proxy.html#proxyreceivebuffersize QUOTE The ProxyReceiveBufferSize directive specifies an explicit

Re: squid performance

2000-01-20 Thread Leslie Mikesell
According to Greg Stark: I think if you can avoid hitting a mod_perl server for the images, you've won more than half the battle, especially on a graphically intensive site. I've learned the hard way that a proxy does not completely replace the need to put images and other other static

Re: squid performance

2000-01-20 Thread Greg Stark
Vivek Khera [EMAIL PROTECTED] writes: Squid does indeed cache and buffer the output like you describe. I don't know if Apache does so, but in practice, it has not been an issue for my site, which is quite busy (about 700k pages per month). I think if you can avoid hitting a mod_perl

Re: squid performance

2000-01-20 Thread Greg Stark
"G.W. Haywood" [EMAIL PROTECTED] writes: Would it be breaching any confidences to tell us how many kilobyterequests per memorymegabyte or some other equally daft dimensionless numbers? I assume the number you're looking for is an ideal ratio between the proxy and the backend server? No

Re: squid performance

2000-01-20 Thread Stas Bekman
On 20 Jan 2000, Greg Stark wrote: I tried to use the minspareservers and maxspareservers and the other similar parameters to let apache tune this automatically and found it didn't work out well with mod_perl. What happened was that starting up perl processes was the single most cpu intensive

RE: squid performance

2000-01-18 Thread Ask Bjoern Hansen
On Tue, 18 Jan 2000, Stas Bekman wrote: I'm still confused... which is the right scenario: 1) a mod_perl process generates a response of 64k, if the ProxyReceiveBufferSize is 64k, the process gets released immediately, as all 64k are buffered at the socket, then a proxy process comes in,

Re: squid performance

2000-01-18 Thread jb
I looked at mod_proxy and found the pass thru buffer size is IOBUFSIZ, it reads that from the remote server then writes to the client, in a loop. Squid has 16K. Neither is enough. In an effort to get those mod_perl daemons to free up for long requests, it is possible to patch mod_proxy to read as

Re: squid performance

2000-01-18 Thread Michael Alan Dorman
Vivek Khera [EMAIL PROTECTED] writes: This has infinite more flexibility than squid, and allows me to have multiple personalities to my sites. See for example the sites http://www.morebuiness.com and http://govcon.morebusiness.com If when you say "multiple personalities", you mean virtual

Re: squid performance

2000-01-18 Thread Ask Bjoern Hansen
On 17 Jan 2000, Michael Alan Dorman wrote: Vivek Khera [EMAIL PROTECTED] writes: This has infinite more flexibility than squid, and allows me to have multiple personalities to my sites. See for example the sites http://www.morebuiness.com and http://govcon.morebusiness.com If when you

Re: squid performance

2000-01-17 Thread Joshua Chamas
Gerald Richter wrote: I have seen this in the source too, that's why I wrote it will not work with Apache, because most pages will be greater the 8K. Patching Apache, is one possibility, that's right, but I just looked after the ProxyReceiveBufferSize which Oleg pointed to, and this one

RE: squid performance

2000-01-17 Thread radu
On Mon, 17 Jan 2000, Gerald Richter wrote: Look at proxy_http.c line 263 (Apache 1.3.9): if (setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (const char *) conf-recv_buffer_size, sizeof(int)) I am not an expert in socket programming, but the setsockopt man page on my

Re: squid performance

2000-01-17 Thread Ask Bjoern Hansen
On Sun, 16 Jan 2000, DeWitt Clinton wrote: [...] On that topic, is there an alternative to squid? We are using it exclusively as an accelerator, and don't need 90% of it's admittedly impressive functionality. Is there anything designed exclusively for this purpose? At ValueClick we can't

Re: squid performance

2000-01-17 Thread G.W. Haywood
Hi there, On Mon, 17 Jan 2000, Joshua Chamas wrote: On Solaris, default seems to be 256K ... As I remember, that's what Linux defalts to. Don't take may word for it, I can't remember exactly where or when I read it - but I think it was in this List some time during the last couple of months!

Re: squid performance

2000-01-17 Thread G.W. Haywood
Hi there, On Mon, 17 Jan 2000, Ask Bjoern Hansen wrote: At ValueClick we can't use the caching for obvious reasons so we're using a bunch of apache/mod_proxy processes in front of the apache/mod_perl processes to save memory. Even with our average 1KB per request we can keep hundreds of

RE: squid performance

2000-01-17 Thread Markus Wichitill
So, if you want to increase RCVBUF size above 65535, the default max value, you have to raise first the absolut limit in /proc/sys/net/core/rmem_max, Is "echo 131072 /proc/sys/net/core/rmem_max" the proper way to do this? I don't have much experience with /proc, but this seems to work. If

RE: squid performance

2000-01-17 Thread Stas Bekman
On Mon, 17 Jan 2000, Markus Wichitill wrote: So, if you want to increase RCVBUF size above 65535, the default max value, you have to raise first the absolut limit in /proc/sys/net/core/rmem_max, Is "echo 131072 /proc/sys/net/core/rmem_max" the proper way to do this? I don't

Re: squid performance

2000-01-17 Thread Ask Bjoern Hansen
On Mon, 17 Jan 2000, G.W. Haywood wrote: At ValueClick we can't use the caching for obvious reasons so we're using a bunch of apache/mod_proxy processes in front of the apache/mod_perl processes to save memory. Even with our average 1KB per request we can keep hundreds of mod_proxy

RE: squid performance

2000-01-17 Thread Stas Bekman
No, that's the size of the system call buffer. It is not an application buffer. So how one should interpret the info at: http://www.apache.org/docs/mod/mod_proxy.html#proxyreceivebuffersize QUOTE The ProxyReceiveBufferSize directive specifies an explicit network buffer size

RE: squid performance

2000-01-17 Thread Gerald Richter
Hi Stas, Yes, as Joshua posted today morning (at least it was morning in germany :-), the application buffer size is hardcoded, the size is 8192 (named IOBUFSIZE). You will find it in proxy_util.c:ap_proxy_send_fb(). The ProxyReceiveBufferSize set the receive buffer size of the

RE: squid performance

2000-01-17 Thread Stas Bekman
Yes, as Joshua posted today morning (at least it was morning in germany :-), the application buffer size is hardcoded, the size is 8192 (named IOBUFSIZE). You will find it in proxy_util.c:ap_proxy_send_fb(). The ProxyReceiveBufferSize set the receive buffer size of the socket, so

Re: squid performance

2000-01-16 Thread DeWitt Clinton
On Fri, 14 Jan 2000 [EMAIL PROTECTED] wrote: Hi, I am switching my modperl site to squid in httpd acclerator mode and everything works as advertised, but was very surprised to find squid 10x slower than apache on a cached 6k gif as measured by apache bench... 100 requests/second vs almost

Re: squid performance

2000-01-16 Thread Jeffrey W. Baker
DeWitt Clinton wrote: On Fri, 14 Jan 2000 [EMAIL PROTECTED] wrote: Hi, I am switching my modperl site to squid in httpd acclerator mode and everything works as advertised, but was very surprised to find squid 10x slower than apache on a cached 6k gif as measured by apache bench...

Re: squid performance

2000-01-16 Thread DeWitt Clinton
On Sun, 16 Jan 2000, Steven Lembark wrote: given you have the core to support it... try using libmm and a tied hash to just stash the stuff until it's asked for. Actually, we are currently developing a generic object caching interface that will support a TTL based on expiration dates, and

Re: squid performance

2000-01-16 Thread Jeffrey W. Baker
Vivek Khera wrote: Woulnd't running mod_perl on the front end kinda defeat the whole purpose of an accelerator? Perhaps not. The thing that adds the most heft to my httpd processes is the Oracle libraries. Mod_perl processes can be very small if they aren't linking in a bunch of libraries.

RE: squid performance

2000-01-16 Thread Gerald Richter
Lately I've been using apache on the front end with mod_rewrite and mod_proxy to send mod_perl-required page requests to the heavy back end. This has infinite more flexibility than squid, and allows me to have multiple personalities to my sites. See for example the sites