@@ -4477,15 +4477,15 @@ void os::Linux::numa_init() {
4477
4477
// bitmask when externally configured to run on all or fewer nodes.
4478
4478
4479
4479
if (!Linux::libnuma_init ()) {
4480
- disable_numa (" Failed to initialize libnuma" );
4480
+ disable_numa (" Failed to initialize libnuma" , true );
4481
4481
} else {
4482
4482
Linux::set_configured_numa_policy (Linux::identify_numa_policy ());
4483
4483
if (Linux::numa_max_node () < 1 ) {
4484
- disable_numa (" Only a single NUMA node is available" );
4484
+ disable_numa (" Only a single NUMA node is available" , false );
4485
4485
} else if (Linux::is_bound_to_single_mem_node ()) {
4486
- disable_numa (" The process is bound to a single NUMA node" );
4486
+ disable_numa (" The process is bound to a single NUMA node" , true );
4487
4487
} else if (Linux::mem_and_cpu_node_mismatch ()) {
4488
- disable_numa (" The process memory and cpu node configuration does not match" );
4488
+ disable_numa (" The process memory and cpu node configuration does not match" , true );
4489
4489
} else {
4490
4490
LogTarget (Info,os) log ;
4491
4491
LogStream ls (log );
@@ -4527,11 +4527,15 @@ void os::Linux::numa_init() {
4527
4527
}
4528
4528
}
4529
4529
4530
- void os::Linux::disable_numa (const char * reason) {
4530
+ void os::Linux::disable_numa (const char * reason, bool warning ) {
4531
4531
if ((UseNUMA && FLAG_IS_CMDLINE (UseNUMA)) ||
4532
4532
(UseNUMAInterleaving && FLAG_IS_CMDLINE (UseNUMAInterleaving))) {
4533
- // Only issue a warning if the user explicitly asked for NUMA support
4534
- log_warning (os)(" NUMA support disabled: %s" , reason);
4533
+ // Only issue a message if the user explicitly asked for NUMA support
4534
+ if (warning) {
4535
+ log_warning (os)(" NUMA support disabled: %s" , reason);
4536
+ } else {
4537
+ log_info (os)(" NUMA support disabled: %s" , reason);
4538
+ }
4535
4539
}
4536
4540
FLAG_SET_ERGO (UseNUMA, false );
4537
4541
FLAG_SET_ERGO (UseNUMAInterleaving, false );
0 commit comments