Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 10:50:33 -0800 (PST)
From:      Mohan Srinivasan <mohan_srinivasan@yahoo.com>
To:        freebsd-net@freebsd.org, jbehl@fastclick.com
Subject:   %cpu in system - squid performance in FreeBSD 5.3
Message-ID:  <20050111185033.73879.qmail@web80602.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
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?20050111185033.73879.qmail>