# Performance effects in a ROOT-based data acquisition

**URL:** <https://root-forum.cern.ch/t/performance-effects-in-a-root-based-data-acquisition/45519>\
**Category:** ROOT\
**Tags:** cmake\
**Created:** [June 23, 2021, 11:51am UTC](https://root-forum.cern.ch/t/performance-effects-in-a-root-based-data-acquisition/45519 "2021-06-23T11:51:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [June 28, 2021, 11:03am UTC](https://root-forum.cern.ch/t/performance-effects-in-a-root-based-data-acquisition/45519/7 "2021-06-28T11:03:50Z")

</div>

Ok, I now reserved in the GRUB isolcpus=0-3. And then run with taskset --cpu-list 0-3.

However, I checked and all my three threads (see [TRentrantRWlock thread lock, program freezes - #6 by ferhue](https://root-forum.cern.ch/t/trentrantrwlock-thread-lock-program-freezes/45116/6)) are running on the same CPU, namely number 0.

Is there a way to set the cpu affinity in a TThread class, in a similar way as done with std::thread [https://stackoverflow.com/a/57620568/7471760](https://stackoverflow.com/a/57620568/7471760)? → I created a PR [Allow specifying pthread CPU affinity by ferdymercury · Pull Request #8557 · root-project/root · GitHub](https://github.com/root-project/root/pull/8557)

---

_[View the full topic](https://root-forum.cern.ch/t/performance-effects-in-a-root-based-data-acquisition/45519)._
