PERFORCE change 78840 for review

Peter Wemm peter at FreeBSD.org
Thu Jun 23 01:45:55 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=78840

Change 78840 by peter at 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.


More information about the p4-projects mailing list