Page MenuHomeVyOS Platform

vyos-netlinkd high CPU usage with lots of route updates
Closed, ResolvedPublicBUG

Description

Hi,

I've found this bug while updating some routers within AS203528 network from 2025.09.17-0018-rolling to 2026.05.05-0039-rolling

vyos-netlinkd is now using a lot of CPU, sometimes about half a core, sometimes a full CPU core.
This is only seen in routers that have full BGP tables, in my environment routers receive 3xfull IPv6 BGP tables from 4 different RRs, so there are a lot of route updates going on.

from ps aux:

root        4019 35.0  1.0  76004 65368 ?        Ss   May05 333:35 /usr/bin/python3 -u /usr/libexec/vyos/services/vyos-netlinkd

I had a locally-running LLM+harness inspect the strace of that process for me and create a patch (which when applied does seem to work just fine on my router and lowered the CPU usage back to normal). It's literal AI slop though. I've attached below the LLM-generated investigation + patch.

I still have routers running on old / new version so I could test whatever is needed or provide strace outputs.

Details

Version
2026.05.05-0039-rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)
Forum thread
https://forum.vyos.io/t/vyos-netlinkd-high-cpu-usage/17442

Event Timeline

fabrizziop created this object in space S1 VyOS Public.
fabrizziop created this object with edit policy "Custom Policy".
Viacheslav triaged this task as High priority.
c-po set Forum thread to https://forum.vyos.io/t/vyos-netlinkd-high-cpu-usage/17442.May 14 2026, 12:17 PM

@fabrizziop thank you for the patch. I would like to partly reuse it and add you as author. Your commit is authored by Fabrizio <fabrizzio@example.com> - is this what you wan't or what Name/Familyname/mail should I include.

In T8781#264420, @c-po wrote:

@fabrizziop thank you for the patch. I would like to partly reuse it and add you as author. Your commit is authored by Fabrizio <fabrizzio@example.com> - is this what you wan't or what Name/Familyname/mail should I include.

Hey!, please use Fabrizzio Petrucci - fabrizziopm@compumundohipermegared.one

Thanks!.

@fabrizziop https://github.com/vyos/vyos-1x/pull/5199 please sign the CLA by replying: I have read the CLA Document and I hereby sign the CLA as I put you in as author of the commit

commit lock optimisation is in https://github.com/vyos/vyos-1x/pull/5200 which we might backport to 1.5.1 earlier then vyos-netlinkd

Viacheslav changed the task status from Open to Needs testing.May 15 2026, 2:25 PM

Rolling release starting from 2026-05-19 will have all necessary fixes inside. I am keen to get the results.

I have upgraded all my routers already to 2026-05-16 rolling and the CPU usage problem was fixed.

Screenshot_20260518-174534.png (1×1 px, 290 KB)

vyos nightly 2026.05.19-0047-rolling seems to be now available.

@fabrizziop please also test with that version, which has the latest related changes.

@pasik I've just tested with 2026.05.19-0047-rolling - it is working fine as well, thanks!.