Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 11:15:09 -0800
From:      Jeff Behl <jbehl@fastclick.com>
To:        Mohan Srinivasan <mohan_srinivasan@yahoo.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: %cpu in system - squid performance in FreeBSD 5.3
Message-ID:  <41E425BD.709@fastclick.com>
In-Reply-To: <20050111185033.73879.qmail@web80602.mail.yahoo.com>
References:  <20050111185033.73879.qmail@web80602.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Yes, I believe the kqueue version of squid would show much better 
results.  Unfortunately it fails to compile and I have yet the time to 
try mucking with it more.  I'll get back to the list when I am able to 
get it up and running...

jeff

Mohan Srinivasan wrote:

>Following up to a mail from Jeff Behl and Sean Chittenden back in Dec.
>
>http://lists.freebsd.org/pipermail/freebsd-net/2004-December/006074.html
>
>From your description, it looks like moving a kqueue based Squid will 
>help considerably (it looks like there is a version of Squid that
>is kqueue based - not sure how stable that is though). If you drop a quick 
>kernel profile, you will see most of the system CPU being spent in select() 
>caused polling of descriptors. In my previous experience with a Squid-based 
>proxy several years ago, once you dropped more than a couple of hundred 
>connections into select(), CPU utilization spiked sharply because of 
>the descriptor polling.
>
>We then hoisted Squid on top of a (homebrew) version of kqueue, which 
>caused system CPU to drop dramatically, because all the descriptor polling
>was avoided.
>
>mohan
>
>  
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41E425BD.709>