E/P-Core awareness

Hi,

just out of curiosity - now that many of the newer generation x64 CPUs have a big.LITTLE architecture, are there any plans of supporting them “properly” in the kernel? With properly I mean running low-priority background tasks on the E-cores and performance hungry foreground tasks on the P-cores.

As far as I’m aware, right now the Haiku kernel treats all cores the same, not matter if E or P?

With kind regards,
Egon

4 Likes

I’ve not seen concrete plans this, you can open a ticket on the bugtracker :slight_smile:

Edit: to further this a bit: the only thing the performance vs power save currently does is changing the way the cpu scheduler balances tasks, it can probably be changed to account for this

The scheduler does have some awareness of CPU topologies. I don’t think it tracks asymmetric SMP properly at present, though.

I was looking for an answer to this question, whether it’s a concept or an implemented topic. The core l.endian and b.endian are like -1 and 1.

Have a nice day.

Endianess is something completely different compared to big.LITTLE cpu architectures. Endianess describes the way words are layed out in memory. For example, x64 CPUs are little endian, which means that the most significant part of the word is at the lowest address.