Skip to content

isolated_cores variable does not understand the "N" value #831

@eroussy

Description

@eroussy

Abstract

On a running system with the realtime-virtual-host profile selected and the isolated_cores variable set to "4-N", the kernel command line contains the argument irqaffinity=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15.
This argument should be irqaffinity=0,1,2,3.

Work around

Switching the variable to isolated_cores=4-15 corrects the problem

Investigation

The irqaffinity kernel cmdline argument is constructed using the non_isolated_cores tuned variable, which itself is defined as non_isolated_cores=${f:cpulist_invert:${isolated_cores}}.

The cpulist_invert function relies on the cpulist_unpack function, whose documentation does not mention the "N" value.
Note that this value is defined in the kernel command line documentation : https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html#cpu-lists

System

  • Debian 13
  • tuned version 2.25.1

I don't know whether this is a bug report or a feature request. Do you plan to add support for the "N" value ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions