SlideShare une entreprise Scribd logo
1  sur  34
PALLOC: DRAM Bank-Aware Memory
Allocator for Performance Isolation on
Multicore Platforms
Heechul Yun*, Renato Mancuso+, Zheng-Pei Wu#, Rodolfo Pellizzoni#
*University of Kansas, +University of Illinois , #University of Waterloo
Multicore
2
Server Desktop Mobile RT/Embedded
Challenges: Shared Memory Hierarchy
3
CPU
Memory Hierarchy
Unicore
T1 T2
Core
1
Memory Hierarchy
Core
2
Core
3
Core
4
Multicore
T
1
T
2
T
3
T
4
T
5
T
6
T
7
T
8
Performance Impact
Impact of Memory Interference
• Setup: Core0: X-axis, Core1-3: 470.lbm x 3 (interference)
• Slowdown ratio = Solo IPC / Corun IPC
4
Slowdownratio
0.0
1.0
2.0
3.0
4.0
5.0
6.0
7.0
(*) Measured on Intel Xeon 3530 (4 cores), 8GB 1ch DDR3 DRAM
Memory Performance Isolation
• Q. How to reduce memory contention?
Part 1 Part 2 Part 3 Part 4
5
Core1 Core2 Core3 Core4
DRAM
Memory Controller
Outline
• Motivation
• Background & Problems
• PALLOC: DRAM Bank Allocation Mgmt.
• Evaluation
• Conclusion
6
Background: DRAM Organization
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4
• Have multiple banks
• Different banks can be
accessed in parallel
Best-case
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4
Fast
• Peak = 10.6 GB/s
– DDR3 1333Mhz
Best-case
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4
• Peak = 10.6 GB/s
– DDR3 1333Mhz
• Out-of-order processors
Fast
Most-cases
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4
Mess
• Performance = ??
Worst-case
• 1bank b/w
– Less than peak b/w
– How much?
Slow
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4
Background: DRAM Operation
• Stateful per-bank access time
– Row miss: 19 cycles
– Row hit: 9 cycles
(*) PC6400-DDR2 with 5-5-5 (RAS-CAS-CL latency setting)
Row 1
Row 2
Row 3
Row 4
Row 5
Bank 1
Row Buffer
activate
precharge
read/write
Col7
READ (Bank 1, Row 3, Col 7)
Real Worst-case
1 bank & always row misses  ~1/10 peak b/w
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core
1
Core
2
Core
3
Core
4
Row 1
Row 2
Row 3
Row 4
Row 1
Row 2
…
Request order
time
Problem
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4
• OS does NOT know
DRAM banks
• OS memory pages are
spread all over multiple
banks
????
Unpredictable
memory
performance
SMP OS
Outline
• Motivation
• Background & Problems
• PALLOC: DRAM Bank Allocation Mgmt.
• Evaluation
• Conclusion
15
DRAM DIMM
PALLOC
CPC
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4
• OS is aware of
DRAM mapping
• Each page can be
allocated to a
desired DRAM
bank
Flexible
allocation
policy
SMP OS
PALLOC
L3
DRAM DIMM
Memory Controller (MC)
Bank
4
Bank
3
Bank
2
Bank
1
Core1 Core2 Core3 Core4 • Private banking
– Allocate pages
on certain
exclusively
assigned banks
Eliminate
Inter-core bank
conflicts
Identifying Memory Mapping
• Memory mappings are platform specific
• We developed a detection tool software
18
12141921
banks banks
cache-sets
31 06
1418
banks
31 067
channel
cache-sets
16
Intel Xeon 3530 + 4GiB DDR3 DIMM (16 banks)
Freescale P4080 + 2x2 GiB DDR3 DIMM (32 banks)
PALLOC Implementation
• Modified Linux kernel’s buddy allocator
– DRAM bank-aware page frame allocation at each
page fault
19
Simplified
Pseudocode
20
PALLOC Interface
• Example: per-core private banking (PB)
21
# cd /sys/fs/cgroup
# mkdir core0 core1 core2 core3
 create 4 cgroup partitions
# echo 0-3 > core0/palloc.dram_bank
 assign bank 0 ~ 3 for the core0 partition.
# echo 4-7 > core1/palloc.dram_bank
# echo 8-11 > core2/palloc.dram_bank
# echo 12-15 > core3/palloc.dram_bank
Outline
• Motivation
• Background & Problems
• PALLOC: DRAM Bank Allocation Mgmt.
• Evaluation
• Conclusion
22
Evaluation Platforms
• Platform #1: Intel Xeon 3530
– X86-64, 4 cores, 8MB shared L3 cache
– 1 x 4GB DDR3 DRAM module (16 banks)
– Modified Linux 3.6.0
• Platform #2: Freescale P4080
– PowerPC, 8 cores, 2MB shared LLC
– 2 x 2GB DDR3 DRAM module (32 banks)
– Modified Linux 3.0.6
23
Samebank vs. Diffbank
• Samebank: All cores  Bank0
• Diffbank: Core0  Bank0, Core1-3  Bank 1-3
– Zero interference !!!
24
Real-Time Performance
• Setup: HRT  Core0, X-server  Core1
• Buddy: no bank control (use all Bank 0-15)
• Diffbank: Core0  Bank0-7, Core1  Bank8-15
25
Buddy(solo) PALLOC(diffbank)Buddy
SPEC2006
• Use 15 high-medium memory intensive benchmarks
26
Performance Impact on Unicore
• #of bank vs. performance on a single core
• Finding: bank partitioning negatively affect performance due to reduced
MLP, but not significant for most benchmarks
27
NormalizedIPC
0.00
0.20
0.40
0.60
0.80
1.00
1.20
4banks 8banks 16banks Buddy
Performance Isolation on 4 Cores
• Setup: Core0: X-axis, Core1-3: 470.lbm x 3 (interference)
• PB: DRAM bank partitioning only;
• PB+PC: DRAM bank and Cache partitioning
• Finding: bank (and cache) partitioning improves isolation, but far from ideal
28
Slowdownratio
0.00
1.00
2.00
3.00
4.00
5.00
6.00
7.00
buddy PB PB+PC
Outline
• Motivation
• Background & Problems
• PALLOC: DRAM Bank Allocation Mgmt.
• Evaluation
• Conclusion
29
Conclusion
• PALLOC
– DRAM bank aware kernel level memory allocator
– Can eliminate inter-core bank conflicts
• Findings
– Private banking improves performance isolation
– But, far from ideal isolation: memory bus bottleneck
• Future work
– Integration with memory bandwidth control (MemGuard
[RTAS’13])
– Multichannel, NUMA systems.
30
https://github.com/heechul/palloc
Thank you.
Questions?
31
Data Intensive Applications
32
• Multimedia processing, object
tracking, game, big data(*), …
• More stress on the memory hierarchy
(*) Source: Intel, The Growing Importance of Big Data and Real-Time Analytics, 2012
Samebank vs. Diffbank on P4080
33
Impact of Cache Partitioning
• PB: private DRAM banking
• PB+PC: private DRAM banking & private cache partitioning
34

Contenu connexe

Dernier

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Dernier (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

PALLOC: DRAM Bank-Aware Memory Allocator for Performance Isolation on Multicore Platforms

  • 1. PALLOC: DRAM Bank-Aware Memory Allocator for Performance Isolation on Multicore Platforms Heechul Yun*, Renato Mancuso+, Zheng-Pei Wu#, Rodolfo Pellizzoni# *University of Kansas, +University of Illinois , #University of Waterloo
  • 3. Challenges: Shared Memory Hierarchy 3 CPU Memory Hierarchy Unicore T1 T2 Core 1 Memory Hierarchy Core 2 Core 3 Core 4 Multicore T 1 T 2 T 3 T 4 T 5 T 6 T 7 T 8 Performance Impact
  • 4. Impact of Memory Interference • Setup: Core0: X-axis, Core1-3: 470.lbm x 3 (interference) • Slowdown ratio = Solo IPC / Corun IPC 4 Slowdownratio 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 (*) Measured on Intel Xeon 3530 (4 cores), 8GB 1ch DDR3 DRAM
  • 5. Memory Performance Isolation • Q. How to reduce memory contention? Part 1 Part 2 Part 3 Part 4 5 Core1 Core2 Core3 Core4 DRAM Memory Controller
  • 6. Outline • Motivation • Background & Problems • PALLOC: DRAM Bank Allocation Mgmt. • Evaluation • Conclusion 6
  • 7. Background: DRAM Organization L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4 • Have multiple banks • Different banks can be accessed in parallel
  • 8. Best-case L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4 Fast • Peak = 10.6 GB/s – DDR3 1333Mhz
  • 9. Best-case L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4 • Peak = 10.6 GB/s – DDR3 1333Mhz • Out-of-order processors Fast
  • 10. Most-cases L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4 Mess • Performance = ??
  • 11. Worst-case • 1bank b/w – Less than peak b/w – How much? Slow L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4
  • 12. Background: DRAM Operation • Stateful per-bank access time – Row miss: 19 cycles – Row hit: 9 cycles (*) PC6400-DDR2 with 5-5-5 (RAS-CAS-CL latency setting) Row 1 Row 2 Row 3 Row 4 Row 5 Bank 1 Row Buffer activate precharge read/write Col7 READ (Bank 1, Row 3, Col 7)
  • 13. Real Worst-case 1 bank & always row misses  ~1/10 peak b/w L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core 1 Core 2 Core 3 Core 4 Row 1 Row 2 Row 3 Row 4 Row 1 Row 2 … Request order time
  • 14. Problem L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4 • OS does NOT know DRAM banks • OS memory pages are spread all over multiple banks ???? Unpredictable memory performance SMP OS
  • 15. Outline • Motivation • Background & Problems • PALLOC: DRAM Bank Allocation Mgmt. • Evaluation • Conclusion 15
  • 16. DRAM DIMM PALLOC CPC Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4 • OS is aware of DRAM mapping • Each page can be allocated to a desired DRAM bank Flexible allocation policy SMP OS
  • 17. PALLOC L3 DRAM DIMM Memory Controller (MC) Bank 4 Bank 3 Bank 2 Bank 1 Core1 Core2 Core3 Core4 • Private banking – Allocate pages on certain exclusively assigned banks Eliminate Inter-core bank conflicts
  • 18. Identifying Memory Mapping • Memory mappings are platform specific • We developed a detection tool software 18 12141921 banks banks cache-sets 31 06 1418 banks 31 067 channel cache-sets 16 Intel Xeon 3530 + 4GiB DDR3 DIMM (16 banks) Freescale P4080 + 2x2 GiB DDR3 DIMM (32 banks)
  • 19. PALLOC Implementation • Modified Linux kernel’s buddy allocator – DRAM bank-aware page frame allocation at each page fault 19
  • 21. PALLOC Interface • Example: per-core private banking (PB) 21 # cd /sys/fs/cgroup # mkdir core0 core1 core2 core3  create 4 cgroup partitions # echo 0-3 > core0/palloc.dram_bank  assign bank 0 ~ 3 for the core0 partition. # echo 4-7 > core1/palloc.dram_bank # echo 8-11 > core2/palloc.dram_bank # echo 12-15 > core3/palloc.dram_bank
  • 22. Outline • Motivation • Background & Problems • PALLOC: DRAM Bank Allocation Mgmt. • Evaluation • Conclusion 22
  • 23. Evaluation Platforms • Platform #1: Intel Xeon 3530 – X86-64, 4 cores, 8MB shared L3 cache – 1 x 4GB DDR3 DRAM module (16 banks) – Modified Linux 3.6.0 • Platform #2: Freescale P4080 – PowerPC, 8 cores, 2MB shared LLC – 2 x 2GB DDR3 DRAM module (32 banks) – Modified Linux 3.0.6 23
  • 24. Samebank vs. Diffbank • Samebank: All cores  Bank0 • Diffbank: Core0  Bank0, Core1-3  Bank 1-3 – Zero interference !!! 24
  • 25. Real-Time Performance • Setup: HRT  Core0, X-server  Core1 • Buddy: no bank control (use all Bank 0-15) • Diffbank: Core0  Bank0-7, Core1  Bank8-15 25 Buddy(solo) PALLOC(diffbank)Buddy
  • 26. SPEC2006 • Use 15 high-medium memory intensive benchmarks 26
  • 27. Performance Impact on Unicore • #of bank vs. performance on a single core • Finding: bank partitioning negatively affect performance due to reduced MLP, but not significant for most benchmarks 27 NormalizedIPC 0.00 0.20 0.40 0.60 0.80 1.00 1.20 4banks 8banks 16banks Buddy
  • 28. Performance Isolation on 4 Cores • Setup: Core0: X-axis, Core1-3: 470.lbm x 3 (interference) • PB: DRAM bank partitioning only; • PB+PC: DRAM bank and Cache partitioning • Finding: bank (and cache) partitioning improves isolation, but far from ideal 28 Slowdownratio 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 buddy PB PB+PC
  • 29. Outline • Motivation • Background & Problems • PALLOC: DRAM Bank Allocation Mgmt. • Evaluation • Conclusion 29
  • 30. Conclusion • PALLOC – DRAM bank aware kernel level memory allocator – Can eliminate inter-core bank conflicts • Findings – Private banking improves performance isolation – But, far from ideal isolation: memory bus bottleneck • Future work – Integration with memory bandwidth control (MemGuard [RTAS’13]) – Multichannel, NUMA systems. 30 https://github.com/heechul/palloc
  • 32. Data Intensive Applications 32 • Multimedia processing, object tracking, game, big data(*), … • More stress on the memory hierarchy (*) Source: Intel, The Growing Importance of Big Data and Real-Time Analytics, 2012
  • 33. Samebank vs. Diffbank on P4080 33
  • 34. Impact of Cache Partitioning • PB: private DRAM banking • PB+PC: private DRAM banking & private cache partitioning 34

Notes de l'éditeur

  1. Soon more rt/embedded systems will use multicore as well.
  2. In the unicore systems, CPU time is the most important shared resource determining application’s performance. In the multicore systems, however, memory performance is also very important as multiple cores can concurrently access the memory and affect performance in significant ways.