Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8240824: enhance print_full_memory_info on Linux by THP related infor…
…mation

Reviewed-by: dholmes, stuefe
  • Loading branch information
MBaesken committed Mar 17, 2020
1 parent b4ff6ab commit 6f7a103abc2b38ab7a8ad51872261914519f11bb
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/hotspot/os/linux/os_linux.cpp
@@ -2302,6 +2302,19 @@ void os::Linux::print_full_memory_info(outputStream* st) {
st->print("\n/proc/meminfo:\n");
_print_ascii_file("/proc/meminfo", st);
st->cr();

// some information regarding THPs; for details see
// https://www.kernel.org/doc/Documentation/vm/transhuge.txt
st->print_cr("/sys/kernel/mm/transparent_hugepage/enabled:");
if (!_print_ascii_file("/sys/kernel/mm/transparent_hugepage/enabled", st)) {
st->print_cr(" <Not Available>");
}
st->cr();
st->print_cr("/sys/kernel/mm/transparent_hugepage/defrag (defrag/compaction efforts parameter):");
if (!_print_ascii_file("/sys/kernel/mm/transparent_hugepage/defrag", st)) {
st->print_cr(" <Not Available>");
}
st->cr();
}

void os::Linux::print_ld_preload_file(outputStream* st) {

0 comments on commit 6f7a103

Please sign in to comment.