mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
Improve CPU pinning
This commit is contained in:
parent
5057ba73bd
commit
fb607ac0c2
20 changed files with 219 additions and 143 deletions
|
|
@ -16,7 +16,7 @@ name = "aquatic_udp"
|
|||
name = "aquatic_udp"
|
||||
|
||||
[features]
|
||||
cpu-pinning = ["aquatic_common/cpu-pinning"]
|
||||
cpu-pinning = ["aquatic_common/with-hwloc"]
|
||||
|
||||
[dependencies]
|
||||
aquatic_cli_helpers = "0.2.0"
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
pin_current_if_configured_to(
|
||||
&config.cpu_pinning,
|
||||
config.socket_workers,
|
||||
config.request_workers,
|
||||
WorkerIndex::RequestWorker(i),
|
||||
);
|
||||
|
||||
|
|
@ -104,6 +105,7 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
pin_current_if_configured_to(
|
||||
&config.cpu_pinning,
|
||||
config.socket_workers,
|
||||
config.request_workers,
|
||||
WorkerIndex::SocketWorker(i),
|
||||
);
|
||||
|
||||
|
|
@ -130,7 +132,8 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
pin_current_if_configured_to(
|
||||
&config.cpu_pinning,
|
||||
config.socket_workers,
|
||||
WorkerIndex::Other,
|
||||
config.request_workers,
|
||||
WorkerIndex::Util,
|
||||
);
|
||||
|
||||
workers::statistics::run_statistics_worker(config, state);
|
||||
|
|
@ -149,7 +152,8 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
pin_current_if_configured_to(
|
||||
&config.cpu_pinning,
|
||||
config.socket_workers,
|
||||
WorkerIndex::Other,
|
||||
config.request_workers,
|
||||
WorkerIndex::Util,
|
||||
);
|
||||
|
||||
for signal in &mut signals {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue