回复:Re: What to know detail about why Squid use single process.

From: <maer727@dont-contact.us>
Date: Fri, 26 Apr 2002 14:53:08 +0800 (CST)

Thanks, Joe pal!

What means "diskd" and "aufs" in your reply?

Best regards,
George Ma

----- 原文 -----
From: Joe Cooper
To: David Luyer
Cc: squid-dev@squid-cache.org
Subject: Re: What to know detail about why Squid use single process.
Sent: Thu Apr 25 00:37:46 CST 2002

> David Luyer wrote:
> > Has anyone investigated extending the squid model to use multiple
> > threads, without a complete redesign?
> >
> > One approach which occurred to me was to have some kind of
> > "eventAddImmediate", and have commselect/commpoll call that when they
> > find an fd is ready, and then have some 'worker threads' which pick
> > up pending events. Basically one 'master' thread and a number of
> > 'worker' threads.
> >
> > It would mean making some parts of the code more thread-safe, however
> > on a 4+ CPU machine I'd expect a speedup. On less than that, diskd,
> > the kernel, etc should be efficiently using the resources already.
>
> Actually Squid doesn't even use two processors effectively (even with
> aufs or diskd). More like 15%-20% or so. It would be very nifty to
> have a 'thread per CPU' model, and it would take Squid into a new level
> of scalability for MP machines. I don't have a real solid idea of how
> difficult or intrusive such code changes would be, though.
>
> --
> Joe Cooper <joe@swelltech.com>
> http://www.swelltech.com
> Web Caching Appliances and Support
>
Received on Fri Apr 26 2002 - 00:53:12 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:20 MST