Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752721AbaAGQU3 (ORCPT ); Tue, 7 Jan 2014 11:20:29 -0500 Received: from service87.mimecast.com ([91.220.42.44]:45554 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752290AbaAGQTy (ORCPT ); Tue, 7 Jan 2014 11:19:54 -0500 From: Morten Rasmussen To: peterz@infradead.org, mingo@kernel.org Cc: rjw@rjwysocki.net, markgross@thegnar.org, vincent.guittot@linaro.org, catalin.marinas@arm.com, morten.rasmussen@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [9/11] use-case 3: Video playback on Android Date: Tue, 7 Jan 2014 16:19:45 +0000 Message-Id: <1389111587-5923-10-git-send-email-morten.rasmussen@arm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1389111587-5923-1-git-send-email-morten.rasmussen@arm.com> References: <1389111587-5923-1-git-send-email-morten.rasmussen@arm.com> X-OriginalArrivalTime: 07 Jan 2014 16:19:51.0580 (UTC) FILETIME=[4AF06DC0:01CF0BC4] X-MC-Unique: 114010716195214601 Content-Type: text/plain; charset=WINDOWS-1252 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id s07GKZ90019860 Depending on the platform hardware video is a low to medium load periodic application. There may be some variation in the load depending on the video codec, content, and resolution. The load pattern is roughly synchronized to the video frame-rate (typically 30 FPS). Video playback also includes audio playback as part of the workload. Performance Criteria Video decoding must be done in time to avoid dropped frames. Similarly, audio must be decoded in time to never let the audio buffer run empty. Task behaviour Based on video playback (720p and 1080p) on a modern ARM SoC, the cpu load is generally modest. Video resolution has only a minor impact on the overall cpu load. The load pattern is repeating every ~33 ms. Rendering task: The main Android graphics rendering task accounts for about 18% of the total cpu load. It is active for about ~6-8 ms each period during which it is blocking a couple of times. It appears to run in sync with a handful of other tasks. Most of which are related to timed queues in Android and graphics. Timed events queue tasks: An Android TimedEventQueue task for each cpu is active during video playback. In total, they account for around 30% of the cpu load. They are all following the 33 ms period and run for 250-700 us when scheduled (average). Audio decoding task: Accounts for ~10% of the cpu load. Load pattern repeat every ~23 ms. Since this is different from the period of video rendering, this may run in parallel with video rendering form time to time. Audio decoding runs for about 2 ms when scheduled each period. A lot of smaller tasks are involved in the periodic load pattern. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/