Presentation is loading. Please wait.

Presentation is loading. Please wait.

NUMA Optimization of Java VM

Similar presentations


Presentation on theme: "NUMA Optimization of Java VM"— Presentation transcript:

1 NUMA Optimization of Java VM
성균관대학교 장재영 (이재욱 교수 연구실) 영종도 스카이 리조트

2 3차년도 개발 목표 및 계획 목표: 모노리틱 운영체제에서 실행 시스템의 스케일러빌리티 지원 상세 설계 내용
Java Virtual Machine (JVM)의 NUMA환경 메모리 지역성 (locality) 개선 연구 2차년도 상세 설계 내용 구현 및 성능 평가: KNL 출시 지연시, 에뮬레이션 환경에서 평가 JVM의 garbage collector (GC) 스케일러빌리티 개선을 위한 알고리즘 설계 실행 시스템의 GC 스케일러빌리티 측정 및 병목 분석 GC 스케일러빌리티 개선을 위한 실행 환경 알고리즘 상세 설계 4월 5월 6월 7월 8월 9월 10월 11월 12월 모노리틱 운영체제에서 실행 시스템의 스케일러빌리티 지원 상세 설계 NUMA 환경 JVM 메모리 지역성 상세 설계 내용 구현 NUMA 환경 JVM 메모리 지역성 개선 성능 평가 GC 스케일러빌리티 성능 측정 및 병목 분석 GC 스케일러 빌리티 개선 알고리즘 상세 설계

3 연구배경 및 문제점 Future manycore platforms will be based on near-far memory systems. e.g., Intel’s KNL: 3D stacked DRAM (near) + off-package DDR4 (far) e.g., DDR4 DRAM (near) + Intel’s 3D XPoint (far – NVM-based memory) A novel NUMA platform - different from conventional multi-socket NUMA NUMA optimization is key for scalable performance on those platforms. Especially for emerging memory-intensive workloads such as in-memory DB and massively parallel processing engine (e.g., Spark)

4 NUMA-aware JVM Optimization (1): Emulation Testbed
Testbed: Using background traffic generators* Performance slowdown is about 5x (5.27~5.49) slowdown with memory intensive program Consistent with recent report with Intel Knights Landing Over 5x difference between in-package MCDRAM vs. DDR4 for STREAM** * [PACT ’15] Mark Oskin et al., A Software-managed Approach to Die-stacked DRAM ** Reported in ISC ‘15 IXPUG Workshop

5 NUMA-aware JVM Optimization (2): Workloads
Memory intensive workloads Apache Spark: Big data processing applications (PageRank, TeraSort) DaCapo: Large heap benchmarks (h2, tradebeans, tradesoap) Performance potential: all-near vs. interleaved (1:8) memory allocation 43% difference in execution time on average Heap (GB) LLC MPKI # GCs (Full) PageRank 8 1.94 89 (1) TeraSort 1.09 100 (1) tradebeans 2 1.10 175 (9) tradesoap 3.32 289 (15) h2 0.93 54 (6)

6 NUMA-aware JVM Optimization (3): Baseline Design
Allocating objects in near memory first Reduce allocation overhead Benefit from near memory accesses Additional capacity in far memory Reduces YGC overhead Utilizing redundant space in far memory Tenuring based on objects’ hotness

7 NUMA-aware JVM Optimization (4): Two Main Challenges
Hotness-aware tenuring (migration) 의 두 가지 디자인 이슈 How to measure hotness of an object? 현재: Object header에 counter를 두어 access 수를 count 함 (before- cache) 문제점: before-cache accesses != after-cache accesses 해결 방향 Before-cache access를 after-cache access의 proxy metric으로 사용 (검증필요) Object의 reuse distance등 다른 metric 사용 How to keep the overhead of access counting manageable? 현재: 모든 object access의 전수(全數) counting 문제점: too slow Sampling 기법 적용을 통한 오버헤드 저감 Object 대신 allocation site(new X)의 hotness를 기반으로 분류

8 NUMA-aware JVM Optimization (5): Multi-Generational Heap Layout
Near-far memory system에서 heap layout 구성에 관한 세 가지 질문: 제한된 양의 near memory를 각각의 generation에 어떻게 할당할 것인가? 가용한 near memory의 양과 generation space sizing의 상관관계는? 하나의 generation이 near-far memory에 걸쳐 있을 때 최적의 구성 방법은?

9 NUMA-aware JVM Optimization (6): Multi-Generational Heap Layout
Q1: 제한된 양의 near memory를 각각의 generation에 어떻게 할당할 것인가? In most cases it is beneficial to assign all available near memory to a single generation rather than distribute it over multiple generations. The favored generation is application-specific. PageRank (favoring Young) h2 (favoring Old)

10 NUMA-aware JVM Optimization (7): Multi-Generational Heap Layout
Q2: 가용한 near memory의 양과 generation space sizing의 상관관계는? Unless near memory is too small or too large, it is optimal to size the favored generation to be the same as the available near memory size (shown in red arrows). If the available near memory is too small or too large, coupling the size of favored generation to it is not a good strategy due to GC overhead (shown in blue arrows). PageRank

11 NUMA-aware JVM Optimization (8): Multi-Generational Heap Layout
Q3: 하나의 generation이 near-far memory에 걸쳐 있을 때 최적의 구성 방 법은? In most cases placing the near memory at the top of the heterogeneous generational space (first-chunk) achieves slightly better performance than interleaving near and far memory (interleaving). Young:Old Ratio Execution time difference between first-chunk policy and interleaving policy

12 Summary: 구현 결과물 현황 및 향후 계획
NUMA-optimized JVM ☐ Heap allocation 휴리스틱 설계 보완 및 개선 – 진행중 ☐ Heap allocation 휴리스틱 구현 – 진행중 ☐ NUMA-optimized JVM 성능 평가 – 진행 예정 ☐ Garbage collector (GC) 코드 분석 및 알고리즘 최적화 – 진행 예정 3차년도 결과물 (목표치) 논문: 최우수 학회 (0.5편), SCI 또는 우수학회 (1편) 상세설계서: GC 스케일러빌리티 개선 상세 설계서


Download ppt "NUMA Optimization of Java VM"

Similar presentations


Ads by Google