29
1

2009-02-12 GRE302 - Développement d'applications vertes

Embed Size (px)

DESCRIPTION

GRE302 - Développement d'applications vertes

Citation preview

Page 1: 2009-02-12 GRE302 - Développement d'applications vertes

1

Page 2: 2009-02-12 GRE302 - Développement d'applications vertes

2

Green Dev

Eric MitteletteEric VerniéMicrosoft France

GRE302

Page 3: 2009-02-12 GRE302 - Développement d'applications vertes

3

Agenda

(re)Positionner le Green ITObjectifs et moyens du Green IT

Contribution des développeursAxes de travails au niveau du code et best practices

Les API du green dev

Cas du logiciel embarqué

Page 4: 2009-02-12 GRE302 - Développement d'applications vertes

4

(re)Positionner le Green IT

Constats Bilan énergétique et bilan CO2 « lourd »

DataCenter, mais aussi parc matériel dans son ensemble

VolontéRéduire l’emprunte CO2 et la consommation énergétiqueOptimiser les coûts et ROI

Page 5: 2009-02-12 GRE302 - Développement d'applications vertes

5

The Green Wave1785 1845 1900 1950 1990 2020

Inno

vati

on

Hunter Lovins, AME Keynote

• Iron• Water Power

• Mechanization• Textiles

• Commerce

• Steam Power• Railroad

• Steel• Cotton

• Electricity• Chemicals• Internal

Combustion Engines

• Electronics• Aviation• Space• Petro-chemicals

• Digital Networks

• Software Information Technology

• Biotechnology

Page 6: 2009-02-12 GRE302 - Développement d'applications vertes

6

(re)Positionner le Green IT (2)

ActionsRé organisationRé localisation des data centerCooling et allées chaudesConcentration des alimentations Mise en œuvre de la virtualisationRevoir l’administration

Monitoring et administration souple des data center/cluster/PosteDéploiement facile et dynamique des solutions (mise à l’échelle )

Page 7: 2009-02-12 GRE302 - Développement d'applications vertes

7

Technologies Modernize Power and Cooling Architecture in the Datacenter

Page 8: 2009-02-12 GRE302 - Développement d'applications vertes

8

Nos responsabilitésImpact des logiciels

Windows VistaWindows Server 2008Data Centers (Azure…)

Apporter des solutions via nos logiciels et ceux de nos partenaires

Live Meeting, Digital DistributionRound TableModeling Software Energy Management Systems

Data Center de Quincy

40%

50%

60%

70%

80%

90%

100%

0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%

Watts (% of maximum)

Workload (% of maximum throughput)

Windows Server 2003 Windows Server 2008

Consommation et charge comparée entre server2003 et 2008

Page 9: 2009-02-12 GRE302 - Développement d'applications vertes

9

Objectifs et moyens du Green IT

Répercussions multiplesSur l’infra

Physique et virtuelleAdministration« Scalabilité »

Sur l’architecturePattern ad hoc, Orienté service, souple, agileStateless et scalabilité

Sur le codeBest practices (cpu IO Mémoire, revisitées)

Page 10: 2009-02-12 GRE302 - Développement d'applications vertes

10

Contribution des développeursFournir un code

Efficace en terme de cpu et temps d’exécutionCode parallèle, CPU usage, Memory Usage, 1 ou multi-machine

Econome en ressource toute ressource a son équivalent CO2

Stable, supportant les reprises, sleep, hibernate…Administrable en masse, monitorableAuto tuning, auto update.Scalable (state less…)Parallélisable (Scale in et out), IO contrôlées

Page 11: 2009-02-12 GRE302 - Développement d'applications vertes

11

Green Dev Attitude

Penser aux ressources Viser a être le plus souple et adaptatif possible (Agile)

code pensé scalable,(stateless)couche d’abstraction sur les data et de leur localisation

Compromis a trouver entre nb de cycles, cache… code pensé parallèle.. Ou non (adaptatif)

Prendre en charge ou être en relais de l’OS sur la consommation dans certain cas

Applications kiosques…

Page 12: 2009-02-12 GRE302 - Développement d'applications vertes

1. Comprendre l’impact du soft en terme de consommation

2. Réduire/limité les ressources3. Focus on idle4. S’adapter à l’environnement (Plan

alimentation)5. Utiliser les outils adaptés !6. Gérer les transitions sleep resume…7. Valider et mesurer !8. Iterer (back to step 2)

Applications et efficacité énergétique

Page 13: 2009-02-12 GRE302 - Développement d'applications vertes

13

Reduce Workload Power

Time

Wat

ts

0W - Off

Idle Power

• Trade quality or performance for power savings

• Examples• Index only high-

priority items• Disable animations• DVD playback at

30fps instead of 60fps

• “Race to Sleep”• Execute rapidly

at high power• Quickly re-enter

low-power state• Extend average

idle duration• Examples

• Timer coalescing

Idle

• Resource utilization optimizations• Reduce power by

eliminating unnecessary activity

• Examples:• Events and notifications

instead of polling• Extending polling

intervals• Eliminating periodic

disk activity

Page 14: 2009-02-12 GRE302 - Développement d'applications vertes

14

Les API du green devLes api revisitées

Gestion de l’énergie sous Vista/sevenNouveaux messages broadcast (Vista et Seven)

WM_POWERBROADCAST : PBT_APMSUSPEND; PBT_APMRESUME…

Optimisation des timers (tolérance sur les top)HDD = 8% de la consommation d’un portable… (acces disk, registre…)Attention aux animations !RegisterPowerSettingNotification()

Page 15: 2009-02-12 GRE302 - Développement d'applications vertes

15

Extrait de code !

• //• // Create a SystemRequired request to keep the system from automatically sleeping while downloading a file.• //• POWER_REQUEST_CONTEXT DownloadPowerRequestContext;• HANDLE DownloadPowerRequest;

• //• // Set up the diagnostic string• //• DownloadPowerRequestContext.Version = POWER_REQUEST_CONTEXT_VERSION;• DownloadPowerRequestContext.Flags = POWER_REQUEST_CONTEXT_SIMPLE_STRING;• DownloadPowerReqeustContext.Reason.SimpleReasonString = L”My application is downloading files.”

• //• // Create the request, get a handle• //• DownloadPowerRequest = PowerCreateRequest(&DownloadPowerRequestContext);

• //• // Set the request• //• PowerSetRequest(• DownloadPowerRequest,• PowerRequestSystemRequired• );

• // Download the File...

• //• // Clear the request• //• PowerClearRequest(DownloadPowerRequest);

Page 16: 2009-02-12 GRE302 - Développement d'applications vertes

16

Démo

Page 17: 2009-02-12 GRE302 - Développement d'applications vertes

17

Les API du green devLes api revisitées

Gestion CPU, Mémoire, IOLimiter les cycles CPUMaitriser les IOPas polling ! (max 1 Hz)

Cas du file system watcher

Autres voies…Wakeup on lan etc..…Service Control Manager (SCM), démarage à la demande des services

Et surtout : Mesurer !Watt mètre à 15 € Windows Performance Tools Kit (XPerf)“PowerCfg /ENERGY” at the command line

Page 18: 2009-02-12 GRE302 - Développement d'applications vertes

18

Démo

Page 19: 2009-02-12 GRE302 - Développement d'applications vertes

19

Cas du logiciel embarqué

Au cœur des systèmes embarquésIndustriel, transport, home, homme

Au cœur de la régulationCapteurs/actionneurs, mesure et prise de décision

Au cœur de l’exploitation des énergies renouvelables

Voiture hybride, électrique, voltaïque, éolien, marée/vague moteur…

16 Milliards de contrôleurs/µproceseursEn route vers les 40 en 2020

Page 20: 2009-02-12 GRE302 - Développement d'applications vertes

20

Le logiciel embarqué

Une des clé pour l’avenir… de la planète Gestion des énergies renouvelables

EolienMoteur Hybride…Marée motriceEconomie d’énergie:

Dans la maisonDans villeA l’échelle d’une nation

Et plus globalement à l’échelle de la planète.

Page 21: 2009-02-12 GRE302 - Développement d'applications vertes

Document n° SLV33-357 –Document Confidentiel – October 2008 Copyright © Streetlight.Vision 2006-2009

Simple installation processSimple installation processStep 1 : Node InstallationStep 1 : Node Installation

Install the

Install the SmartNodein the luminaires or in the pole

SmartNode ID on a sticker

Ballast/Node stickers are placed here by installer

Page 22: 2009-02-12 GRE302 - Développement d'applications vertes

Document n° SLV33-357 –Document Confidentiel – October 2008 Copyright © Streetlight.Vision 2006-2009

Installed in the Pole or in the LuminaireInstalled in the Pole or in the Luminaire

Various packaging and sizesVarious packaging and sizes

Control electronic ballasts through 1-10VControl electronic ballasts through 1-10V

Control magnetic ballastsControl magnetic ballasts

In the Street…In the Street…LonWorks Smart NodesLonWorks Smart Nodes

Page 23: 2009-02-12 GRE302 - Développement d'applications vertes

Document n° SLV33-357 –Document Confidentiel – October 2008 Copyright © Streetlight.Vision 2006-2009

Streetlight Segment ControllerStreetlight Segment Controller

Page 24: 2009-02-12 GRE302 - Développement d'applications vertes

Document n° SLV33-357 –Document Confidentiel – October 2008 Copyright © Streetlight.Vision 2006-2009

Simple installation processSimple installation processStep 2 : SC ConfigurationStep 2 : SC Configuration

Easy configuration, Import list of Lamp/Nodes from EXCEL, prepare dimming regimes, commissioning into the Streetlight

Segment Controller and test from list or from map

Page 25: 2009-02-12 GRE302 - Développement d'applications vertes

Document n° SLV33-357 –Document Confidentiel – October 2008 Copyright © Streetlight.Vision 2006-2009

Streetlight.Vision Streetlight.Vision Value PropositionValue Proposition

Reduced energy consumption up to 40%Reduced energy consumption up to 40% Up to 3M€ savings for a 1 million inhab city Up to 20.000 tons of CO² for a 1 million inhab city Overachieve your Kyoto objectives

Increased control and maintenanceIncreased control and maintenance Average downtime below 2 days Reduced maintenance efforts 30% reduced onsite operations Increased lamp lifetime

Enhanced urban SecurityEnhanced urban Security

Enhanced service qualityEnhanced service quality 80% reduction in citizen calls Increased citizen’s satisfaction

STREETLIGHT.VISION’s all-in-one-box solutionSTREETLIGHT.VISION’s all-in-one-box solution

INSIDEINSIDE Segment controller for 150 smartnode Streetlight.Vision software license Technical support for 12 months

Page 26: 2009-02-12 GRE302 - Développement d'applications vertes

Document n° SLV33-357 –Document Confidentiel – October 2008 Copyright © Streetlight.Vision 2006-2009

Cities engaged in theCities engaged in theOpen Lonworks Streetlight InitiativeOpen Lonworks Streetlight Initiative

Ville de Quebec

Saumur

Nort sur Erdre

Cologne

Bremen

SECE Catalunya

Oslo

Milton Keynes

Ploemeur

Cork City

Dublin

Mairena

St Paul

Cordemais

WienerNeuStadt

Mayo

Göteborg

York

Vannes

Ay sur Moselle

St-Jean de Mont

Stirling

Duke EnergyCharlotte, USA

Betton

Sénart

Tameside

Barnett

Arahova

Page 27: 2009-02-12 GRE302 - Développement d'applications vertes

Ressourcesessions Techdays 09:essions Techdays 09:

GreenIT ITDMGreenIT ITDM

Green IT ITGreen IT IT

Green IT ArchitecteGreen IT Architecte

ession PDC ession PDC

Extending Battery Life With Energy Efficient ApplicationsExtending Battery Life With Energy Efficient Applications

log de Plog de Paat Helandt Heland

Quelses entrées sur ce sujets !Quelses entrées sur ce sujets !

he Architecture Journal N°18 – Green Computinghe Architecture Journal N°18 – Green Computing

msdn.microsoft.com/en-us/architecture/bb410935.aspxmsdn.microsoft.com/en-us/architecture/bb410935.aspx

perfperf

ower Config (SDK de Windows Seven)ower Config (SDK de Windows Seven)

Page 28: 2009-02-12 GRE302 - Développement d'applications vertes

28

Vos mesures, observations, algo nous intéressent !On va créer un forum/blog/site sur le sujetParticipez avec nous a cette nouvelle aventure

Page 29: 2009-02-12 GRE302 - Développement d'applications vertes

29

Votre potentiel. Notre passion. TM