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)

Event Timeline

c-po claimed this task.Wed, Nov 4, 5:18 PM
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).
runar added a subscriber: runar.Wed, Nov 4, 6:59 PM

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

pasik added a subscriber: pasik.Wed, Nov 4, 8:38 PM
c-po updated the task description. (Show Details)Thu, Nov 5, 7:56 PM
c-po closed this task as Resolved.Fri, Nov 20, 11:34 PM
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.Mon, Nov 23, 4:00 PM