public static boolean isNUMAOnce(ISupportConfig support, Platform platform) {
if (platform == Platform.Linux) {
try {
ProcessControl process = ProcessControl
.fromCommandLine(support, Collections.newArrayList("grep", "NUMA=y", "/boot/config-`uname -r`"), true);
Reader reader = process.getReader();
String content = Readers.readAll(reader);
process.stop();
boolean isNUMA = !content.isEmpty();
if (isNUMA) {
logger.warn("-----------------------------------------------\n"
+ "NUMA support is still alpha. If you have any Problems with it, please contact us.\n"
+ "-----------------------------------------------");
}
return isNUMA;
} catch (IOException ix) {
logger.debug("Could not determine presence of NUMA", ix);
}
}
return false;
}
}