Embedded Software Memory Size Estimation using COSMIC: A Case Study

Relaterede dokumenter
Basic statistics for experimental medical researchers

Generalized Probit Model in Design of Dose Finding Experiments. Yuehui Wu Valerii V. Fedorov RSU, GlaxoSmithKline, US

En god Facebook historie Uddannelser og valgfag målrettet datacenterindustrien!?

Trolling Master Bornholm 2012

Reexam questions in Statistics and Evidence-based medicine, august sem. Medis/Medicin, Modul 2.4.

Analyseinstitut for Forskning

Bilag. Resume. Side 1 af 12

Teknologispredning i sundhedsvæsenet DK ITEK: Sundhedsteknologi som grundlag for samarbejde og forretningsudvikling

Forventer du at afslutte uddannelsen/har du afsluttet/ denne sommer?

Engelsk. Niveau D. De Merkantile Erhvervsuddannelser September Casebaseret eksamen. og

Cross-Sectorial Collaboration between the Primary Sector, the Secondary Sector and the Research Communities

Small Autonomous Devices in civil Engineering. Uses and requirements. By Peter H. Møller Rambøll

Central Statistical Agency.

Forventer du at afslutte uddannelsen/har du afsluttet/ denne sommer?

GNSS/INS Product Design Cycle. Taking into account MEMS-based IMU sensors

GAMPIX: a new generation of gamma camera for hot spot localisation

Applications. Computational Linguistics: Jordan Boyd-Graber University of Maryland RL FOR MACHINE TRANSLATION. Slides adapted from Phillip Koehn

Quality indicators for clinical pharmacy services

PARALLELIZATION OF ATTILA SIMULATOR WITH OPENMP MIGUEL ÁNGEL MARTÍNEZ DEL AMOR MINIPROJECT OF TDT24 NTNU

Patientinddragelse i forskning. Lars Henrik Jensen Overlæge, ph.d., lektor

H2020 DiscardLess ( ) Lessons learnt. Chefkonsulent, seniorrådgiver Erling P. Larsen, DTU Aqua, Denmark,

Statistical information form the Danish EPC database - use for the building stock model in Denmark

Prioritering eller ej? Hvad er Konsekvensen? Jens Winther Jensen. Lægeforeningen

Application of High- resolution LiDAR-derived DEM in Landslide Volume Estimation

Constant Terminal Voltage. Industry Workshop 1 st November 2013

Design til digitale kommunikationsplatforme-f2013

United Nations Secretariat Procurement Division

Aktivering af Survey funktionalitet

Introduction Ronny Bismark

Agenda. The need to embrace our complex health care system and learning to do so. Christian von Plessen Contributors to healthcare services in Denmark

Observation Processes:

Black Jack --- Review. Spring 2012

Matematikken former morgendagens satellitter

IBM Network Station Manager. esuite 1.5 / NSM Integration. IBM Network Computer Division. tdc - 02/08/99 lotusnsm.prz Page 1

Particle-based T-Spline Level Set Evolution for 3D Object Reconstruction with Range and Volume Constraints

From innovation to market

Engelsk. Niveau C. De Merkantile Erhvervsuddannelser September Casebaseret eksamen. og

F o r t o l k n i n g e r a f m a n d a l a e r i G I M - t e r a p i

Crowd Sourcing for Sentiment Analysis ICA 2017

Linear Programming ١ C H A P T E R 2

Mandara. PebbleCreek. Tradition Series. 1,884 sq. ft robson.com. Exterior Design A. Exterior Design B.

Mandara. PebbleCreek. Tradition Series. 1,884 sq. ft robson.com. Exterior Design A. Exterior Design B.

International Workshop on Language Proficiency Implementation

Trolling Master Bornholm 2014

The use of instrumented gait analysis in interdisciplinary interventions for children with cerebral palsy

Motorway effects on local population and labor market

Health surveys. Supervision (much more) from the patients perspective. Charlotte Hjort Head of dep., MD, ph.d., MPG

PEMS RDE Workshop. AVL M.O.V.E Integrative Mobile Vehicle Evaluation

extreme Programming Kunders og udvikleres menneskerettigheder

Automatic Code Orchestration from Descriptive Implementations

DoodleBUGS (Hands-on)

Sport for the elderly

Studieordning del 3,

Vores mange brugere på musskema.dk er rigtig gode til at komme med kvalificerede ønsker og behov.

Brüel & Kjær cooperation with Turbomeca - France

A Strategic Partnership between Aarhus University, Nykredit & PwC. - Focusing on Small and Medium-sized Enterprises

Statistik for MPH: 7

Trolling Master Bornholm 2014

Trolling Master Bornholm 2016 Nyhedsbrev nr. 3

Managing stakeholders on major projects. - Learnings from Odense Letbane. Benthe Vestergård Communication director Odense Letbane P/S

Portal Registration. Check Junk Mail for activation . 1 Click the hyperlink to take you back to the portal to confirm your registration

Measuring the Impact of Bicycle Marketing Messages. Thomas Krag Mobility Advice Trafikdage i Aalborg,

Our activities. Dry sales market. The assortment

CONNECTING PEOPLE AUTOMATION & IT

,

Financial Literacy among 5-7 years old children

Integrated Engine, Vehicle, and Underhood Model of a Light Duty Truck for VTM Analysis

Krav til bestyrelser og arbejdsdeling med direktionen

Sikkerhed & Revision 2013

Vina Nguyen HSSP July 13, 2008

Jens Olesen, MEd Fysioterapeut, Klinisk vejleder Specialist i rehabilitering

3Q11 Investor Conference. October 27, 2011

VidenForum Fokus på viden Viden i fokus

IPv6 Application Trial Services. 2003/08/07 Tomohide Nagashima Japan Telecom Co., Ltd.

Sustainable use of pesticides on Danish golf courses

Finn Gilling The Human Decision/ Gilling September Insights Danmark 2012 Hotel Scandic Aarhus City

Sommereksamen Bacheloruddannelsen i Medicin/Medicin med industriel specialisering

To the reader: Information regarding this document

Bilag. Indhold. Resumé

Immigration Housing. Housing - Renting. Stating that you want to rent something. Type of accommodation. Type of accommodation. Type of accommodation

Challenges for the Future Greater Helsinki - North-European Metropolis

1 s01 - Jeg har generelt været tilfreds med praktikopholdet

Using SL-RAT to Reduce SSOs

APNIC 28 Internet Governance and the Internet Governance Forum (IGF) Beijing 25 August 2009

CHAPTER 8: USING OBJECTS

DK - Quick Text Translation. HEYYER Net Promoter System Magento extension

Sortering fra A-Z. Henrik Dorf Chefkonsulent SAS Institute

Remember the Ship, Additional Work

Dagens program. Incitamenter 4/19/2018 INCITAMENTSPROBLEMER I FORBINDELSE MED DRIFTSFORBEDRINGER. Incitamentsproblem 1 Understøttes procesforbedringer


Vejledning til Sundhedsprocenten og Sundhedstjek

Lovkrav vs. udvikling af sundhedsapps

X M Y. What is mediation? Mediation analysis an introduction. Definition

Trolling Master Bornholm 2016 Nyhedsbrev nr. 7

Mock-ups in Design. Infinit Interessegruppemøde CSC Scandihealth 20/ Lars Bo Larsen

The X Factor. Målgruppe. Læringsmål. Introduktion til læreren klasse & ungdomsuddannelser Engelskundervisningen

Heuristics for Improving

The GAssist Pittsburgh Learning Classifier System. Dr. J. Bacardit, N. Krasnogor G53BIO - Bioinformatics

Research on development of international beef genetic evaluations for calving traits

Implementing SNOMED CT in a Danish region. Making sharable and comparable nursing documentation

Transkript:

Embedded Software Memory Size Estimation using COSMIC: A Case Study Sophie STERN, Economic Efficiency Project manager, RENAULT, Embedded software group, FRANCE Cigdem GENCEL, Assistant Professor, Blekinge Institute of Technology, SWEDEN Renault/Sophie Stern

Agenda Reminders on ECU What is at stake? Background Research question Case study Data collection Data analysis and results Validity threats Conclusions and Future work 2

Reminders In a car, most of major functionalities are provided through dedicated ECUs connected through a communications network. What is an ECU? An ECU (Engine Control Unit) is composed of Hardware and Software.

What is at stake? In automotive industry, more and more functionalities are provided through dedicated ECUs (Engine Control Units). We have to find breakthroughs SW Size Evolution SW Cost 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 New automotive functionalities More and more embedded software in a car. Optimize the memory space is essential for developing cost effective embedded systems.

Industrial needs The ECU s hardware choice is made very early when choosing the ECU development supplier. ECUs should be designed to have sufficient memory (ROM, RAM, E2Prom). Traditionally ROM and RAM sizes are estimated by using expert opinion method. Major risks: Over-estimation of the memory sizes Hardware over-dimensioned Unnecessary costs. Under-estimation of the memory sizes Risk of increasing the car development schedule, supplementary costs.

The Problem Early and reliable ECUs memory size estimation is essential for automotive industry! 6

A New Approach Using COSMIC FP COSMIC is a 2nd generation FSM method designed to measure real-time embedded systems Toivonen (2002) proposed a measure for software memory efficiency (CFP/Mem.size) in mobile terminals Lind and Heldal (2008, 2009, 2010) conducted experiments in GM and developed a model to estimate the memory space required for ECUs from CFP Gencel, Heldal and Lind (2009) compared the relationship CFP-SLOC to CFP-Bytes Although SLOC-CFP relationship was weak, CFP-Bytes showed significantly strong relationship 7

Renault - Research Question Is the COSMIC functional size (in CFP) a more reliable measure to predict the ECU memory size in real time embedded software than the traditional expert opinion methods? 8

Case Study The ECU s choice. The chosen ECU was the BCM: Body Control Module. The BCM is typically in charge to manage lights, doors locking, and so on. BCM was chosen because: COSMIC had been already used on costs predictions for BCM COSMIC functional sizes were available. ROM, RAM, E2PROM measurements were available. Very high level expert judgments were available for BCM. 9

Case Study Data Collection Data collected on 19 functions of the BCM designed by Renault and coded by one of its suppliers The BCM functions were developed using the same programming language, compiler and development method. Two experienced measurers who have been using COSMIC for the last two years in Renault made the functional size measurements. 10

Functional Sizes and Actual Memory Sizes for Functions Function CFP Actual Memory Size (kb) ROM RAM E2P RAM+E2P CFP/ROM+RAM+E2P (kb) function 2 53 2.30 0.08 0.08 22.3 function 4 259 12.50 0.17 0.02 0.18 20.4 function 10 66 3.81 0.09 0.09 16.9 function 15 22 1.02 0.04 0.04 20.8 function16 73 3.81 0.09 0.09 18.7 function 17 748 32.96 0.58 0.16 0.73 22.2 function 18 90 31.08 0.63 0.13 0.75 2.8 function 21 7 0.58 0.07 0.03 0.10 10.2 function 22 8 0.85 0.04 0.04 9.0 function 23 34 1.79 0.04 0.04 18.7 function 24 39 2.14 0.05 0.05 17.8 function 25 45 4.96 0.53 0.53 8.2 function 26 54 2.51 0.07 0.02 0.08 20.8 function 27 57 1.97 0.08 0.02 0.11 27.5 function 28 91 4.72 0.14 0.14 18.7 function 29 110 4.01 0.07 0.07 27.0 function 30 136 5.71 0.12 0.12 23.3 function 31 155 10.50 0.16 0.02 0.18 14.5 function 32 157 5.14 0.10 0.02 0.11 29.9

Case Study Data Analysis The strength of the relationship between CFP and ROM size (kb) investigated (Correl. Coeff, R 2 ) The outlier functions identified and excluded A linear estimation model developed: Chose 10 functions randomly out of 19 to build the model Performed linear regression analysis on this sub-dataset The memory size estimates obtained by expert opinion methods were compared to estimates obtained by the estimation model 12

Case Study (step 1) Data Analysis Linear estimation models (CFP / Bytes) were developed: Chose 10 functions randomly out of 19 to build the model Performed linear regression analysis on this sub-dataset 2 Linear estimation models were developed: A linear estimation model for ROM A linear estimation model for RAM+E2PROM 13

Fig 1. CFP vs ROM size (kb) (for subset, n =10) 35 n=10 ROM y = 0,04x + 0,72 R 2 = 0,99 30 Memory size (kb) 25 20 15 10 Automatic code Regression line (Automatic code) 5 0 0 200 400 600 800 COSMIC size (CFP) 14

Comparison of the Memory Size Estimates and Residual Errors for the Case Functions Function Actual memory size (kb) ROM 2 2.30 4 12.50 10 3.81 15 1.02 16 3.81 17 32.96 21 0.58 22 0.85 23 1.79 24 2.14 25 4.96 26 2.51 27 1.97 28 4.72 29 4.01 30 5.71 31 10.50 32 5.14 RAM +E2P 0.08 0.18 0.09 0.04 0.09 0.73 0.10 0.04 0.04 0.05 0.53 0.08 0.11 0.14 0.07 0.12 0.18 0.11 COSMIC Based Memory Size Estimates (kb) Renault Experts Memory Size Estimates (kb) Sup.Exp. Mem Est. (kb) % Residual (COSMIC) % Residual (Renault Experts) % Resid. (Suppl. Exp.) ROM RAM+E2P ROM RAM ROM ROM RAM+E2P ROM RAM ROM 3.02 0.13 0.50 0.01 0.49 11.96 0.30 25.78 0.37 25.20 3.58 0.14 3.51 1.73 3.42 1.67 0.10 19.73 3.89 0.14 5.99 0.11 5.86 33.18 0.70 27.08 0.20 26.46 1.02 0.09 0.17 0.03 0.20 1.06 0.09 0.51 0.03 0.49 2.19 0.11 2.08 0.04 2.05 2.41 0.11 2.15 2.67 0.12 5.55 1.22 5.37 3.06 0.13 4.72 0.10 4.59 3.19 0.13 3.87 0.07 3.81 4.67 0.16 7.39 0.12 7.23 5.49 0.17 4.72 0.10 4.59 6.62 0.20 5.72 0.11 5.57 7.44 0.21 10.99 0.16 10.74 7.53 0.21 5.59 0.07 5.47 31.4 65.7-78.1-91.0-78.7-4.3 63.5 106.3 104.3 101.6-6.0 44.6-7.8 1729-10.3 63.7 185.9 1831 1.9 52.3 57.0 20.8 53.7 0.7-4.3-17.8-73.4-19.7 74.9-13.3-70.6-69.2-66.6 25.9 127.6-39.8-30.0-42.3 22.7 214.2 16.1 5.6 14.8 12.6 109.6 0.4-46.1-77.5 11.9 130.1 8.3 22.0 51.3 87.9 16.3 82.9 62.3 22.8 96.6-35.2 93.6-1.1 15.4 56.6-10.0 53.2 37.1 140.1 17.7 35.1 14.6 16.0 61.1 0.2-11.3-2.4-29.1 17.3 4.7-12.0 2.3 46.4 87.5 8.6-39.7 6.3

Case Study (step 2) Data Analysis The strength of the relationship between CFP and ROM size (kb) investigated (Correl. Coeff, R 2 ) The outlier functions identified and excluded 16

Fig 2. CFP versus ROM size (kb) Actual memory size ROM y = 0,04x + 2,07 50 R 2 = 0,56 40 Memory size (kb) 30 20 10 0 0 200 400 600 800 Automatic code CI inferior CI superior Regression line (Automatic code) -10-20 COSMIc size (CFP) 17

Fig 3. CFP vs ROM size (kb) (excluding the outlier) 50 Actual memory size ROM y = 0,04x + 0,50 R 2 = 0,97 40 Memory size (kb) 30 20 10 0-10 0 200 400 600 800 Automatic code CI inferior CI superior Regression line (Automatic code) -20 COSMIc size (CFP) 18

Case Study (step 3) Data Analysis The memory size estimates obtained by expert opinion methods were compared to estimates obtained by the estimation model 19

% Residuals for ROM, RAM and E2P Estimates % Residual (COSMIC) % Residual (Renault Experts) % Residual (Supplier Experts) Statistics ROM RAM+ E2P ROM RAM ROM Min -46.10% -77.50% -78.10% -91.00% -78.70% Max 74.90% 214.20% 106.30% 1728.90% 1831.20% 20

Fig 4. Comparison between memory size estimates ROM 35,00 y = 0,04x + 0,72 R 2 = 0,99 30,00 Memory size (kb) 25,00 20,00 15,00 10,00 COSMIC based estimates Renault Experts based estimates Supplier estimates 5,00 actual memory size 0,00 0 200 400 600 800 COSMIC size (CFP) Regression line (COSMIC based estimates) 21

Fig 5. Comparison between memory size estimates RAM+E2P 2,0 1,8 y = 0,00x + 0,08 R 2 = 0,61 Memory size (kb) 1,6 1,4 1,2 1,0 0,8 0,6 0,4 COSMIC based estimates Renault Experts based estimates actual memory size 0,2 0,0 0 200 400 600 800 COSMIC size (CFP) Regression line (COSMIC based estimates) 22

Conclusions for Renault After using the COSMIC functional size for software development costs estimations for more than two years our results on memory sizes showed us that COSMIC is a very good software metric. Our goal is now to perform memory sizes estimations on future BCM, and to pursue studies on other ECUs. 23

General conclusions Our results confirmed the previous results obtained by Lind and Heldal that using CFP can be used for ECUs memory size estimation.. This approach might be also beneficial for other types of embedded systems memory size estimations (such as mobile phones, televisions, etc.) 24

Thank you for your attention! Questions? Sophie Stern sophie.stern@renault.com Cigdem Gencel Cigdem.Gencel@bth.se 25