src/hotspot/os/aix/os_aix.cpp
changeset 48954 c8a33db795b6
parent 48835 62004f705d27
parent 48876 45b6aae769cc
child 49449 ef5d5d343e2a
equal deleted inserted replaced
48953:67aa88701d46 48954:c8a33db795b6
  1460   st->print_cr("  AIXTHREAD_GUARDPAGES=%s.",
  1460   st->print_cr("  AIXTHREAD_GUARDPAGES=%s.",
  1461       aixthread_guardpages ? aixthread_guardpages : "<unset>");
  1461       aixthread_guardpages ? aixthread_guardpages : "<unset>");
  1462 
  1462 
  1463   os::Aix::meminfo_t mi;
  1463   os::Aix::meminfo_t mi;
  1464   if (os::Aix::get_meminfo(&mi)) {
  1464   if (os::Aix::get_meminfo(&mi)) {
  1465     char buffer[256];
       
  1466     if (os::Aix::on_aix()) {
  1465     if (os::Aix::on_aix()) {
  1467       st->print_cr("physical total : " SIZE_FORMAT, mi.real_total);
  1466       st->print_cr("physical total : " SIZE_FORMAT, mi.real_total);
  1468       st->print_cr("physical free  : " SIZE_FORMAT, mi.real_free);
  1467       st->print_cr("physical free  : " SIZE_FORMAT, mi.real_free);
  1469       st->print_cr("swap total     : " SIZE_FORMAT, mi.pgsp_total);
  1468       st->print_cr("swap total     : " SIZE_FORMAT, mi.pgsp_total);
  1470       st->print_cr("swap free      : " SIZE_FORMAT, mi.pgsp_free);
  1469       st->print_cr("swap free      : " SIZE_FORMAT, mi.pgsp_free);
  1474       // real_free: always 0
  1473       // real_free: always 0
  1475       // pgsp_total: we take the size of the system ASP
  1474       // pgsp_total: we take the size of the system ASP
  1476       // pgsp_free: size of system ASP times percentage of system ASP unused
  1475       // pgsp_free: size of system ASP times percentage of system ASP unused
  1477       st->print_cr("physical total     : " SIZE_FORMAT, mi.real_total);
  1476       st->print_cr("physical total     : " SIZE_FORMAT, mi.real_total);
  1478       st->print_cr("system asp total   : " SIZE_FORMAT, mi.pgsp_total);
  1477       st->print_cr("system asp total   : " SIZE_FORMAT, mi.pgsp_total);
  1479       st->print_cr("%% system asp used : " SIZE_FORMAT,
  1478       st->print_cr("%% system asp used : %.2f",
  1480         mi.pgsp_total ? (100.0f * (mi.pgsp_total - mi.pgsp_free) / mi.pgsp_total) : -1.0f);
  1479         mi.pgsp_total ? (100.0f * (mi.pgsp_total - mi.pgsp_free) / mi.pgsp_total) : -1.0f);
  1481     }
  1480     }
  1482     st->print_raw(buffer);
       
  1483   }
  1481   }
  1484   st->cr();
  1482   st->cr();
  1485 
  1483 
  1486   // Print segments allocated with os::reserve_memory.
  1484   // Print segments allocated with os::reserve_memory.
  1487   st->print_cr("internal virtual memory regions used by vm:");
  1485   st->print_cr("internal virtual memory regions used by vm:");