Skip to content

Add demo for JEP 345 - NUMA-Aware Memory Allocation for G1#350

Merged
AloisSeckar merged 2 commits intoAloisSeckar:masterfrom
Abhineshhh:feat/jep-345-numa-g1
Nov 10, 2025
Merged

Add demo for JEP 345 - NUMA-Aware Memory Allocation for G1#350
AloisSeckar merged 2 commits intoAloisSeckar:masterfrom
Abhineshhh:feat/jep-345-numa-g1

Conversation

@Abhineshhh
Copy link
Contributor

close : #326

This PR implements a comprehensive informational demo for Java 14 feature JEP 345 - NUMA-Aware Memory Allocation for G1.

Changes

  • Created NumaAwareG1Demo.java in java14/jep345/
  • Added JEP 345 entry to JDK14Info.json with proper metadata
  • Registered demo in Java14DemoLoader.java (ordered by JEP number)

Demo Content

The demo provides detailed information about:

  • NUMA (Non-Uniform Memory Access) architecture
  • G1 GC improvements in Java 14 for NUMA systems
  • JVM flags to enable NUMA-aware allocation (-XX:+UseG1GC -XX:+UseNUMA)
  • Performance benefits on multi-socket machines (10-30% improvement for large heaps)
  • When and how to use this feature
  • Monitoring and verification methods with tools like numastat
  • Practical examples and commands

Key Features

  1. Detailed explanation of NUMA architecture and memory locality
  2. Before/After comparison showing G1 GC behavior changes
  3. JVM configuration examples with proper flags
  4. Performance considerations for different heap sizes
  5. OS-level integration examples (Linux numactl, Windows NUMA API)
  6. Debugging and monitoring tips using JVM logs

This is an informational demo as NUMA awareness is a JVM-level optimization that requires no code changes - only JVM flag configuration.

Copy link
Owner

@AloisSeckar AloisSeckar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Abhineshhh and thanks for new contribution. Just a two nitpicks to solve from me.

@AloisSeckar AloisSeckar added the changes requested The PR was checked and feedback provided. Changes must be done in order to get it accepted. label Nov 10, 2025
@AloisSeckar AloisSeckar added hacktoberfest Counts as submission for Hacktoberfest 2025 and removed changes requested The PR was checked and feedback provided. Changes must be done in order to get it accepted. labels Nov 10, 2025
@AloisSeckar AloisSeckar merged commit cd5eff0 into AloisSeckar:master Nov 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Counts as submission for Hacktoberfest 2025

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JEP 345 – NUMA-Aware Memory Allocation for G1

2 participants