Skip to content

[Agent] Config file, binding execution to specific cores and minor bug fix #20

Merged
kox13 merged 12 commits intodevelfrom
agent/feat/uuid-and-config
Feb 3, 2026
Merged

[Agent] Config file, binding execution to specific cores and minor bug fix #20
kox13 merged 12 commits intodevelfrom
agent/feat/uuid-and-config

Conversation

@kox13
Copy link
Collaborator

@kox13 kox13 commented Jan 31, 2026

Closes #19

This PR introduces configurable CPU core affinity via a TOML-based configuration file and fixes an OS name detection bug.

Config file support

  • Added support for .conf configuration files using TOML syntax
  • Parsing is implemented using the header-only toml++ library
  • Currently supported option: core_affinity

CPU core binding

  • Added ability to bind the agent process to specific CPU cores using sched.h
  • Core affinity is configured via the core_affinity field in agent.conf
  • Supported formats:
    • core_affinity: [1, 2, 3]
    • core_affinity: [2]
    • core_affinity: ["5-10"]
    • core_affinity: ["4-10", "0-2"]
    • core_affinity: "all"

OS name detection

Fixed incorrect condition when checking the OS name.
starts_with() returns a boolean, so the comparison with == 0 was removed: line.starts_with("PRETTY_NAME=")

@kox13 kox13 self-assigned this Jan 31, 2026
@kox13 kox13 added bug Something isn't working enhancement New feature or request labels Jan 31, 2026
@kox13 kox13 added this to volta Jan 31, 2026
@kox13 kox13 moved this to In review in volta Jan 31, 2026
@kox13 kox13 linked an issue Jan 31, 2026 that may be closed by this pull request
@kox13 kox13 requested a review from varev-dev February 2, 2026 18:50
Copy link
Contributor

@varev-dev varev-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kox13 kox13 merged commit 51cd732 into devel Feb 3, 2026
1 check passed
@kox13 kox13 deleted the agent/feat/uuid-and-config branch February 3, 2026 16:24
@github-project-automation github-project-automation bot moved this from In review to Done in volta Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Agent] Allow binding agent execution to specific logical cores

2 participants