LWN.net Logo

Linux support for ARM big.LITTLE

Linux support for ARM big.LITTLE

Posted Feb 18, 2012 0:47 UTC (Sat) by dlang (✭ supporter ✭, #313)
In reply to: Linux support for ARM big.LITTLE by khim
Parent article: Linux support for ARM big.LITTLE

I'm trying to address the general problem, not just a tablet specific problem.

waking from some sleep modes may take 10ms, so if you have deadlines like that you better not put the processor to sleep in the first place.

I also think that a delay at the start of an app is forgivable, so if the system needs the faster cores to render things, it should find out quickly, start up those cores, and continue.

I agree that if you can specify an ordered list of configurations and hand that to the kernel you may be able to have the kernel use that.

on the other hand, the example that you give:

> Wrong criteria. If Cortex-A7 core can calculate the next frame in 10ms then there are no need to wake up Cortex-A15 core even if for these 10ms Cortex-A7 is 100% busy.

sort of proves my point. how can the kernel know that the application completed it's work if it's busy 100% of the time? (especially if you have an algorithm that will adapt to not having quite enough processor and will auto-scale it's quality)

this sort of thing requires knowledge that the kernel does not have.

Also, the example of the 'turbo mode' where you can run some cores faster, but at the expense of not having the thermal headroom to run as many cores. In every case I am aware of, 'turbo mode' actually reduces the clock cycles available overall (and makes the cpu:memory speed ratio worse, costing more performance), but if you have a single threaded process that will finish faster in turbo mode, it may be the right thing to do to switch to that mode.

it doesn't matter if you are a 12 core Intel x86 monster, or a much smaller ARM chip.


(Log in to post comments)

Linux support for ARM big.LITTLE

Posted Feb 18, 2012 11:09 UTC (Sat) by khim (subscriber, #9252) [Link]

it doesn't matter if you are a 12 core Intel x86 monster, or a much smaller ARM chip.

Well, sure. But differences between interactive tasks and batch processing modes are acute. With batch processing you are optimizing time for the [relatively] long process. With interactive tasks you optimize work in your tiny 16ms timeslice. It makes no sense to produce result in 5ms (and pay for it) but if you spent 20ms then you are screwed.

Today the difference is not so acute because the most power-hungry part of the smartphone or tablet is LCD/OLED display. But if/when technologies like Mirasol will be adopted these decisions will suddenly start producing huge differences in the battery life.

Linux support for ARM big.LITTLE

Posted Feb 18, 2012 11:58 UTC (Sat) by dlang (✭ supporter ✭, #313) [Link]

agreed, I'd love to have a passive LCD display netbook that was able to transparently sleep between keystrokes, but realistically we are a long way from that in terms of the hardware capabilities, and even further away from that in terms of being able to predict the future workloads correctly.

i don't think we are ever going to get away from having to make the choice between keeping things powered up to be able to be responsive, and powering things down aggressively to save power.

Linux support for ARM big.LITTLE

Posted Feb 20, 2012 12:17 UTC (Mon) by khim (subscriber, #9252) [Link]

Hardware is in labs already (and should reach the market in a few years), it's time to think about software side.

If we are talking about small tweaks then such hardware it not yet on the radar, but if we plan to create the whole new subsystem (task which will itself need two or three years to mature) then it must be considered.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds