#include "squid.h"
#include "base/TextException.h"
#include "CpuAffinity.h"
#include "CpuAffinityMap.h"
#include "CpuAffinitySet.h"
#include "debug/Stream.h"
#include "globals.h"
#include "SquidConfig.h"
#include "tools.h"
#include <algorithm>
Go to the source code of this file.
Functions | |
void | CpuAffinityInit () |
set CPU affinity for this process on startup More... | |
void | CpuAffinityReconfigure () |
reconfigure CPU affinity for this process More... | |
void | CpuAffinityCheck () |
check CPU affinity configuration and print warnings if needed More... | |
Variables | |
static CpuAffinitySet * | TheCpuAffinitySet = nullptr |
Function Documentation
◆ CpuAffinityCheck()
void CpuAffinityCheck | ( | ) |
Definition at line 49 of file CpuAffinity.cc.
References Config, SquidConfig::cpuAffinityMap, DBG_IMPORTANT, debugs, InDaemonMode(), Must, NumberOfKids(), and CpuAffinityMap::processes().
Referenced by mainReconfigureFinish(), and SquidMain().
◆ CpuAffinityInit()
void CpuAffinityInit | ( | ) |
Definition at line 26 of file CpuAffinity.cc.
References CpuAffinitySet::apply(), CpuAffinityMap::calculateSet(), Config, SquidConfig::cpuAffinityMap, InDaemonMode(), KidIdentifier, Must, and TheCpuAffinitySet.
Referenced by CpuAffinityReconfigure(), and SquidMain().
◆ CpuAffinityReconfigure()
void CpuAffinityReconfigure | ( | ) |
Definition at line 38 of file CpuAffinity.cc.
References CpuAffinityInit(), TheCpuAffinitySet, and CpuAffinitySet::undo().
Referenced by mainReconfigureFinish().
Variable Documentation
◆ TheCpuAffinitySet
|
static |
Definition at line 23 of file CpuAffinity.cc.
Referenced by CpuAffinityInit(), and CpuAffinityReconfigure().