RE: Sequential sever?

From: Williams Jon <WilliamsJon@dont-contact.us>
Date: Tue, 28 Sep 1999 08:14:31 -0500

I'm running Squid on several MP boxes, so I can say that it does use all of
them, although not in the way we're talking about below. Since it spawns
child processes (dnschildren, redirectors, authenticators, etc.), the child
processes will frequently run on different processors from their parent.
I've noticed that this helps here because the CPU-using functions tend to be
in those processes (i.e. doing regular expressions inside a redirector).

Of course, this only really matters if you have enough load to use those
other processors :-)

Jon

> -----Original Message-----
> From: Dancer [SMTP:dancer@zeor.simegen.com]
> Sent: Tuesday, September 28, 1999 3:13 AM
> To: Hossam El-Ashkar
> Cc: Avi Saxena; squid-users@ircache.net
> Subject: Re: Sequential sever?
>
> Hossam El-Ashkar wrote:
> >
> > Now that squid is known to be multithreaded or multitasked... Does it
> make
> > use of parallel processing if existing... I mean if there are multiple
> > processor on the machine running squid, does it make use of it? or it is
> > just the OS that distributes the multiple threads on the different
> > processors??
>
> It does make use of multiple processors (at least as of squid 2.2 it
> does). Various asynchronous operations can be scheduled on other cpus,
> though squid will do it's primary work on one.
>
> D
>
> > -------------------------------------------------
> > Hossam El-Ashkar
> > h_elashkar@ieee.org
> >
> > ----- Original Message -----
> > From: Dancer <dancer@zeor.simegen.com>
> > To: Avi Saxena <avis@infospinner.com>
> > Cc: <squid-users@ircache.net>
> > Sent: Tuesday, September 28, 1999 05:28
> > Subject: Re: Sequential sever?
> >
> > > Avi Saxena wrote:
> > > >
> > > > I just started to look into Squid log files -- it appears that Squid
> is
> > a
> > > > sequential server i.e. handles only one request at a time -- it is
> not
> > > > multi-threaded. Is it right?
> > >
> > > That's both correct and incorrect. Squid can service many requests
> > > simultaneously. From the point of view of the user, it's doing many
> > > requests at once. From the point of view of the code, it's only ever
> > > doing one thing at a time, but that's true in any multithreaded or
> > > multitasking system.
> > >
> > > So it would not be true to say that squid handles 'only one request at
> a
> > > time' from a broad perspective, since squid may be recieving data,
> > > caching or delivering data for multiple users and multiple requests
> > > without having to wait for any given request to terminate before
> another
> > > can be handled.
> > >
> > > D
> > >
> > >
Received on Tue Sep 28 1999 - 07:36:58 MDT

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