< prev index next >

src/hotspot/os/aix/os_aix.cpp

Print this page
rev 49972 : [mq]: 8202435-aix-print-program-break


1442   st->print_cr("  Multipage error: %d",
1443     g_multipage_support.error);
1444   st->cr();
1445   st->print_cr("  os::vm_page_size:       %s", describe_pagesize(os::vm_page_size()));
1446 
1447   // print out LDR_CNTRL because it affects the default page sizes
1448   const char* const ldr_cntrl = ::getenv("LDR_CNTRL");
1449   st->print_cr("  LDR_CNTRL=%s.", ldr_cntrl ? ldr_cntrl : "<unset>");
1450 
1451   // Print out EXTSHM because it is an unsupported setting.
1452   const char* const extshm = ::getenv("EXTSHM");
1453   st->print_cr("  EXTSHM=%s.", extshm ? extshm : "<unset>");
1454   if ( (strcmp(extshm, "on") == 0) || (strcmp(extshm, "ON") == 0) ) {
1455     st->print_cr("  *** Unsupported! Please remove EXTSHM from your environment! ***");
1456   }
1457 
1458   // Print out AIXTHREAD_GUARDPAGES because it affects the size of pthread stacks.
1459   const char* const aixthread_guardpages = ::getenv("AIXTHREAD_GUARDPAGES");
1460   st->print_cr("  AIXTHREAD_GUARDPAGES=%s.",
1461       aixthread_guardpages ? aixthread_guardpages : "<unset>");

1462 
1463   os::Aix::meminfo_t mi;
1464   if (os::Aix::get_meminfo(&mi)) {
1465     if (os::Aix::on_aix()) {
1466       st->print_cr("physical total : " SIZE_FORMAT, mi.real_total);
1467       st->print_cr("physical free  : " SIZE_FORMAT, mi.real_free);
1468       st->print_cr("swap total     : " SIZE_FORMAT, mi.pgsp_total);
1469       st->print_cr("swap free      : " SIZE_FORMAT, mi.pgsp_free);
1470     } else {
1471       // PASE - Numbers are result of QWCRSSTS; they mean:
1472       // real_total: Sum of all system pools
1473       // real_free: always 0
1474       // pgsp_total: we take the size of the system ASP
1475       // pgsp_free: size of system ASP times percentage of system ASP unused
1476       st->print_cr("physical total     : " SIZE_FORMAT, mi.real_total);
1477       st->print_cr("system asp total   : " SIZE_FORMAT, mi.pgsp_total);
1478       st->print_cr("%% system asp used : %.2f",
1479         mi.pgsp_total ? (100.0f * (mi.pgsp_total - mi.pgsp_free) / mi.pgsp_total) : -1.0f);
1480     }
1481   }










1482   st->cr();
1483 
1484   // Print segments allocated with os::reserve_memory.
1485   st->print_cr("internal virtual memory regions used by vm:");
1486   vmembk_print_on(st);
1487 }
1488 
1489 // Get a string for the cpuinfo that is a summary of the cpu type
1490 void os::get_summary_cpu_info(char* buf, size_t buflen) {
1491   // read _system_configuration.version
1492   switch (_system_configuration.version) {
1493   case PV_8:
1494     strncpy(buf, "Power PC 8", buflen);
1495     break;
1496   case PV_7:
1497     strncpy(buf, "Power PC 7", buflen);
1498     break;
1499   case PV_6_1:
1500     strncpy(buf, "Power PC 6 DD1.x", buflen);
1501     break;




1442   st->print_cr("  Multipage error: %d",
1443     g_multipage_support.error);
1444   st->cr();
1445   st->print_cr("  os::vm_page_size:       %s", describe_pagesize(os::vm_page_size()));
1446 
1447   // print out LDR_CNTRL because it affects the default page sizes
1448   const char* const ldr_cntrl = ::getenv("LDR_CNTRL");
1449   st->print_cr("  LDR_CNTRL=%s.", ldr_cntrl ? ldr_cntrl : "<unset>");
1450 
1451   // Print out EXTSHM because it is an unsupported setting.
1452   const char* const extshm = ::getenv("EXTSHM");
1453   st->print_cr("  EXTSHM=%s.", extshm ? extshm : "<unset>");
1454   if ( (strcmp(extshm, "on") == 0) || (strcmp(extshm, "ON") == 0) ) {
1455     st->print_cr("  *** Unsupported! Please remove EXTSHM from your environment! ***");
1456   }
1457 
1458   // Print out AIXTHREAD_GUARDPAGES because it affects the size of pthread stacks.
1459   const char* const aixthread_guardpages = ::getenv("AIXTHREAD_GUARDPAGES");
1460   st->print_cr("  AIXTHREAD_GUARDPAGES=%s.",
1461       aixthread_guardpages ? aixthread_guardpages : "<unset>");
1462   st->cr();
1463 
1464   os::Aix::meminfo_t mi;
1465   if (os::Aix::get_meminfo(&mi)) {
1466     if (os::Aix::on_aix()) {
1467       st->print_cr("physical total : " SIZE_FORMAT, mi.real_total);
1468       st->print_cr("physical free  : " SIZE_FORMAT, mi.real_free);
1469       st->print_cr("swap total     : " SIZE_FORMAT, mi.pgsp_total);
1470       st->print_cr("swap free      : " SIZE_FORMAT, mi.pgsp_free);
1471     } else {
1472       // PASE - Numbers are result of QWCRSSTS; they mean:
1473       // real_total: Sum of all system pools
1474       // real_free: always 0
1475       // pgsp_total: we take the size of the system ASP
1476       // pgsp_free: size of system ASP times percentage of system ASP unused
1477       st->print_cr("physical total     : " SIZE_FORMAT, mi.real_total);
1478       st->print_cr("system asp total   : " SIZE_FORMAT, mi.pgsp_total);
1479       st->print_cr("%% system asp used : %.2f",
1480         mi.pgsp_total ? (100.0f * (mi.pgsp_total - mi.pgsp_free) / mi.pgsp_total) : -1.0f);
1481     }
1482   }
1483   st->cr();
1484 
1485   // Print program break.
1486   st->print_cr("Program break at VM startup: " PTR_FORMAT ".", p2i(g_brk_at_startup));
1487   address brk_now = (address)::sbrk(0);
1488   if (brk_now != (address)-1) {
1489     st->print_cr("Program break now          : " PTR_FORMAT " (distance: " SIZE_FORMAT "K).",
1490                  p2i(brk_now), (size_t)((brk_now - g_brk_at_startup) / K));
1491   }
1492   st->print_cr("MaxExpectedDataSegmentSize    : " SIZE_FORMAT "K.", MaxExpectedDataSegmentSize / K);
1493   st->cr();
1494 
1495   // Print segments allocated with os::reserve_memory.
1496   st->print_cr("internal virtual memory regions used by vm:");
1497   vmembk_print_on(st);
1498 }
1499 
1500 // Get a string for the cpuinfo that is a summary of the cpu type
1501 void os::get_summary_cpu_info(char* buf, size_t buflen) {
1502   // read _system_configuration.version
1503   switch (_system_configuration.version) {
1504   case PV_8:
1505     strncpy(buf, "Power PC 8", buflen);
1506     break;
1507   case PV_7:
1508     strncpy(buf, "Power PC 7", buflen);
1509     break;
1510   case PV_6_1:
1511     strncpy(buf, "Power PC 6 DD1.x", buflen);
1512     break;


< prev index next >