Squid configuration manual

Reference manual for squid's configuraiton directives

View the Project on GitHub

Index Alphabetical Index

Option Name:

cpu_affinity_map

Suggested Config:


Details:

Usage: cpu_affinity_map process_numbers=P1,P2,... cores=C1,C2,...

Sets 1:1 mapping between Squid processes and CPU cores. For example,

    cpu_affinity_map process_numbers=1,2,3,4 cores=1,3,5,7

affects processes 1 through 4 only and places them on the first
four even cores, starting with core #1.

CPU cores are numbered starting from 1. Requires support for
sched_getaffinity(2) and sched_setaffinity(2) system calls.

Multiple cpu_affinity_map options are merged.

See also: workers
Index Alphabetical Index