Skip to content

[TASK][Timpani-n] Assign tasks to specific CPU cores via affinity masks #117

@LGSI-KarumuriHari

Description

@LGSI-KarumuriHari

📝 Task Description

Implement CPU core assignment and isolation using affinity masks.

📋 Checklist

  • Implement CPU affinity setting
  • Use sched_setaffinity() system call
  • Verify affinity application
  • Monitor task CPU placement
  • Handle affinity conflicts
  • Support dynamic affinity updates

🔗 Related Requirement

Relates to #25 (Task Management)
Relates to #16 (Implement Task Management)

📐 Implementation Guidelines

  • Functional Requirement: FR-2.3.1 - Assign tasks to specific CPU cores via affinity masks
  • Component: timpani-n/Execution Layer/Task Manager
  • Apply affinity before first task activation
  • Use CPU_SET macros for mask manipulation
  • Verify affinity with sched_getaffinity()
  • Log affinity assignment

🧪 Testing Method

  • Unit test: Verify affinity mask operations
  • Integration test: Confirm tasks run on assigned CPUs
  • Migration test: Ensure no cross-CPU migration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions