SlideShare une entreprise Scribd logo
1  sur  38
Télécharger pour lire hors ligne
Bogotá
EC2: Avanzado
Henry Alvarado
Arquitecto de soluciones
Amazon Web Services
• What is the EC2 instance platform and a
virtualization primer
• How to make the most of your EC2 instance
experience through the lens of three instance types
• How to think about the future of EC2 instances
Agenda
EC2 Instance Platform
EC2
EC2
Amazon EC2 Instances
Host Server
Hypervisor
Guest 1 Guest 2 Guest n
c3.large
Instance family
Instance generation
Instance size
Virtualization Primer: x86 CPU
• Prior to Intel VT-x
– Binary translation
– Para-virtualization (PV)
• After Intel VT-x
– Hardware assisted virtualization (HVM)
• PV vs. HVM Amazon Machine Images
• vCPU scheduling choices and variability
Host Server
Hypervisor
Guest 1 Guest 2 Guest n
Virtualization Primer: I/O and Devices
• Scheduling I/O requests between virtual devices
and shared physical hardware
• Split driver model for shared devices; requires
host resources
• Intel VT-d
– Direct pass through and IOMMU for dedicated devices
Our Philosophy
• Bigger, faster, less expensive, consistent,
and flexible
• Our bar is bare metal performance
• Customers help us prioritize our
roadmap
• Look under the hood through the lens
of three recent platforms: C4, T2, and I2
Make the most of your experience
T2 Instances: Low Cost
Review: T2 Instances
• Lowest cost EC2 instance at $0.013 per hour
• Burstable vs. Fixed Performance
Name vCPUs
Baseline
Performance
Platform RAM (GiB)
CPU Credits /
Hour
t2.micro 1 10% 32-bit or 64-bit 1 6
t2.small 1 20% 32-bit or 64-bit 2 12
t2.medium 2 40% 32-bit or 64-bit 4 24
t2.large 2 60% 64-bit 8 36
Tip: Understand CPU credits
• http://aws.amazon.com/blogs/aws/low-cost-
burstable-ec2-instances/
• http://aws.amazon.com/ec2/instance-types/t2/
• Attend this session
How Credits Work
Baseline Rate
Credit
Balance
• A CPU Credit provides the
performance of a full CPU core for
one minute
• An instance earns CPU credits at
a steady rate
• An instance consumes credits
when active
• Credits expire (leak) over time
Burst
Rate
CPU Credits
• A CPU Credit provides the performance of a full
CPU core for one minute
• Hefty initial CPU credit balance for good startup
experience
• Use credits when active, accrue credits when
idle
• Transparency on credit balances
Tip: Monitor CPU credit balance
I2 Instances: High I/O
Review: I2 Instances
• 16 vCPU: 3.2 TB SSD; 32 vCPU: 6.4 TB SSD
• 365K random read IOPS for 32 vCPU instance
Model vCPU Memory
(GiB)
Storage Read IOPS Write IOPS
i2.xlarge 4 30.5 1 x 800 SSD 35,000 35,000
i2.2xlarge 8 61 2 x 800 SSD 75,000 75,000
i2.4xlarge 16 122 4 x 800 SSD 175,000 155,000
i2.8xlarge 32 244 8 x 800 SSD 365,000 315,000
Tip: Use 3.8+ kernel
• Amazon Linux 13.09 or later
• Ubuntu 14.04 or later
• RHEL7 or later
• Etc.
Pre-3.8.0 Kernels
• All I/O must pass through I/O Domain
• Requires “grant mapping” prior to 3.8.0
• Grant mappings are expensive operations due to TLB flushes
read(fd, buffer, BLOCK_SIZE)
3.8.0+ Kernels – Persistent and Indirect
• Grant mappings are setup in a pool once
• Data is copied in and out of the grant pool
• Copying is significantly faster than remapping
read(fd, buffer, BLOCK_SIZE)
Tip: Issue TRIM or Overprovision
SSDs and Wear Leveling
• FLASH has a limited number of writes per
physical sector
– Sectors wear out; must be erased before being rewritten to
– Erasing actually sets values to all 1s, slow
• Modern drive firmware is very sophisticated to
extend life of FLASH
• TRIM and/or over provisioning helps avoid
garbage collection and write amplification
Flash Translation Layer
• All new writes go to TAIL
• Random write == Sequential write
• Even sector wear (Wear Leveling)
HEAD
TAIL
Garbage Collection
• New writes have to search for free space
• Results in garbage collection pauses
• Large writes may require defragmentation
HEAD
TAIL
C3 Instances: High Compute
Review: C3 Instances
• Intel E5-2680 v2 at 2.8 GHz
• Enhanced networking
Model vCPU Memory (GiB) Storage (GB)
c3.large 2 3.75 2 x 16 SSD
c3.xlarge 4 7.5 2 x 40 SSD
c3.2xlarge 8 15 2 x 80 SSD
c3.4xlarge 16 30 2 x 160 SSD
c3.8xlarge 32 60 2 x 320 SSD
Tip: Use PV-HVM AMIs with EBS
Why PV-HVM is faster than PV
• PV-HVM allows Application to call directly into the Kernel
• PV requires going through the VMM
• Applications that are system call bound are most affected
Kernel
Application
Kernel
Application
VMM
Application
VMM
Kernel
Bare Metal PV-HVM PV
Tip: Use TSC as clocksource
Time Keeping Explained
• Time keeping in an instance is deceptively hard
• gettimeofday(), clock_gettime(), QueryPerformanceCounter()
• The TSC
– CPU counter, accessible from userspace
– Requires calibration, vDSO
– Invariant on Sandy Bridge+ processors
• Xen pvclock; does not support vDSO
• On current generation instances, use TSC as clocksource
Summary
Summary
• Just scratching the surface
• Visit the EC2 Instance Documentation for more tips and
tricks
EC2
EC2
AWS Summit Bogotá Track Avanzado: EC2 avanzado

Contenu connexe

Tendances

Rocking mongo db on the cloud
Rocking mongo db on the cloudRocking mongo db on the cloud
Rocking mongo db on the cloud
MongoDB
 
Hyper-V Infrastructure
Hyper-V InfrastructureHyper-V Infrastructure
Hyper-V Infrastructure
Paulo Freitas
 
High Performance MongoDB on Storage-Optimized AWS EC2
High Performance MongoDB on Storage-Optimized AWS EC2High Performance MongoDB on Storage-Optimized AWS EC2
High Performance MongoDB on Storage-Optimized AWS EC2
MongoDB
 
Design decision nfs-versus_fc_storage v_0.3
Design decision nfs-versus_fc_storage v_0.3Design decision nfs-versus_fc_storage v_0.3
Design decision nfs-versus_fc_storage v_0.3
David Pasek
 
Dad i want a supercomputer on my next
Dad i want a supercomputer on my nextDad i want a supercomputer on my next
Dad i want a supercomputer on my next
Akash Sahoo
 
Ceph Day Seoul - Ceph: a decade in the making and still going strong
Ceph Day Seoul - Ceph: a decade in the making and still going strong Ceph Day Seoul - Ceph: a decade in the making and still going strong
Ceph Day Seoul - Ceph: a decade in the making and still going strong
Ceph Community
 

Tendances (17)

Rocking mongo db on the cloud
Rocking mongo db on the cloudRocking mongo db on the cloud
Rocking mongo db on the cloud
 
Achieving the ultimate performance with KVM
Achieving the ultimate performance with KVMAchieving the ultimate performance with KVM
Achieving the ultimate performance with KVM
 
Data Scotland 2019: You can run SQL Server on AWS
Data Scotland 2019: You can run SQL Server on AWSData Scotland 2019: You can run SQL Server on AWS
Data Scotland 2019: You can run SQL Server on AWS
 
SVC / Storwize analysis cost effective storage planning (use case)
SVC / Storwize analysis cost effective storage planning (use case)SVC / Storwize analysis cost effective storage planning (use case)
SVC / Storwize analysis cost effective storage planning (use case)
 
Hyper-V Infrastructure
Hyper-V InfrastructureHyper-V Infrastructure
Hyper-V Infrastructure
 
High Performance MongoDB on Storage-Optimized AWS EC2
High Performance MongoDB on Storage-Optimized AWS EC2High Performance MongoDB on Storage-Optimized AWS EC2
High Performance MongoDB on Storage-Optimized AWS EC2
 
Design decision nfs-versus_fc_storage v_0.3
Design decision nfs-versus_fc_storage v_0.3Design decision nfs-versus_fc_storage v_0.3
Design decision nfs-versus_fc_storage v_0.3
 
Dad i want a supercomputer on my next
Dad i want a supercomputer on my nextDad i want a supercomputer on my next
Dad i want a supercomputer on my next
 
AWS Customer Presenatation - SlingMedia uses AWS
AWS Customer Presenatation - SlingMedia uses AWSAWS Customer Presenatation - SlingMedia uses AWS
AWS Customer Presenatation - SlingMedia uses AWS
 
Windows Azure Virtual Machines And Virtual Networks
Windows Azure Virtual Machines And Virtual NetworksWindows Azure Virtual Machines And Virtual Networks
Windows Azure Virtual Machines And Virtual Networks
 
AWS EBS
AWS EBSAWS EBS
AWS EBS
 
AWS Summit Sydney 2014 | AWSome Data Protection with Veeam - Session Sponsore...
AWS Summit Sydney 2014 | AWSome Data Protection with Veeam - Session Sponsore...AWS Summit Sydney 2014 | AWSome Data Protection with Veeam - Session Sponsore...
AWS Summit Sydney 2014 | AWSome Data Protection with Veeam - Session Sponsore...
 
Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...
Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...
Amazon RDS for MySQL – Diagnostics, Security, and Data Migration (DAT302) | A...
 
High Performance Computing Presentation
High Performance Computing PresentationHigh Performance Computing Presentation
High Performance Computing Presentation
 
Soyez le maître du PRA - MS Cloud Summit Paris 2017
Soyez le maître du PRA - MS Cloud Summit Paris 2017Soyez le maître du PRA - MS Cloud Summit Paris 2017
Soyez le maître du PRA - MS Cloud Summit Paris 2017
 
Ceph Day Seoul - Ceph: a decade in the making and still going strong
Ceph Day Seoul - Ceph: a decade in the making and still going strong Ceph Day Seoul - Ceph: a decade in the making and still going strong
Ceph Day Seoul - Ceph: a decade in the making and still going strong
 
AWS - an introduction to bursting (GP2 - T2)
AWS - an introduction to bursting (GP2 - T2)AWS - an introduction to bursting (GP2 - T2)
AWS - an introduction to bursting (GP2 - T2)
 

En vedette

TechTalk v2.0 - Performance tuning Cassandra + AWS
TechTalk v2.0 - Performance tuning Cassandra + AWSTechTalk v2.0 - Performance tuning Cassandra + AWS
TechTalk v2.0 - Performance tuning Cassandra + AWS
Pythian
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State Drives
Rick Branson
 
Gianluigi Viscusi, Informatica per le PA.
Gianluigi Viscusi, Informatica per le PA.Gianluigi Viscusi, Informatica per le PA.
Gianluigi Viscusi, Informatica per le PA.
Andrea Rossetti
 
Appendoectomy
AppendoectomyAppendoectomy
Appendoectomy
medgadget
 
Miller's Moments
Miller's MomentsMiller's Moments
Miller's Moments
kmiller210
 
Marsh territorial world_bank
Marsh territorial world_bankMarsh territorial world_bank
Marsh territorial world_bank
jexxon
 

En vedette (20)

TechTalk v2.0 - Performance tuning Cassandra + AWS
TechTalk v2.0 - Performance tuning Cassandra + AWSTechTalk v2.0 - Performance tuning Cassandra + AWS
TechTalk v2.0 - Performance tuning Cassandra + AWS
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State Drives
 
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
(PFC306) Performance Tuning Amazon EC2 Instances | AWS re:Invent 2014
 
Gianluigi Viscusi, Informatica per le PA.
Gianluigi Viscusi, Informatica per le PA.Gianluigi Viscusi, Informatica per le PA.
Gianluigi Viscusi, Informatica per le PA.
 
Enciams
EnciamsEnciams
Enciams
 
Video und Web 2.0
Video und Web 2.0Video und Web 2.0
Video und Web 2.0
 
Bren!!!! She
Bren!!!! SheBren!!!! She
Bren!!!! She
 
She (Marce Y Pato)
She (Marce Y Pato)She (Marce Y Pato)
She (Marce Y Pato)
 
Appendoectomy
AppendoectomyAppendoectomy
Appendoectomy
 
Iter Pct Avv
Iter Pct AvvIter Pct Avv
Iter Pct Avv
 
Raves
RavesRaves
Raves
 
Video Spielfelder
Video SpielfelderVideo Spielfelder
Video Spielfelder
 
Sim tutors t2 2011
Sim tutors t2 2011Sim tutors t2 2011
Sim tutors t2 2011
 
Loch Skene Glaciated Landscape
 Loch Skene Glaciated Landscape Loch Skene Glaciated Landscape
Loch Skene Glaciated Landscape
 
1 Conociendo Venezuela
1 Conociendo Venezuela1 Conociendo Venezuela
1 Conociendo Venezuela
 
Miller's Moments
Miller's MomentsMiller's Moments
Miller's Moments
 
Tecnologie dell'Informazione e della Comunicazione per le Smart Cities
Tecnologie dell'Informazione e della Comunicazione per le Smart CitiesTecnologie dell'Informazione e della Comunicazione per le Smart Cities
Tecnologie dell'Informazione e della Comunicazione per le Smart Cities
 
Amy
AmyAmy
Amy
 
Marsh territorial world_bank
Marsh territorial world_bankMarsh territorial world_bank
Marsh territorial world_bank
 
Geovisualisation
GeovisualisationGeovisualisation
Geovisualisation
 

Similaire à AWS Summit Bogotá Track Avanzado: EC2 avanzado

Similaire à AWS Summit Bogotá Track Avanzado: EC2 avanzado (20)

Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance Performance
 
(CMP402) Amazon EC2 Instances Deep Dive
(CMP402) Amazon EC2 Instances Deep Dive(CMP402) Amazon EC2 Instances Deep Dive
(CMP402) Amazon EC2 Instances Deep Dive
 
20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS20160503 Amazed by AWS | Tips about Performance on AWS
20160503 Amazed by AWS | Tips about Performance on AWS
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance Performance
 
Choosing the Right EC2 Instance and Applicable Use Cases - AWS June 2016 Webi...
Choosing the Right EC2 Instance and Applicable Use Cases - AWS June 2016 Webi...Choosing the Right EC2 Instance and Applicable Use Cases - AWS June 2016 Webi...
Choosing the Right EC2 Instance and Applicable Use Cases - AWS June 2016 Webi...
 
Deep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance PerformanceDeep Dive on Delivering Amazon EC2 Instance Performance
Deep Dive on Delivering Amazon EC2 Instance Performance
 
Deep Dive Amazon EC2
Deep Dive Amazon EC2Deep Dive Amazon EC2
Deep Dive Amazon EC2
 
CMP301_Deep Dive on Amazon EC2 Instances
CMP301_Deep Dive on Amazon EC2 InstancesCMP301_Deep Dive on Amazon EC2 Instances
CMP301_Deep Dive on Amazon EC2 Instances
 
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech TalksDeep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
 
Getting Started with AWS EC2. From Zero to Hero
Getting Started with AWS EC2. From Zero to HeroGetting Started with AWS EC2. From Zero to Hero
Getting Started with AWS EC2. From Zero to Hero
 
Introduction on Amazon EC2
Introduction on Amazon EC2Introduction on Amazon EC2
Introduction on Amazon EC2
 
Running BSD on AWS
Running BSD on AWSRunning BSD on AWS
Running BSD on AWS
 
Ceph Day Beijing - Ceph all-flash array design based on NUMA architecture
Ceph Day Beijing - Ceph all-flash array design based on NUMA architectureCeph Day Beijing - Ceph all-flash array design based on NUMA architecture
Ceph Day Beijing - Ceph all-flash array design based on NUMA architecture
 
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA ArchitectureCeph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWSAWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
 
Getting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute ServicesGetting Started with Amazon EC2 and Compute Services
Getting Started with Amazon EC2 and Compute Services
 
Getting Started with Amazon EC2 and AWS Compute Services
Getting Started with Amazon EC2 and AWS Compute ServicesGetting Started with Amazon EC2 and AWS Compute Services
Getting Started with Amazon EC2 and AWS Compute Services
 
VMworld 2013: Extreme Performance Series: Monster Virtual Machines
VMworld 2013: Extreme Performance Series: Monster Virtual Machines VMworld 2013: Extreme Performance Series: Monster Virtual Machines
VMworld 2013: Extreme Performance Series: Monster Virtual Machines
 
AWS Summit London 2014 | Introduction to Amazon EC2 (100)
AWS Summit London 2014 | Introduction to Amazon EC2 (100)AWS Summit London 2014 | Introduction to Amazon EC2 (100)
AWS Summit London 2014 | Introduction to Amazon EC2 (100)
 

Plus de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Plus de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

AWS Summit Bogotá Track Avanzado: EC2 avanzado

  • 2. EC2: Avanzado Henry Alvarado Arquitecto de soluciones Amazon Web Services
  • 3. • What is the EC2 instance platform and a virtualization primer • How to make the most of your EC2 instance experience through the lens of three instance types • How to think about the future of EC2 instances Agenda
  • 6. Amazon EC2 Instances Host Server Hypervisor Guest 1 Guest 2 Guest n
  • 7.
  • 9. Virtualization Primer: x86 CPU • Prior to Intel VT-x – Binary translation – Para-virtualization (PV) • After Intel VT-x – Hardware assisted virtualization (HVM) • PV vs. HVM Amazon Machine Images • vCPU scheduling choices and variability
  • 11. Virtualization Primer: I/O and Devices • Scheduling I/O requests between virtual devices and shared physical hardware • Split driver model for shared devices; requires host resources • Intel VT-d – Direct pass through and IOMMU for dedicated devices
  • 12. Our Philosophy • Bigger, faster, less expensive, consistent, and flexible • Our bar is bare metal performance • Customers help us prioritize our roadmap • Look under the hood through the lens of three recent platforms: C4, T2, and I2
  • 13. Make the most of your experience
  • 15. Review: T2 Instances • Lowest cost EC2 instance at $0.013 per hour • Burstable vs. Fixed Performance Name vCPUs Baseline Performance Platform RAM (GiB) CPU Credits / Hour t2.micro 1 10% 32-bit or 64-bit 1 6 t2.small 1 20% 32-bit or 64-bit 2 12 t2.medium 2 40% 32-bit or 64-bit 4 24 t2.large 2 60% 64-bit 8 36
  • 16. Tip: Understand CPU credits • http://aws.amazon.com/blogs/aws/low-cost- burstable-ec2-instances/ • http://aws.amazon.com/ec2/instance-types/t2/ • Attend this session
  • 17. How Credits Work Baseline Rate Credit Balance • A CPU Credit provides the performance of a full CPU core for one minute • An instance earns CPU credits at a steady rate • An instance consumes credits when active • Credits expire (leak) over time Burst Rate
  • 18. CPU Credits • A CPU Credit provides the performance of a full CPU core for one minute • Hefty initial CPU credit balance for good startup experience • Use credits when active, accrue credits when idle • Transparency on credit balances
  • 19. Tip: Monitor CPU credit balance
  • 21. Review: I2 Instances • 16 vCPU: 3.2 TB SSD; 32 vCPU: 6.4 TB SSD • 365K random read IOPS for 32 vCPU instance Model vCPU Memory (GiB) Storage Read IOPS Write IOPS i2.xlarge 4 30.5 1 x 800 SSD 35,000 35,000 i2.2xlarge 8 61 2 x 800 SSD 75,000 75,000 i2.4xlarge 16 122 4 x 800 SSD 175,000 155,000 i2.8xlarge 32 244 8 x 800 SSD 365,000 315,000
  • 22. Tip: Use 3.8+ kernel • Amazon Linux 13.09 or later • Ubuntu 14.04 or later • RHEL7 or later • Etc.
  • 23. Pre-3.8.0 Kernels • All I/O must pass through I/O Domain • Requires “grant mapping” prior to 3.8.0 • Grant mappings are expensive operations due to TLB flushes read(fd, buffer, BLOCK_SIZE)
  • 24. 3.8.0+ Kernels – Persistent and Indirect • Grant mappings are setup in a pool once • Data is copied in and out of the grant pool • Copying is significantly faster than remapping read(fd, buffer, BLOCK_SIZE)
  • 25. Tip: Issue TRIM or Overprovision
  • 26. SSDs and Wear Leveling • FLASH has a limited number of writes per physical sector – Sectors wear out; must be erased before being rewritten to – Erasing actually sets values to all 1s, slow • Modern drive firmware is very sophisticated to extend life of FLASH • TRIM and/or over provisioning helps avoid garbage collection and write amplification
  • 27. Flash Translation Layer • All new writes go to TAIL • Random write == Sequential write • Even sector wear (Wear Leveling) HEAD TAIL
  • 28. Garbage Collection • New writes have to search for free space • Results in garbage collection pauses • Large writes may require defragmentation HEAD TAIL
  • 30. Review: C3 Instances • Intel E5-2680 v2 at 2.8 GHz • Enhanced networking Model vCPU Memory (GiB) Storage (GB) c3.large 2 3.75 2 x 16 SSD c3.xlarge 4 7.5 2 x 40 SSD c3.2xlarge 8 15 2 x 80 SSD c3.4xlarge 16 30 2 x 160 SSD c3.8xlarge 32 60 2 x 320 SSD
  • 31. Tip: Use PV-HVM AMIs with EBS
  • 32. Why PV-HVM is faster than PV • PV-HVM allows Application to call directly into the Kernel • PV requires going through the VMM • Applications that are system call bound are most affected Kernel Application Kernel Application VMM Application VMM Kernel Bare Metal PV-HVM PV
  • 33. Tip: Use TSC as clocksource
  • 34. Time Keeping Explained • Time keeping in an instance is deceptively hard • gettimeofday(), clock_gettime(), QueryPerformanceCounter() • The TSC – CPU counter, accessible from userspace – Requires calibration, vDSO – Invariant on Sandy Bridge+ processors • Xen pvclock; does not support vDSO • On current generation instances, use TSC as clocksource
  • 36. Summary • Just scratching the surface • Visit the EC2 Instance Documentation for more tips and tricks