3 ms·
> P&E cores have the same ISA support and threads can be moved freely between them. Wouldn't an illegal instruction fault suffice to flag a thread running on a
by rbanffy 5y ago
> P&E cores have the same ISA support and threads can be moved freely between them.
Wouldn't an illegal instruction fault suffice to flag a thread running on a mismatched core and allow it to be moved to a suitable one? Or do they lose state when the fault occurs?
- mastax 5y agoPeople are going to be running existing software (Windows 10 and Linux) which do not have support for Alder Lake. These schedulers don't know to handle the SIGILL. What you'd get instead is applications randomly crashing as their threads migrate to the E-cores. I'm sure they'll get there eventually, but they probably just didn't have enough time.
- rbanffy 5y agoNo existing scheduler does that, but it wouldn't be impossible to implement one that does.
- wmf 5y agoMaybe OSes could do that but they don't today.
- rbanffy 5y agoAt the moment they also don't differentiate between fast and slow cores either. It's interesting to route processes that need to be more responsive to the faster cores and dedicate the slower ones to more lag-tolerant things, a bit how mainframes route IO tasks to specialized processors or macOS routes system threads to the efficient cores, leaving the good ones to the user.
- jdsully 5y agoThey would also need to know which specific instructions are really invalid and which just don’t exist on this specific core. X86 doesn’t make that easy.
- rbanffy 5y agoCPU flags should take care of that. Besides, you can examine where the program counter was when the core encountered the invalid instruction. I wouldn't be surprised if the x86 would let us down here however. Wouldn't be the 8367th time.
- jdsully 5y agoThere’s no CPU flag to say “this instruction exists on another core”. X86 disassemblers are very complex if you want to handle more than just the happy path. X86 instructions can be up to 15 bytes long. Then there is the issue with new instructions that get added.