Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
saagarjha
4y ago
0 comments
Share
Presumably the AVX-512 code is something on your hot path, so I’m not sure waiting for a signal to reschedule the work is something you would want.
0 comments
default
newest
oldest
heavenlyblue
4y ago
You reschedule it only once so it doesn’t matter
saagarjha
OP
4y ago
I don’t see how? Once your quantum is up the thread gets put back into the scheduling pool and you have to do this all over again…
boardwaalk
4y ago
Couldn’t there be some flag on the thread that marks it as “P-core only”? Doesn’t seem hard. I don’t known Linux scheduler internals though.
pantalaimon
4y ago
Threads already have an affinity bit mask where you can select which cores they can be scheduled on.
https://man7.org/linux/man-pages/man2/sched_setaffinity.2.ht...
saagarjha
OP
4y ago
Right but then you’d just have all processes with that flag all the time.
1 more reply
heavenlyblue
4y ago
You don’t have to schedule your thread on another core at all
j
/
k
navigate · click thread line to collapse