Re: squid-3.0-PRE3-20031008 w epoll bug?

2003-10-15 Thread Robert Collins
On Thu, 2003-10-16 at 03:54, David Nicklay wrote: > Hi, > I have been looking at this in a little more detail now. Currently, I > am using read_handler and write_handler as variables to make decisions > about what epoll is interested in inside of the kernel. Now I can see > that this is not a

Re: squid-3.0-PRE3-20031008 w epoll bug?

2003-10-15 Thread David Nicklay
Hi, I tested your patch, but so far at least I don't see it doing anything for my CPU load. I tested this by using wget to fetch a 64 Megabyte file and pausing the download midway through. squid still kept on using 100% CPU no matter how long I paused the download. It didn't go down until

Re: squid-3.0-PRE3-20031008 w epoll bug?

2003-10-14 Thread David Nicklay
Hi, I did some checking on the source code, and can't find anything that sets read_handler/write_handler except disk.cc. I am compiling a 2.4.21+epoll kernel to test the patch. David Nicklay wrote: Hi, The early epoll API was virtual impossible to write for, because it did not do an initial

Re: squid-3.0-PRE3-20031008 w epoll bug?

2003-10-14 Thread Gonzalo Arana
Hi, On Mon, 2003-10-13 at 09:37, Robert Collins wrote: > On Sat, 2003-10-11 at 06:30, Gonzalo Arana wrote: > > Hi, > > > > (I'm back to squid-gzip task now). > > I come up to this situation: > > > > squid 3.0-PRE3-20031008 with epoll > > kernel 2.4.21 patched with > > http://www.xmailserver.org

Re: squid-3.0-PRE3-20031008 w epoll bug?

2003-10-14 Thread David Nicklay
Hi, The early epoll API was virtual impossible to write for, because it did not do an initial poll on new file descriptors you register an interest for, so it could not know about notifications that happened before then. I just about tore my hair out trying to code around that, and still had

Re: squid-3.0-PRE3-20031008 w epoll bug?

2003-10-13 Thread Robert Collins
On Sat, 2003-10-11 at 06:30, Gonzalo Arana wrote: > Hi, > > (I'm back to squid-gzip task now). > I come up to this situation: > > squid 3.0-PRE3-20031008 with epoll > kernel 2.4.21 patched with > http://www.xmailserver.org/linux-patches/epoll-lt-2.4.21-0.18.diff > > When a client requests a very

squid-3.0-PRE3-20031008 w epoll bug?

2003-10-10 Thread Gonzalo Arana
Hi, (I'm back to squid-gzip task now). I come up to this situation: squid 3.0-PRE3-20031008 with epoll kernel 2.4.21 patched with http://www.xmailserver.org/linux-patches/epoll-lt-2.4.21-0.18.diff When a client requests a very long object (such as a video), squid uses 100% of CPU. It was cause