SlideShare a Scribd company logo
1 of 18
Reducing Smartphone Application
Delay
through Read/Write Isolation
David T. Nguyen
David T. Nguyen 2
Figure Courtesy: Facebook Connectivity Lab
Real-world
Problem:
Application Delay
Introduction
 Research questions
◦ How does disk I/O affect smartphone application
response time?
◦ How to optimize storage to improve application
performance?
 Contributions
◦ First large-scale Android I/O study on 2611
devices
◦ Proposed SmartIO scheduler that reduces
application delay
◦ Evaluation indicates 21% reduced launch and
17% reduced run-time delay
David T. Nguyen 3
www.StoreBench.com
StoreBench Benchmark
4David T. Nguyen
 40% devices between 13% and 58%
 Significant CPU time spent waiting for storage
Iowait of 2611 Devices
CPU active time spent
waiting for storage I/O
5David T. Nguyen
 Seq. reads experience up to 626% slowdown when
blocked by concurrent writes (rand. up to 293%)
 I/O slowdown possible source of worse app launch
(reads dominate)
I/O Slowdown
6David T. Nguyen
Slowdown Asymmetry
7
 ReadSlowdown = Response time of a read in the
presence of a concurrent write / Response time of a
read when running alone
 WriteSlowdown = Response time of a write in the
presence of a concurrent read / Response time of a
write when running alone David T. Nguyen
Study Summary
Android devices spend up to 58% of
CPU active life time idling due to I/O
Reads experience up to 626%
slowdown when blocked by concurrent
writes
Large slowdown asymmetry (reads up
to 6.15; writes up to 1.6)
8David T. Nguyen
I/O Scheduler
Storage
Subsystem
Concurrency
Profiler
I/O Grouping
I/O Dispatch
I/O Priority Assignment
Kernel Space
User Space
SmartIO
David T. Nguyen 9
FLASH BLOCK DEVICE
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 7
queue queue
Idle
Best Effort
Real-time
write
read
Dispatch
Queue
Real-time Best Effort Idle
10
David T. Nguyen
11David T. Nguyen
 Nexus 4: 1-reader (128MB), 1-writer (128MB)
Seq. read slowdown improves from 6.15 to1.72
(gain), write worsens from 1.13 to 1.51 (cost)
Rand. read slowdown improves from 3.18 to 1.97
(gain), write worsens from 1.6 to 1.83 (cost)
Gain vs. Cost
12David T. Nguyen
 128MB mixed workload (first 10% reads, then 20%..)
 With increasing percentage of reads, response time
decreases (less writes means less slowdown)
 By changing scheduler (default CFQ to SmartIO) we
achieve on average 49% faster response (max. 66%)
Scheduler Comparison
13David T. Nguyen
Cold launch delays reduced on average
by 21% (warm by 13%)
Run-time delays reduced by 17% 14David T. Nguyen
 Facebook Inc.’s goal:
 cold launch < 5s on 2012 or newer devices
 cold launch < 10s on older devices
 RAZR (2012): 9.9s -> 6.2s
 Samsung S5 (2014): 3.7s -> 2.3s
Facebook Performance
15David T. Nguyen
Conclusion & Future Work
SmartIO
Reduces app delays through read/write
isolation and higher read priorities
Study other stages of app life cycle
(install, update, switch, uninstall)
Analyze impact of network I/O
16David T. Nguyen
Acknowledgments
Our shepherd Prof. Mahadev
Satyanarayanan (CMU)
Aaron Carroll (NICTA), Dr. Duy Le
(EMC), Dr. Tommy Nguyen (RPI), Mai
Anh Do (CNU), Daniel Graham (W&M)
17David T. Nguyen
Reducing Smartphone Application
Delay
through Read/Write Isolation
David T. Nguyen

More Related Content

Viewers also liked

Knowledge meets Community (updated)
Knowledge meets Community (updated)Knowledge meets Community (updated)
Knowledge meets Community (updated)Marc Jadoul
 
SLOPE Final Conference - sensors for timber grading in forest
SLOPE Final Conference - sensors for timber grading in forestSLOPE Final Conference - sensors for timber grading in forest
SLOPE Final Conference - sensors for timber grading in forestSLOPE Project
 
Week 5 lecture notes negation of modal auxiliaries
Week 5 lecture notes negation of modal auxiliariesWeek 5 lecture notes negation of modal auxiliaries
Week 5 lecture notes negation of modal auxiliariesPham Van van Dinh
 
Writing for Semantic Search
Writing for Semantic SearchWriting for Semantic Search
Writing for Semantic SearchZara Altair
 
Week 11 adverbial, adjuncts, conjuncts, disjuncts
Week 11   adverbial, adjuncts, conjuncts, disjunctsWeek 11   adverbial, adjuncts, conjuncts, disjuncts
Week 11 adverbial, adjuncts, conjuncts, disjunctsPham Van van Dinh
 
Presentation product development and R&D for digital healthcare
Presentation product development and R&D for digital healthcarePresentation product development and R&D for digital healthcare
Presentation product development and R&D for digital healthcareIshay Tentser
 
What to expect at u albany when the harsh
What to expect at u albany when the harshWhat to expect at u albany when the harsh
What to expect at u albany when the harshGreat Danes Daily
 

Viewers also liked (7)

Knowledge meets Community (updated)
Knowledge meets Community (updated)Knowledge meets Community (updated)
Knowledge meets Community (updated)
 
SLOPE Final Conference - sensors for timber grading in forest
SLOPE Final Conference - sensors for timber grading in forestSLOPE Final Conference - sensors for timber grading in forest
SLOPE Final Conference - sensors for timber grading in forest
 
Week 5 lecture notes negation of modal auxiliaries
Week 5 lecture notes negation of modal auxiliariesWeek 5 lecture notes negation of modal auxiliaries
Week 5 lecture notes negation of modal auxiliaries
 
Writing for Semantic Search
Writing for Semantic SearchWriting for Semantic Search
Writing for Semantic Search
 
Week 11 adverbial, adjuncts, conjuncts, disjuncts
Week 11   adverbial, adjuncts, conjuncts, disjunctsWeek 11   adverbial, adjuncts, conjuncts, disjuncts
Week 11 adverbial, adjuncts, conjuncts, disjuncts
 
Presentation product development and R&D for digital healthcare
Presentation product development and R&D for digital healthcarePresentation product development and R&D for digital healthcare
Presentation product development and R&D for digital healthcare
 
What to expect at u albany when the harsh
What to expect at u albany when the harshWhat to expect at u albany when the harsh
What to expect at u albany when the harsh
 

Similar to Reducing App Delay with Read/Write Isolation

Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...
Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...
Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...Principled Technologies
 
Performance in business terms
Performance in business termsPerformance in business terms
Performance in business termsStrangeloop
 
issues in computing
issues in computingissues in computing
issues in computingRirin Indah
 
IA3_presentation.pptx
IA3_presentation.pptxIA3_presentation.pptx
IA3_presentation.pptxKtonNguyn2
 
Lenovo ThinkPad 11e + Intel Core M processor = more time to learn
Lenovo ThinkPad 11e + Intel Core M processor = more time to learnLenovo ThinkPad 11e + Intel Core M processor = more time to learn
Lenovo ThinkPad 11e + Intel Core M processor = more time to learnPrincipled Technologies
 
Android goes reading
Android goes readingAndroid goes reading
Android goes readinginovex GmbH
 
Eventdriven I/O - A hands on introduction
Eventdriven I/O - A hands on introductionEventdriven I/O - A hands on introduction
Eventdriven I/O - A hands on introductionMarc Seeger
 
Pair Programming: overview and concepts
Pair Programming: overview and conceptsPair Programming: overview and concepts
Pair Programming: overview and conceptsLior Kirshner-Shalom
 
netw320w7labreport_gpubill
netw320w7labreport_gpubillnetw320w7labreport_gpubill
netw320w7labreport_gpubillGreg Pubill
 
Get more out of your Windows 10 laptop experience with SSD storage instead of...
Get more out of your Windows 10 laptop experience with SSD storage instead of...Get more out of your Windows 10 laptop experience with SSD storage instead of...
Get more out of your Windows 10 laptop experience with SSD storage instead of...Principled Technologies
 
Solid State Drives (SSDs) -What it Takes to Make Data Go Away
Solid State Drives (SSDs) -What it Takes to Make Data Go AwaySolid State Drives (SSDs) -What it Takes to Make Data Go Away
Solid State Drives (SSDs) -What it Takes to Make Data Go AwayBlancco
 
Key Considerations For Deduplication In The Enterprise
Key Considerations For Deduplication In The EnterpriseKey Considerations For Deduplication In The Enterprise
Key Considerations For Deduplication In The EnterpriseQuantum
 
Optimal Azure Database Development by Karel Coenye
 Optimal Azure Database Development by Karel Coenye Optimal Azure Database Development by Karel Coenye
Optimal Azure Database Development by Karel CoenyeITProceed
 
Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010
Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010
Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010ivan provalov
 
London Web Performance Meetup: Performance for mortal companies
London Web Performance Meetup: Performance for mortal companiesLondon Web Performance Meetup: Performance for mortal companies
London Web Performance Meetup: Performance for mortal companiesStrangeloop
 
Bandwidth, Throughput, Iops, And Flops
Bandwidth, Throughput, Iops, And FlopsBandwidth, Throughput, Iops, And Flops
Bandwidth, Throughput, Iops, And Flopsbillmenger
 
Reduce time to complete backups and restores with Transparent Snapshots with ...
Reduce time to complete backups and restores with Transparent Snapshots with ...Reduce time to complete backups and restores with Transparent Snapshots with ...
Reduce time to complete backups and restores with Transparent Snapshots with ...Principled Technologies
 
The economics of backup 5 ways disk backup can help your business
The economics of backup 5 ways disk backup can help your businessThe economics of backup 5 ways disk backup can help your business
The economics of backup 5 ways disk backup can help your businessServium
 
Business Continuity Presentation[1]
Business Continuity Presentation[1]Business Continuity Presentation[1]
Business Continuity Presentation[1]jrm1224
 

Similar to Reducing App Delay with Read/Write Isolation (20)

Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...
Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...
Performance comparison: Samsung solid-state drive vs. hard disk drive in a De...
 
Performance in business terms
Performance in business termsPerformance in business terms
Performance in business terms
 
issues in computing
issues in computingissues in computing
issues in computing
 
IA3_presentation.pptx
IA3_presentation.pptxIA3_presentation.pptx
IA3_presentation.pptx
 
Lenovo ThinkPad 11e + Intel Core M processor = more time to learn
Lenovo ThinkPad 11e + Intel Core M processor = more time to learnLenovo ThinkPad 11e + Intel Core M processor = more time to learn
Lenovo ThinkPad 11e + Intel Core M processor = more time to learn
 
Android goes reading
Android goes readingAndroid goes reading
Android goes reading
 
Eventdriven I/O - A hands on introduction
Eventdriven I/O - A hands on introductionEventdriven I/O - A hands on introduction
Eventdriven I/O - A hands on introduction
 
Pair Programming: overview and concepts
Pair Programming: overview and conceptsPair Programming: overview and concepts
Pair Programming: overview and concepts
 
IBM PROTECTIER: FROM BACKUP TO RECOVERY
IBM PROTECTIER: FROM BACKUP TO RECOVERYIBM PROTECTIER: FROM BACKUP TO RECOVERY
IBM PROTECTIER: FROM BACKUP TO RECOVERY
 
netw320w7labreport_gpubill
netw320w7labreport_gpubillnetw320w7labreport_gpubill
netw320w7labreport_gpubill
 
Get more out of your Windows 10 laptop experience with SSD storage instead of...
Get more out of your Windows 10 laptop experience with SSD storage instead of...Get more out of your Windows 10 laptop experience with SSD storage instead of...
Get more out of your Windows 10 laptop experience with SSD storage instead of...
 
Solid State Drives (SSDs) -What it Takes to Make Data Go Away
Solid State Drives (SSDs) -What it Takes to Make Data Go AwaySolid State Drives (SSDs) -What it Takes to Make Data Go Away
Solid State Drives (SSDs) -What it Takes to Make Data Go Away
 
Key Considerations For Deduplication In The Enterprise
Key Considerations For Deduplication In The EnterpriseKey Considerations For Deduplication In The Enterprise
Key Considerations For Deduplication In The Enterprise
 
Optimal Azure Database Development by Karel Coenye
 Optimal Azure Database Development by Karel Coenye Optimal Azure Database Development by Karel Coenye
Optimal Azure Database Development by Karel Coenye
 
Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010
Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010
Michigan Information Retrieval Enthusiasts Group Meetup - August 19, 2010
 
London Web Performance Meetup: Performance for mortal companies
London Web Performance Meetup: Performance for mortal companiesLondon Web Performance Meetup: Performance for mortal companies
London Web Performance Meetup: Performance for mortal companies
 
Bandwidth, Throughput, Iops, And Flops
Bandwidth, Throughput, Iops, And FlopsBandwidth, Throughput, Iops, And Flops
Bandwidth, Throughput, Iops, And Flops
 
Reduce time to complete backups and restores with Transparent Snapshots with ...
Reduce time to complete backups and restores with Transparent Snapshots with ...Reduce time to complete backups and restores with Transparent Snapshots with ...
Reduce time to complete backups and restores with Transparent Snapshots with ...
 
The economics of backup 5 ways disk backup can help your business
The economics of backup 5 ways disk backup can help your businessThe economics of backup 5 ways disk backup can help your business
The economics of backup 5 ways disk backup can help your business
 
Business Continuity Presentation[1]
Business Continuity Presentation[1]Business Continuity Presentation[1]
Business Continuity Presentation[1]
 

Recently uploaded

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Reducing App Delay with Read/Write Isolation

  • 1. Reducing Smartphone Application Delay through Read/Write Isolation David T. Nguyen
  • 2. David T. Nguyen 2 Figure Courtesy: Facebook Connectivity Lab Real-world Problem: Application Delay
  • 3. Introduction  Research questions ◦ How does disk I/O affect smartphone application response time? ◦ How to optimize storage to improve application performance?  Contributions ◦ First large-scale Android I/O study on 2611 devices ◦ Proposed SmartIO scheduler that reduces application delay ◦ Evaluation indicates 21% reduced launch and 17% reduced run-time delay David T. Nguyen 3
  • 5.  40% devices between 13% and 58%  Significant CPU time spent waiting for storage Iowait of 2611 Devices CPU active time spent waiting for storage I/O 5David T. Nguyen
  • 6.  Seq. reads experience up to 626% slowdown when blocked by concurrent writes (rand. up to 293%)  I/O slowdown possible source of worse app launch (reads dominate) I/O Slowdown 6David T. Nguyen
  • 7. Slowdown Asymmetry 7  ReadSlowdown = Response time of a read in the presence of a concurrent write / Response time of a read when running alone  WriteSlowdown = Response time of a write in the presence of a concurrent read / Response time of a write when running alone David T. Nguyen
  • 8. Study Summary Android devices spend up to 58% of CPU active life time idling due to I/O Reads experience up to 626% slowdown when blocked by concurrent writes Large slowdown asymmetry (reads up to 6.15; writes up to 1.6) 8David T. Nguyen
  • 9. I/O Scheduler Storage Subsystem Concurrency Profiler I/O Grouping I/O Dispatch I/O Priority Assignment Kernel Space User Space SmartIO David T. Nguyen 9
  • 10. FLASH BLOCK DEVICE 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 7 queue queue Idle Best Effort Real-time write read Dispatch Queue Real-time Best Effort Idle 10 David T. Nguyen
  • 12.  Nexus 4: 1-reader (128MB), 1-writer (128MB) Seq. read slowdown improves from 6.15 to1.72 (gain), write worsens from 1.13 to 1.51 (cost) Rand. read slowdown improves from 3.18 to 1.97 (gain), write worsens from 1.6 to 1.83 (cost) Gain vs. Cost 12David T. Nguyen
  • 13.  128MB mixed workload (first 10% reads, then 20%..)  With increasing percentage of reads, response time decreases (less writes means less slowdown)  By changing scheduler (default CFQ to SmartIO) we achieve on average 49% faster response (max. 66%) Scheduler Comparison 13David T. Nguyen
  • 14. Cold launch delays reduced on average by 21% (warm by 13%) Run-time delays reduced by 17% 14David T. Nguyen
  • 15.  Facebook Inc.’s goal:  cold launch < 5s on 2012 or newer devices  cold launch < 10s on older devices  RAZR (2012): 9.9s -> 6.2s  Samsung S5 (2014): 3.7s -> 2.3s Facebook Performance 15David T. Nguyen
  • 16. Conclusion & Future Work SmartIO Reduces app delays through read/write isolation and higher read priorities Study other stages of app life cycle (install, update, switch, uninstall) Analyze impact of network I/O 16David T. Nguyen
  • 17. Acknowledgments Our shepherd Prof. Mahadev Satyanarayanan (CMU) Aaron Carroll (NICTA), Dr. Duy Le (EMC), Dr. Tommy Nguyen (RPI), Mai Anh Do (CNU), Daniel Graham (W&M) 17David T. Nguyen
  • 18. Reducing Smartphone Application Delay through Read/Write Isolation David T. Nguyen