From e3fae00fb69f50578003ed0caa0dd80eec451ddd Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Thu, 29 Jan 2004 01:05:58 +0000
Subject: [PATCH] Add note about getting the real memory size on AIX. Leaving
 the work to someone else for now...

---
 src/slurmd/get_mach_stat.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/slurmd/get_mach_stat.c b/src/slurmd/get_mach_stat.c
index 42dbefb1307..a4a0ab3c772 100644
--- a/src/slurmd/get_mach_stat.c
+++ b/src/slurmd/get_mach_stat.c
@@ -169,6 +169,11 @@ get_memory(uint32_t *real_memory)
 	*real_memory = 1;
 	pages = sysconf(_SC_PHYS_PAGES);
 	if (pages < 1) {
+		/* This error is expected on AIX and the real memory size is 
+		 * available only from /dev/kmem at this time, which involves
+		 * a fair bit of code to use. If anyone is interested in
+		 * adding this support, take a look at the program "monitor": 
+		 * http://www.mesa.nl/monitor */
 		error ("get_memory: error running sysconf(_SC_PHYS_PAGES)\n");
 		return EINVAL;
 	} 
-- 
GitLab