# Threading (different worker threads per interface?)

**URL:** <https://forum.suricata.io/t/threading-different-worker-threads-per-interface/866>\
**Category:** Uncategorized\
**Created:** [November 30, 2020, 7:38pm UTC](https://forum.suricata.io/t/threading-different-worker-threads-per-interface/866 "2020-11-30T19:38:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jweeks](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jweeks](https://forum.suricata.io/u/jweeks)\
**Post date:** [November 30, 2020, 7:38pm UTC](https://forum.suricata.io/t/threading-different-worker-threads-per-interface/866/1 "2020-11-30T19:38:17Z")

</div>

Is it possible to have each interface use differently pinned worker threads?

In the af-packet block, I can configure the number of threads per interface, and then there is a global “threading” block, which can be used to pin threads to cores.

But what if, for example, I wanted eth0 to use 12 worker threads pinned to cores 0-11, and then eth1 to use 12 work threads pinned to cores 12-23.

Is that possible with the current configuration set?

Thanks,  
Jeff

---

<div class="post-metadata">

**Author:** ![pevma](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/pevma/32/29_2.png) [@pevma](https://forum.suricata.io/u/pevma)\
**Post date:** [November 30, 2020, 8:43pm UTC](https://forum.suricata.io/t/threading-different-worker-threads-per-interface/866/2 "2020-11-30T20:43:12Z")

</div>

For the same interface you should follow

> **[9.5. High Performance Configuration — Suricata 6.0.0 documentation](https://suricata.readthedocs.io/en/suricata-6.0.0/performance/high-performance-config.html?highlight=performance)**

For different interfaces you can use the suggestion here

> <https://github.com/pevma/SEPTun/blob/master/SEPTun.rst#af-packet>
