Re: new patch & new ideas (squid+epoll)

2003-11-07 Thread David Nicklay
Hi, oops. Forgot to post the attachment. Here goes. Henrik Nordstrom wrote: Can we please have the patch clean again.. (preferably as a MIME attachment). I don't seem to have the original message left in my archives, and trying to recover the patch from the inline discussion is a bit cumbersome

Re: new patch & new ideas (squid+epoll)

2003-11-07 Thread Henrik Nordstrom
Just wondering if this belongs to Bug #796 http://www.squid-cache.org/bugs/show_bug.cgi?id=796>. If it does please attache the patch there and write a comment. Don't forget to get the attributions correct if the patch is not uploaded by the author. Regards Henrik > > On Thu, 6 Nov 2003, David

Re: new patch & new ideas (squid+epoll)

2003-11-07 Thread David Nicklay
This is part of the same bug. The patch I just submitted from Gonzalo is an improved fix for this problem. Henrik Nordstrom wrote: Just wondering if this belongs to Bug #796 http://www.squid-cache.org/bugs/show_bug.cgi?id=796>. If it does please attache the patch there and write a comment. Don

Little questions

2003-11-07 Thread Gonzalo A. Arana
Hi, I am currently working on squid-3 support for Transfer-Encoding. I need to estimate available cpu for compression, so that I can adjust compression parameters. The only function I found is src/stat.cc:statCPUUsage, which is declared as static. Should I: 1) make statCPUUsage public? (I guess

ICAP X-Authenticated-User support

2003-11-07 Thread Gaël Roualland
Hello, Here's a patch for Squid ICAP 2.5 from CVS to add the X-Authenticated-User header described in : http://www.ietf.org/internet-drafts/draft-stecher-icap-subid-00.txt This mimics the X-Client-IP header to provide more information regarding the original request to the ICAP server. It works

Re: Little questions

2003-11-07 Thread Henrik Nordstrom
On Fri, 7 Nov 2003, Gonzalo A. Arana wrote: > 1) make statCPUUsage public? (I guess this is the best). > If so, I would need to know cpu usage with better resolution than 1 > minute. Is it possible (using squid API rather than system calls)? Won't give you very accurate information anyway.. > 2)

RE: Little questions

2003-11-07 Thread Gonzalo A. Arana
> On Fri, 7 Nov 2003, Gonzalo A. Arana wrote: > > > 1) make statCPUUsage public? (I guess this is the best). > > If so, I would need to know cpu usage with better resolution than 1 > > minute. Is it possible (using squid API rather than system calls)? > > Won't give you very accurate informatio

RE: Little questions

2003-11-07 Thread Henrik Nordstrom
On Fri, 7 Nov 2003, Gonzalo A. Arana wrote: > Squid-3 does not have an API for running jobs asyncrhonously, right? Not really no. But if you limit yourself to platforms having threading support is is a normal inter-thread message problem. To my knowledge all platforms have threading support to

RE: Little questions

2003-11-07 Thread Robert Collins
On Sat, 2003-11-08 at 08:18, Gonzalo A. Arana wrote: > > My instinctive reaction is to run the compression & > > decompression in a separate thread. If the queue to the > > compression/decompression engine is > > large, decrease the compression level used. > > Good instinct :-) > Squid-3 does n