#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

#113 in Concurrency

Download history 5/week @ 2019-01-11 20/week @ 2019-01-18 33/week @ 2019-01-25 32/week @ 2019-02-01 6/week @ 2019-02-08 1/week @ 2019-02-15 3/week @ 2019-02-22 52/week @ 2019-03-01 21/week @ 2019-03-08 18/week @ 2019-03-15 42/week @ 2019-03-22 11/week @ 2019-04-05 3/week @ 2019-04-12 11/week @ 2019-04-19

78 downloads per month
Used in 1 crate

MIT license

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

~1MB
~15K SLoC