You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nomad shouldn't override taskset defined inside binaries in raw_exec even when the reserved cores are configured in the client stanza
Reproduction steps
Client configuration
client {
reserved {
cores="1"
}
}
In the raw_exec driver a C++ binary is run, this binary spawns multiple threads and one of them has the affinity defined by the binary itself using the sched_setaffinity
But if we have this configuration on Nomad client, when we run the binary it overwrites the taskset leaving the thread to run only on non-reserved cores.
Expected Result
Nomad does not taskset on threads that has specific affinity in the binary code.
Nomad version
Operating system and Environment details
Issue
Nomad shouldn't override taskset defined inside binaries in
raw_exec
even when the reserved cores are configured in the client stanzaReproduction steps
Client configuration
In the
raw_exec
driver a C++ binary is run, this binary spawns multiple threads and one of them has the affinity defined by the binary itself using thesched_setaffinity
eg.:
But if we have this configuration on Nomad client, when we run the binary it overwrites the taskset leaving the thread to run only on non-reserved cores.
Expected Result
Nomad does not taskset on threads that has specific affinity in the binary code.
Actual Result
Nomad overwrites the affinity of the thread.
EXTRA DETAILS
I've experiment the core isolation feature over the following settings:
Client config cores = "0,2-7" & NOMAD_CPU_CORES="0-7"
Client config cores = "1" & Job NOMAD_CPU_CORES="0-7" & resources.cores = 1
No specific Client config & Job NOMAD_CPU_CORES="0,2-7" ( THIS makes me think the NOMAD_CPU_CORES is not working as intended)
The text was updated successfully, but these errors were encountered: