Skip to content

[Feature Request] Configuration option for Task affinity #1287

@mike919192

Description

@mike919192

I have been doing testing with using the TCP library with the SMP kernel (zynq port, 2 cores). I've already reported over on the FreeRTOS forums that the TCP library right now requires configRUN_MULTIPLE_PRIORITIES to be set to 0, otherwise an assertion is triggered during initialization. Right now I'm not too concerned with investigating the assertion, I have just been finding configuration that allows TCP to run with the SMP kernel as it is.

I have been testing for several weeks now with configRUN_MULTIPLE_PRIORITIES set to 0 and everything seems to be working properly. Now the next step is that I want to set configRUN_MULTIPLE_PRIORITIES to 1, and use the task core affinity feature to prevent the necessary tasks from running concurrently.

Just for backround information, these tasks seem to need affinity set:

  • User task which creates sockets (pinned to core 0)
  • IP Task (pinned to core 0)
  • Zynq port GEM task (pinned to core 0)

Notably I have 1 task for reading and 1 task for writing to a socket, and these do need seem to require set affinity, but I will continue to test to be sure.

Currently there is no configuration to set the affinity for the IP task and the Zynq port GEM task. Would it be OK to allow a configuration for setting the task affinity of those 2 tasks?

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