Commit e7f31f4
timeseries: Added logic for core pinning (#2087)
This PR adds an optional CPU core-pinning entrypoint for the time-series-analytics container, allowing the service to prefer specific core types (E-cores/P-cores/low-power cores) via the CORE_PINNING environment variable.
Changes:
- Switch the container entrypoint from python3 main.py to a new /app/run.sh wrapper that optionally applies taskset.
- Add a core-type detection script (detect-cores.sh) used by the entrypoint when CORE_PINNING is set to a supported core class.
- Update the Dockerfile to copy the new scripts into the image and document the CORE_PINNING behavior.
Signed-off-by: Vellaisamy, Sathyendran <sathyendran.vellaisamy@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent d42567e commit e7f31f4
3 files changed
Lines changed: 539 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
130 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
0 commit comments