{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "YouTube per-CPU CGroup residency analysis (with eas 1.2)\n", "=======================\n", "This is a run of top-of-tree Wahoo\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Populating the interactive namespace from numpy and matplotlib\n" ] } ], "source": [ "#!/usr/bin/env python\n", "%pylab inline\n", "import trappy\n", "from trace import Trace\n", "import logging\n", "import pandas as pd\n", "import numpy as np\n", "import os\n", "\n", "from conf import LisaLogging\n", "LisaLogging.setup(level=logging.ERROR)\n", "logging.info('#### Setup FTrace')\n", "path_to_html = \"/home/joelaf/repo/lisa-aosp/external/lisa/results/YouTube_eas12_4.4.56-g3a99b558e8c2/trace.html\"" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [], "source": [ "tr = Trace(None, path_to_html,\n", " cgroup_info = { \n", " 'cgroups': ['foreground', 'background', 'system-background', 'top-app', 'rt'],\n", " 'controller_ids': { 4: 'cpuset', 2: 'schedtune' }\n", " },\n", " events=[ 'sched_switch', 'cgroup_attach_task_devlib', 'cgroup_attach_task', 'sched_process_fork' ],\n", " normalize_time=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Total amount of time spent per Cgroup (schedtune)\n", "===========================\n", "(NaN is the idle task)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false, "scrolled": false }, "outputs": [ { "data": { "text/html": [ "
\n", " | cpu_0 | \n", "cpu_1 | \n", "cpu_2 | \n", "cpu_3 | \n", "cpu_4 | \n", "cpu_5 | \n", "cpu_6 | \n", "cpu_7 | \n", "total | \n", "
---|---|---|---|---|---|---|---|---|---|
schedtune | \n", "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " |
background | \n", "0.114796 | \n", "0.157250 | \n", "0.005520 | \n", "0.008088 | \n", "0.000000 | \n", "0.000000 | \n", "0.670740 | \n", "0.000047 | \n", "0.956441 | \n", "
foreground | \n", "3.046883 | \n", "3.017969 | \n", "1.439542 | \n", "0.896851 | \n", "0.583559 | \n", "0.102979 | \n", "0.498291 | \n", "0.406533 | \n", "9.992607 | \n", "
root | \n", "5.689420 | \n", "2.013840 | \n", "2.423268 | \n", "1.490792 | \n", "0.447084 | \n", "0.242111 | \n", "1.951480 | \n", "0.661130 | \n", "14.919125 | \n", "
top-app | \n", "0.343027 | \n", "0.168558 | \n", "0.092193 | \n", "0.065982 | \n", "3.795301 | \n", "2.377549 | \n", "1.082070 | \n", "0.311982 | \n", "8.236662 | \n", "
NaN | \n", "22.470572 | \n", "26.290126 | \n", "27.694096 | \n", "29.197009 | \n", "26.842616 | \n", "28.934865 | \n", "27.941294 | \n", "30.257805 | \n", "219.628383 | \n", "