Real-Time Systems, 2009 Fall Project 2: Energy-Efficient Scheduling For Android Environment Advised by Prof. Tei-Wei Kuo TA: Po-Chun Huang ( 黃柏鈞 )

Slides:



Advertisements
Similar presentations
Jump to Contents Instructor Tutorial essignments.com Paperless assignment submission system.
Advertisements

Graphic Services Step-by-step on-line ordering for new Quick Copy Service Instructional Materials Only.
Online Exam/Paper Management System The Online Exam/Paper Management System allows you to: View your exam and paper.
Welcome to the Award Winning Easiest to Use & Most Advanced View, Manage, and Control Security, Access Control, Video, Energy & Lighting Systems, & Critical.
1 Authority on Demand Flexible Access Control Solution.
1 Transportation Model. 2 Basic Problem The basic idea in a transportation problem is that there are sites or sources of product that need to be shipped.
An introduction to: The uRT51 Microprocessor and Real-Time Programming Suite.
Outline. Theorem For the two processor network, Bit C(Leader) = Bit C(MaxF) = 2[log 2 ((M + 2)/3.5)] and Bit C t (Leader) = Bit C t (MaxF) = 2[log 2 ((M.
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Lecture 37 CSE 331 Dec 1, A new grading proposal Towards your final score in the course MAX ( mid-term as 25%+ finals as 40%, finals as 65%) .
CS107 Introduction to Computer Science Lecture 7, 8 An Introduction to Algorithms: Efficiency of algorithms.
1 of 5 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2006 Microsoft Corporation.
Threads II. Review A thread is a single flow of control through a program Java is multithreaded—several threads may be executing “simultaneously” If you.
Using Microsoft Outlook: Basics. Objectives Guided Tour of Outlook –Identification –Views Basics –Contacts –Folders –Web Access Q&A.
©2001 Chariot Software Group Using MicroGrade Classroom Management Software.
1. 2 LXU800 User’s Manual 1.Installation – Windows XP UI Features Introduction Data Connection & Disconnection.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
How to Fill Out the CARD Form (Course Assessment Reporting Data Form)
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
‘ {] Chapter 2 (HW01) Getting Started with Windows 7.
Programming Logic Program Design. Objectives Steps in program development Algorithms and Pseudocode Data Activity: Alice program.
‘ {] PowerPoint Presentation to Accompany GO! with Windows 7 Getting Started Chapter 2 Getting Started with Windows 7.
Operating System Examples - Scheduling
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Dynamic Slack Reclamation with Procrastination Scheduling in Real- Time Embedded Systems Paper by Ravindra R. Jejurikar and Rajesh Gupta Presentation by.
1 Project Information and Acceptance Testing Integrating Your Code Final Code Submission Acceptance Testing Other Advice and Reminders.
Fourth R Inc. 1 WELCOME TO MICROSOFT OFFICE OUTLOOK 2003 INTERMEDIATE COURSE.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
Parent Portal The txConnect parent portal allows parent’s to monitor their student’s progress in school.
Fourth R Inc. 1 WELCOME TO MICROSOFT OFFICE OUTLOOK 2003 INTRODUCTORY COURSE.
Optimal Selection of Power Saving Classes in IEEE e Lei Kong, Danny H.K. Tsang Department of Electronic and Computer Engineering Hong Kong University.
9/2/ CS171 -Math & Computer Science Department at Emory University.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
1 Combinatorial Algorithms Local Search. A local search algorithm starts with an arbitrary feasible solution to the problem, and then check if some small,
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
FrontPage Tutorial Part 2 Creating a Course Web Site.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
CSE 522 Real-Time Scheduling (2)
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
CENG 476 Projects 2014 (10’th November 2014) 1. Projects One problem for each student One problem for each student 2.
Adaptive Sleep Scheduling for Energy-efficient Movement-predicted Wireless Communication David K. Y. Yau Purdue University Department of Computer Science.
2004/051 >> Supply Chain Solutions That Deliver Users.
> > >> < <
1.  System Characteristics  Features of Real-Time Systems  Implementing Real-Time Operating Systems  Real-Time CPU Scheduling  An Example: VxWorks5.x.
Determining Optimal Processor Speeds for Periodic Real-Time Tasks with Different Power Characteristics H. Aydın, R. Melhem, D. Mossé, P.M. Alvarez University.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Welcome to Computer Solutions 1! Before we begin our nine weeks, it is important that you have some basic knowledge about using and maintaining your computer.
Customize Your View of Data Training Presentation for Supply Chain Platform: BAE Systems May 2015.
Transfer Contacts from iPhone to Android From:
Digital Literacy Introduction to Computers Unit 1, Lesson 1.
IIS Progress Report 2016/01/11. Goal Propose an energy-efficient scheduler that minimize the power consumption while providing sufficient computing resources.
TxCONNECT TX connect is a Web Based application that can be accessed from anywhere using an internet connection Parents may access TX Connect from home,
Topic: Introduction to Computing Science and Programming + Algorithm
Homework Assignment #2 J. H. Wang Oct. 24, 2017.
Staff Scheduling at USPS Mail Processing & Distribution Centers
Guides to Reviewerss Journal of Mountain Science Guides to Reviewerss
Processor Management Damian Gordon.
CprE 458/558: Real-Time Systems (G. Manimaran)
Recursion Chapter 11.
Lecture 19 CSE 331 Oct 10, 2016.
Processor Management Damian Gordon.
Real-Time Process Scheduling Concepts, Design and Implementations
All Right Reserved © JiJi Technologies Pvt Ltd
Presentation transcript:

Real-Time Systems, 2009 Fall Project 2: Energy-Efficient Scheduling For Android Environment Advised by Prof. Tei-Wei Kuo TA: Po-Chun Huang ( 黃柏鈞 )

Introduction From the previous assignment, we know how to control the power modes of the backlight device on the Android platform However, it is not trivial to simply turn off the backlight device when we do not need it, for the considerable time and energy overheads on power mode switching Don’t worry; in this assignment we will find a clever way to do this (since it is required ) 2

Some Quick Facts Power consumption of T-Mobile G1 Current: mA Configurations of Peripheral Devices Reference: 3 !!

What Will Be Done in This Assignment? (1/2) We will be given a task set T of periodic tasks t i, for i=1, 2,…, N –All tasks arrive at time point 0 –Tasks are sorted based on their periods (so pi <= pj iff i<j) Each task has a period p i, deadline d i, and several operations x ij (i=1…N; j=1…ni), each of which has the following properties: CD L D H –Luminance u ij : can be C, D L and D H, standing for Computation (no display required), Display in Low light and Display in High light, respectively –Length l ij : l ij =1, 2, …(setting the time unit to 3~4 seconds is a good choice) The requirements of a feasible schedule is those of a conventional hard real- time environment, plus –The operations of the same task must be scheduled in the specified order –During the scheduled time of each operation, the back light device must be adjusted to at least as bright as that specified as required Luminance 4

What Will Be Done in This Assignment? (2/2) Energy issues E C E DL E DH –During each time unit, the backlight device at none(C), low light display (DL), and high light display (HL) consumes E C, E DL, and E DH of energy, respectively E DH >E DL >E C >=0Of course we can assume that E DH >E DL >E C >=0 E C =0For simplicity we assume that E C =0 –Additional energy E SW is consumed on power level switching For simplicity, we assume that switching from an arbitrary power level to another demands the same quantity of energy For simplicity, we assume that power level switching happens immediately Compute the feasible schedule with minimal energy consumption!Our goal: Compute the feasible schedule with minimal energy consumption! 5

A Sample Input The input will be given to you manually; you can hard-code them in your sources (with clear mark so that I know it’s the input ) T = {t1, t2, t3} –t 1 = (16(p 1 ), 14(d 1 ), ((1, 0(C))(x 11 ), (1, 1(D L ))(x 12 ))) –t 2 = (20(p 2 ), 20(d 2 ), ((1, 2(D H ))(x 21 ), (3, 1)(x 22 ))) –t 3 = (28(p 3 ), 20(d 3 ), ((1, 0)(x 31 ), (1, 1)(x 32 ), (1, 0)(x 33 ))) –E C =0, E DL =1, E DH =5, E SW =12 6

Scoring Baseline: RM schedule (30%) Implement then write down your improvement over the RM schedule in reports (70%) –Must provide the intuition and sufficient examples to show why it is better than original RM! –Must output the detailed computed schedule with LogCat! Better if you can prove the bound of energy or time! (30% bonus) Even better if you can compose a demo of your algorithm on the Android emulator! (30% bonus) 7

The LogCat Debugging Console 8

Open the LogCat Console View Add the LogCat view to menu shortcut: Window -> Customize Perspective -> Shortcuts -> Submenus : Show View -> Categories : Android -> LogCat Open the view: Window -> Show View - > LogCat 9

Print Customized Debugging Messages in LogCat Import android.util.Log package in your project Use the static variable Log to keep trace of your target: Log.d("DEBUG", "message"); Please use the message typed “DEBUG” to make them distinguished from system messages! You should print at least the following messages: –If the task set is un-schedulable, simply print “Unschedulable!” –Else, during the time interval [0, LCM(p 1, …, p N )), in each time unit, the light level and the IDs of scheduled operation and its residing task should be printed as: Time XX: Running task XX, operation XX, H(high light)/L(low light)/N(no light) –If nothing is being executed during that time, print: Time XX: Idle, H/L/N –By the end of program, print out a summary message about the total energy consumption statistics, and the number of light level switching, using RM and your algorithms respectively: Total high light time: XX Total low light time: XX Total no light time: XX Total light switching: XX times Total energy consumption of my algorithm: XX –Finally print the degree of improvement: Energy improved by 17% You should include this result of each of the 5 test cases in your report! For the test cases please see the web site. 10

Sample Outputs RM ---- –Unschedulable! ---- My program ---- –Unschedulable! ---- Results ---- –Unschedulable! 11

Sample Outputs RM RM ---- –Time 0: Running task 1, operation 1, H –Time 1: Running task 2, operation 1, L –…… –Time 48: Running task 1, operation 1, N –Total high light time: 22 –Total low light time: 15 –Total no light time: 11 –Total light switching: 16 times –Total energy consumption: My program My program ---- –Time 0: Running task 1, operation 1, H –Time 1: Running task 1, operation 2, H –…… –Time 48: Running task 2, operation 1, N –Total high light time: 17 –Total low light time: 16 –Total no light time: 15 –Total light switching: 6 times –Total energy consumption: Results Results ---- –Energy improved by 17% 12

Hint 1: Modify RM Modify RM to reduce power without sacrificing schedulabilityModify RM to reduce power without sacrificing schedulability 13

Hint 2: Idle Time… How about the light mode between scheduled task operations? We know that How about… 14 HH??? HL LH NNN

Hint 3: Moving and Swapping Moving: Without violating the deadlines, move the scheduled points of tasks left or right to reduce the idle time Swapping: Without violating the deadlines, swap the scheduled points of tasks to reduce light level switching 15 LHLH LHLH

Hint 4: Switching the Power Levels based on the Schedule of Your Solution Thread.sleep lets a thread “sleep” for a specified time period Thread.run executes the thread’s method Thread.join waits for the created thread to finish for its computation results No need to create a thread for each task… 16

Submission The deadline of this assignment is 1/7, 23:59 Mail to with –Title: [RTS Project II] Your-Student-ID Your-Name –Attached files: Project directory compressed into a single file: Your- Student-ID.zip/.tar/.tgz/.7z Report: Your-Student-ID.txt –You will receive a confirmation about your submission in two days; if not, please contact TA immediately –Any questions are welcome through or face-to-face discussion in R442! 17

Q & A? Thank You! 18