CPU Affinity

Created with Sketch.
< Alle Themen

CPU Affinity

Rust server, CPU affinity can be used to restrict certain server threads to specific cores. This can help boost efficiency by preventing multiple critical processes from competing for the same CPU resources. Additionally, CPU affinity is commonly employed to manage multiple servers running simultaneously on the same machine. By strategically assigning different servers to different cores, it ensures that each server operates optimally without undue interference from others, leading to more stable and responsive server performance overall.

To use the CPU Affinity function, click on CPU Affinity in MyRustServer.
There we see all CPU cores, starting with core 0.

In the example, I want to run my first server on cores 0-3 (4 cores)
Once we have selected the desired cores, we click on Save CPU Affinity and start the server.

You can now clearly see in the TaskManager that the server is running on the selected cores.

For my second server, I want the server to run on cores 4 to 7 (4 cores).
We do the same steps as described above and start the server.

Again, we can clearly see in the TaskManager that the server is running on the selected cores.

Inhaltsverzeichnis