Page MenuHomeVyOS Platform

Drop static smp-affinity for a more dynamic way using tuned
Closed, ResolvedPublicFEATURE REQUEST


After migrating the ethernet interfaces from the good old Perl days the smp-affinity node yet has no effect anymore as the code is still missing (my bad, sorry).

I wonder if it is still relevant in current NOS devices as CPUs can be added dynamically on virtualized devices.

I suggest to drop the smp-affinity node and rather use tuned instead with the network-throughput or network-latency profile

  • network-throughput: Profile for throughput network tuning. It is based on the throughput-performance profile. It additionaly increases kernel network buffers.
  • network-latency: Profile for low latency network tuning. It is based on the latency-performance profile. It additionaly disables transparent hugepages, NUMA balancing and tunes several other network related sysctl parameters.

I'd set network-throughput as the default on a new set system option performance <throughput | latency> CLI node which is present in the default configuration.


Difficulty level
Normal (likely a few hours)
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Config syntax change (migratable)
Issue type
Improvement (missing useful functionality)

Event Timeline

c-po triaged this task as Wishlist priority.
c-po created this task.
c-po changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Config syntax change (migratable).

it sounds good to me.
I personally think the days with manually locking nic queues to cpu's is a bit outdated and we need something more dynamic.
After reading a bit on tuned i give my thumbs up

erkin set Issue type to Improvement (missing useful functionality).Aug 29 2021, 12:20 PM
erkin removed a subscriber: Active contributors.