failed sched_getaffinity_threads attempt

Better eigen naming.
This commit is contained in:
Ciro Santilli
2018-07-22 19:54:56 +01:00
parent 787b989df7
commit 0dfbd93afe
4 changed files with 70 additions and 1 deletions

View File

@@ -1997,6 +1997,24 @@ and we observe that `info threads` shows the actual correct core on which the pr
We should also try it out with kernel modules: https://stackoverflow.com/questions/28347876/set-cpu-affinity-on-a-loadable-linux-kernel-module
TODO we then tried:
....
./run -c2 -F '/sched_getaffinity_threads.out'
....
and:
....
./rungdb-user kernel_module-1.0/user/sched_getaffinity_threads.out
....
to switch between two simultaneous live threads with different affinities, it just didn't break on our threads:
....
b main_thread_0
....
Bibliography:
* https://stackoverflow.com/questions/10490756/how-to-use-sched-getaffinity-and-sched-setaffinity-in-linux-from-c/50117787#50117787