#cpu #affinity

nightly cpu-affinity

Cross-Platform CPU affinity

10 unstable releases (3 breaking)

Uses old Rust 2015

0.4.4 Feb 4, 2019
0.4.3 Feb 2, 2019
0.4.2 Jan 31, 2019
0.3.2 Jan 28, 2019
0.1.1 Dec 3, 2018

#5 in #affinity

Download history 6/week @ 2023-10-18 21/week @ 2023-10-25 9/week @ 2023-11-01 19/week @ 2023-11-08 10/week @ 2023-11-15 22/week @ 2023-11-22 36/week @ 2023-11-29 4/week @ 2023-12-06 16/week @ 2023-12-13 14/week @ 2023-12-20 23/week @ 2023-12-27 3/week @ 2024-01-03 5/week @ 2024-01-10 12/week @ 2024-01-17 31/week @ 2024-01-24 22/week @ 2024-01-31

70 downloads per month
Used in message-dispatch

MIT and maybe AGPL-3.0

55KB
836 lines

cpu-affinity

CPU affinity for processes and threads across many platforms and Operating Systems, including:-

  • Android
  • BitRig (does nothing)
  • DragonFlyBSD
  • Emscripten
  • Fuschia
  • FreeBSD
  • iOS
  • MacOS (does nothing, but special logic for setting thread affinity groups)
  • Linux
  • NetBSD
  • OpenBSD (does nothing)
  • Windows

Provides logic for finding out the valid set of logical cores (hyper threads) for a process, managing per-logical-core data sets, and more.

Licensing

The license for this project is MIT.


lib.rs:

cpu-affinity

CPU affinity for processes and threads across many platforms and Operating Systems, including:-

  • Android
  • BitRig (does nothing)
  • DragonFlyBSD
  • Emscripten
  • Fuschia
  • FreeBSD
  • iOS
  • MacOS (does nothing, but special logic for setting thread affinity groups)
  • Linux
  • NetBSD
  • OpenBSD (does nothing)
  • Windows
  • uclibc

Dependencies

~0–0.9MB
~14K SLoC