Search squid archive

Re: Squid 3.3.2 and SMP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----

> From: Alex Rousskov <rousskov@xxxxxxxxxxxxxxxxxxxxxxx>
> To: squid-users@xxxxxxxxxxxxxxx
> Cc: 
> Sent: Saturday, 9 March 2013 6:38 AM
> Subject: Re:  Squid 3.3.2 and SMP
> 
> On 03/08/2013 08:11 AM, Adam W. Dace wrote:
>>  Does anyone have a simple example configuration for running Squid
>>  3.3.2 with multiple workers?
> 
> You can just add "workers 2" to squid.conf.default.
> 
> Alex.

This may be offtopic. I do not know.

I may also sound stupid. But is it possible that both workers will occupy same CPU?

Or is it that operating system takes care of it? Or does squid take care of it?

If OS, how does OS (atleast Linux) do it? Does it alternate CPU for every new process.

Lets say I have two cores and I use "workers 2" in squid.conf.

Squid forks 1st worker and it lands on 1st core.
But in between some other process starts (or forks) which lands on 2nd core
Now squid forks 2nd worker and lands on 1st again?!

Is this possible? (kind of race condition)

Thanks and regards,

Amm.




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux