From owner-p4-projects@FreeBSD.ORG Thu Jun 23 01:45:54 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B7E5216A420; Thu, 23 Jun 2005 01:45:53 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6004F16A41C for ; Thu, 23 Jun 2005 01:45:53 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D99B43D58 for ; Thu, 23 Jun 2005 01:45:53 +0000 (GMT) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j5N1jrpZ092479 for ; Thu, 23 Jun 2005 01:45:53 GMT (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j5N1jrCU092476 for perforce@freebsd.org; Thu, 23 Jun 2005 01:45:53 GMT (envelope-from peter@freebsd.org) Date: Thu, 23 Jun 2005 01:45:53 GMT Message-Id: <200506230145.j5N1jrCU092476@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 78840 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2005 01:45:55 -0000 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.