[PATCH] D47977: [Fuzzer] First step to thread affinity

Dmitry Vyukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 9 03:30:25 PDT 2018


dvyukov added a comment.

> Well on Linux you can check process infos on /proc/<proc>/status I believe but that might be overkill.

Besides this being overkill, it also does not provide enough info. And you simply may not have permissions to read it. And you may be running inside of pid namespace. And two processes can do lock-step dense: both overload cpu 0, both decide to jump to cpu 1, both overload cpu 1, both decide to jump to cpu 0, etc.

Only OS has the information and means to do this properly and efficiently.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D47977





More information about the llvm-commits mailing list