diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index 3de28baed46e3efc84f66a82156348b8e6ce3496..6618ee5190c1a7073c5bf18db2b16b38ec70c2bd 100644
--- a/SystemInformation.cxx
+++ b/SystemInformation.cxx
@@ -3471,6 +3471,16 @@ int SystemInformationImplementation::QueryMemory()
       }
     }
   return 0;
+#elif defined(_AIX)
+  long c = sysconf(_SC_AIX_REALMEM);
+  if (c <= 0)
+  {
+    return 0;
+  }
+
+  this->TotalPhysicalMemory = c / 1024;
+
+  return 1;
 #else
   return 0;
 #endif