#cpu #affinity

nightly cpu-affinity

Cross-Platform CPU affinity

10 unstable releases (3 breaking)

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

#22 in #cpu

Download history 21/week @ 2019-12-13 11/week @ 2019-12-27 62/week @ 2020-01-10 41/week @ 2020-01-17 4/week @ 2020-01-31 12/week @ 2020-02-07 2/week @ 2020-02-14 32/week @ 2020-02-21 18/week @ 2020-02-28 20/week @ 2020-03-06 10/week @ 2020-03-13 51/week @ 2020-03-20 11/week @ 2020-03-27

83 downloads per month
Used in message-dispatch

MIT and maybe AGPL-3.0

54KB
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

~7–560KB
~11K SLoC