Linux Format

Kernel Watch

Jon Masters summarises the latest happenings in the Linux kernel community, for your reading pleasure.

-

“Perhaps the most interestin­g features in 5.0 are the energy aware scheduler Patches”

Linus Torvalds announced what is likely to be the final RC (Release Candidate) for the 5.0 kernel cycle. Linux 5.0-rc7 includes relatively few driver and platform fixes, typically for this late in the release process.

As we covered previously, the new major version numbering is more about convenienc­e rather than some earthshatt­ering new set of features. In fact, 5.0 is on the smaller side compared to other recent releases. Perhaps the most interestin­g features added to 5.0 are the Energy Aware Scheduler (EAS) patches. These will particular­ly benefit mobile device performanc­e, including Android phones.

EAS patches have been under developmen­t for many years. For a while it wasn’t entirely clear that they would be merged into upstream due to the changes that they introduce into some fairly fundamenta­l assumption­s made by the kernel. Traditiona­lly, Linux ran on what are known as symmetric or homogeneou­s systems formed from one or more cores, each of equal capability and collective­ly sharing certain resources. With the advent of its BIG.LITTLE architectu­re, ARM disrupted the status quo by introducin­g heterogene­ity into the mainstream. In this new model, a system is formed from a mix of cores having different performanc­e capability. They all can run the same software, but some are more powereffic­ient than their brawnier peers.

The basic idea is that a device such as a phone spends much of its time doing very little (in a pocket), but sometimes has to do a lot very quickly (rendering a webpage, playing a video, and so on). To improve battery life, the processor inside the phone can be built from a mixture of simple, power-efficient cores that handle background tasks, and some bigger brawny cores for more intensive tasks. Traditiona­l Linux kernels would treat all of these cores the same, scheduling work equally across each of them. This would in some cases actually decrease system performanc­e over having a smaller number of bigger cores.

EAS overcomes the challenges of heterogene­ous systems by using a separate Energy Model (EM) that describes the relative performanc­e of each core in terms of how much energy it needs (in joules) to do a certain amount of work. EAS enables the scheduler to understand the notion of ‘capacity’ and to place processes where they can get the most benefit using “energy-aware task placement”. It is already shipping in a number of recent Android phones but is likely to see use beyond the mobile market with time.

Newspapers in English

Newspapers from Australia