[RFC] Scheduler recorder and playback
Yadwinder Singh Brar
yadi.brar01 at gmail.com
Thu Mar 8 17:40:12 UTC 2012
On Thu, Mar 8, 2012 at 6:50 PM, Pantelis Antoniou
<panto at antoniou-consulting.com> wrote:
> Hi there,
> There's considerable activity in the subject of the scheduler lately and how to
> adapt it to the peculiarities of the new class of hardware coming out lately,
> like the big.LITTLE class of devices from a number of manufacturers.
> The platforms that Linux runs are very diverse, and run differing workloads.
> For example most consumer devices will very likely run something like Android,
> with common use cases such as audio and/or video playback. Methods to achieve
> lower power consumption using a power aware scheduler are under investigation.
> Similarly for server applications, or VM hosting, the behavior of the scheduler
> shouldn't have adverse performance implications; any power saving on top of that
> would be a welcome improvement.
> The current issue is that scheduler development is not easily shared between
> developers. Each developer has their own 'itch', be it Android use cases, server
> workloads, VM, etc. The risk is high of optimizing for one's own use case and
> causing severe degradation on most other use cases.
> One way to fix this problem would be the development of a method with which one
> could perform a given use-case workload in a host, record the activity in a
> interchangeable portable trace format file, and then play it back on another
> host via a playback application that will generate an approximately similar load
> which was observed during recording.
I believe many people would have had this simple idea, but I don't know why,
or if, it's bad. So I am going to ask.
Why not have much coarser, but deterministic, load patterns using user
(perhaps modified to log important characteristics of execution) ?
We could have, say, three sets of stress patterns one each for Server, Desktop
and Mobile. Only deterministic would be top-level usage pattern (say by having
some app-spawning script running from init, with least or none
Say the 'Mobile-profile' script could spawn multimedia playback,
3d game playback, storage access and suspend/resume cycles in some parallel
and serial manner. Each task at the end tells how it was treated
during its lifetime
(total dropped frames, average latency, overall power consumed etc). From which
we calculate a 'GPA'.
For any modification in the scheduler, we could see how it affects the
for each profile running on respective reference platforms.
ps: I had to drop Amit Kucheria <<amit.kucheria at li>, otherwise my post
Jo darr gaya, so marr gaya!
More information about the linaro-kernel