SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Último

"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
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
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Último (20)

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
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School 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
 
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
 
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
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
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
 

Destacado

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)
 

Destacado (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

Notas del editor

  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.