Re: [squid-users] Re: deep understanding of squid smp with disker and worker

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 16 Feb 2014 02:14:22 +1300

On 16/02/2014 12:38 a.m., Dr.x wrote:
> ANOTHER QUESTION ,
>
> does mapping cpu numbers make a differs ??

No.

> also at the orther side , if i have 3 aufs hardisk and need to map each
> aufs process to worker
> dos mapping aufs hardsisk workers can make differs ??

Unknown.

AUFS uses threads, the operating system will spread those threads out
over multiple CPU cores all by itself. So any mapping you do will
probably get in its way. YMMV.

>
> what is the best method to use or ehat i have to avoid ?

Avoid mapping more than one kid to the same CPU, or they will both
suffer when its gets loaded.

Reserve at least one CPU for the system kernel and services.

If you have helpers processes plugged into Squid keep in mind they need
CPU resources too. Reserving some CPU(s) for their use may be necessary.

Each Squid-3.2+ worker is single-threaded in the same way that older
Squid-2.x used to be single-threaded applications. They just share a lot
of memory state like cache indexes for better service.
 Keep that in mind when designing everything.

Cheers
Amos
Received on Sat Feb 15 2014 - 13:14:31 MST

This archive was generated by hypermail 2.2.0 : Sat Feb 15 2014 - 12:00:05 MST