Date: Thu, 23 Jun 2005 01:45:53 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 78840 for review Message-ID: <200506230145.j5N1jrCU092476@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=78840 Change 78840 by peter@peter_daintree on 2005/06/23 01:45:13 Don't print the meaningless Maxmem "largest memory address" with the implication that it is how much memory the machine has. Memory remapping makes this a joke. Instead, display physmem as 'usable memory' which is far more useful. It doesn't count the hole that the kernel lives in though. That should be fixed before this is even considered for committing. Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/machdep.c#127 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/machdep.c#127 (text+ko) ==== @@ -187,8 +187,8 @@ #ifdef PERFMON perfmon_init(); #endif - printf("real memory = %ju (%ju MB)\n", ptoa((uintmax_t)Maxmem), - ptoa((uintmax_t)Maxmem) / 1048576); + printf("usable memory = %ju (%ju MB)\n", ptoa((uintmax_t)physmem), + ptoa((uintmax_t)physmem) / 1048576); realmem = Maxmem; /* * Display any holes after the first chunk of extended memory.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506230145.j5N1jrCU092476>