mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8240824: enhance print_full_memory_info on Linux by THP related information
Reviewed-by: dholmes, stuefe
This commit is contained in:
parent
b4ff6abe63
commit
6f7a103abc
1 changed files with 13 additions and 0 deletions
|
@ -2302,6 +2302,19 @@ void os::Linux::print_full_memory_info(outputStream* st) {
|
||||||
st->print("\n/proc/meminfo:\n");
|
st->print("\n/proc/meminfo:\n");
|
||||||
_print_ascii_file("/proc/meminfo", st);
|
_print_ascii_file("/proc/meminfo", st);
|
||||||
st->cr();
|
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) {
|
void os::Linux::print_ld_preload_file(outputStream* st) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue