Green-Software-Foundation / sci-guide

Open Data project will provide all the necessary data sources that can be used as inputs for the SCI standard, for free.
Other
6 stars 11 forks source link

[Microsoft] submission- eShoppen #34

Open srini1978 opened 1 year ago

srini1978 commented 1 year ago

Case Study Template

Overview

Architecture for the system under consideration

image

Technical details of the components in the architecture

The architecture consists of the following components.

Sites for Software Sustainability Actions

For each of the following sub-sections, indicate where and how actions can be taken in the following categories:

Energy Efficiency

  1. site of action
  2. description of the action

Hardware Efficiency

  1. site of action
  2. description of the action

Carbon Awareness

  1. site of action
  2. description of the action

Procedure

(What) Software boundary

** Included

** Excluded The following components and their carbon emissions have been excluded from the SCI calculation.

(Scale) Functional unit

For this case study, we have considered R to be per 500 users over a 1 hour period with 50 concurrent users. Based on the load test approach we have taken, the functional unit is the scaling factor for this infrastructure and hence this is a compound functional unit.

(How) Quantification method

App server for Web application

Energy (E)

The Quantification method used for calculating energy value is Calculate. We are measuring CPU utilization of the app servers and then using a model based on the Thermal Design Power (TDP) of the processors, number of cores etc to estimate the power consumption.

The equation used to model the energy consumption is:

P[kwH] = (Power consumed by CPU or Pc Number of cores + Power consumed by Memory or Pr + Power consumed by GPU or Pg Number of GPUs)/1000

Carbon Intensity (I)
Embodied Carbon (M)

The equation to calculate M = TE * (TR/EL) * (RR/TR)

Where:

For this component:

Database server for Web application

The database server used for the load test is Standard Gen 5 2 vCore 10 GB RAM machine from Azure SQL

Energy (E)

The Quantification method used for calculating energy value is Calculate. We are measuring CPU utilization of the database servers and then using a model based on the Thermal Design Power (TDP) of the processors, number of cores etc to estimate the power consumption.

The equation used to model the energy consumption is:

P[kwH] = (Power consumed by CPU or Pc Number of cores + Power consumed by Memory or Pr + Power consumed by GPU or Pg Number of GPUs)/1000

Carbon Intensity (I)
Embodied Carbon (M)

The equation to calculate M = TE * (TR/EL) * (RR/TR)

Where:

For this component:

Front End Browser for Web application

Energy (E)

The Quantification method used for calculating energy value is Calculate. We are measuring CPU utilization of the laptop client device and then using a model based on the Thermal Design Power (TDP) of the processors, number of cores etc to estimate the power consumption.

The equation used to model the energy consumption is:

P[kwH] = (Power consumed by CPU or Pc Number of cores + Power consumed by Memory or Pr + Power consumed by GPU or Pg Number of GPUs)/1000

Carbon Intensity (I)

Embodied Carbon (M)

The equation to calculate M = TE * (TR/EL) * (RR/TR)

Where:

For this component:

Networking infrastructure

The Quantification method for calculating energy emissions from Networking infrastructure is "Calculate". As part of the load test the Data in and Data out measurement of the App server and database server in GB are measured. This value is multiplied by the "Emissions/GB" data from SCI open data project. https://github.com/Green-Software-Foundation/sci-data/issues/13.

The disclaimer here is : the above calculation assumes that the networking infrastructure does not emit any emissions where no data is transferred over the wire. This can be revisited in the future by having a similar concept to how we have TDP co-efficient for CPU utilization.

(Quantify) SCI Value Calculation

App server for Web application

Energy (E)

The workings of E, include raw numbers and calculations.

E =  Number of hours * Number of chips * TDP * TDP co-efficient (for the server utilization)
  = ( 1 hour * 1 * 205 TDP * 0.32 TDP co-efficient)/1000
  = 0.0656 kwH

E = 0.0656 KwH for a 1 hour period

Carbon Intensity (I)

I = 951 gCO2e/kWh

Embodied Carbon (M)

M = TE * (TR/EL) * (RR/TR)

M = 1205.52 (1/35040) (2/16) = 0.004305 KG =~ 4.305 gCO2e

SCI

The sum of the SCI calculation for app server.

SCI = (E I) + M = (0.0656 KwH 951 gCO2e/kwH) + 4.305 gCO2e = 66.6906 gCO2e

Database server for Web application

Energy (E)

The workings of E, include raw numbers and calculations.

E =  Number of hours * Number of chip * TDP * TDP co-efficient (Server utilization)
  = ( 1 hour * 1 chip * 150 TDP * 0.32 TDP co-efficient)/1000
  = 0.048 kwH

E = 0.048 KwH for a 1 hour period

Carbon Intensity (I)

I = 951 gCO2e/kWh

Embodied Carbon (M)

M = TE * (TR/EL) * (RR/TR)

M = 1433.12 (1/35040) (2/16) = 0.005112 KG =~ 5.112 gCO2e

SCI

The sum of the SCI calculation for database server.

SCI = (E I) + M = (0.048 KwH 951 gCO2e/kwH) + 5.112 gCO2e = 50.76 gCO2e

Front end browser for the Web application

Energy (E) for CPU

The workings of E, include raw numbers and calculations.

E =  Number of hours * Number of chip * TDP * TDP co-efficient (Server utilization)
  = (1 hour * 1 chip * 28W TDP * 0.12 TDP co-efficient)/1000
  = 0.00336

E = 0.00336 KwH for a 1 hour period

Energy (E) for Memory

The workings of E, include raw numbers and calculations.

E =  Number of hours * Number of chip * TDP * TDP co-efficient (Memory utilization)
  = (1 hour * 1 chip * 12.16 TDP * 0.12 TDP co-efficient)/1000
  = 0.01216

E = 0.01216 KwH for a 1 hour period

Carbon Intensity (I)

I = 951 gCO2e/kWh

Embodied Carbon (M)

M = TE * (TR/EL) * (RR/TR)

M = 350 (1/35040) (1/1) = 0.009988 KG =~ 9.98 gCO2e

SCI

The sum of the SCI calculation for client device.

SCI = (E I) + M = ((0.0036+0.01216 951 gCO2e/kwH) + 9.98 gCO2e = 24.96 gCO2e

Networking infrastructure for the Web application

Based on the load tests conducted Data in = 1.16 GB. Data out = 14.3 GB Taking data of 0.001KwH /GB we get 0.01529 kwH

Energy of networking infrastructure = 0.01529 kwH Regional carbon intensity = I = 951 gCO2e/kWh Embodied emissions data of networking infrastructure not yet available.

SCI of networking infrastructure = 14.54 gCo2eq

SCI Total

The total SCI for the whole application.

SCI = SCI(App server for Web application) + SCI for database server +SCI for the client device + SCI of networking infrastructure = 156.9586 gCO2e per R (500 users in 1 hour period)

(Report)

srini1978 commented 1 year ago

FYI @atg-abhishek @Henry-WattTime @seanmcilroy29 @dohafernandez @jawache

atg-abhishek commented 1 year ago

set to auto-close this issue when PR Green-Software-Foundation/software_carbon_intensity#256 is approved.