From owner-freebsd-bugs@freebsd.org Tue Nov 10 19:32:59 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF180A2C891 for ; Tue, 10 Nov 2015 19:32:59 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail104.syd.optusnet.com.au (mail104.syd.optusnet.com.au [211.29.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id B40781F06 for ; Tue, 10 Nov 2015 19:32:59 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c211-30-166-197.carlnfd1.nsw.optusnet.com.au (c211-30-166-197.carlnfd1.nsw.optusnet.com.au [211.30.166.197]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id 2F2A4422ECC for ; Wed, 11 Nov 2015 06:15:57 +1100 (AEDT) Date: Wed, 11 Nov 2015 06:15:56 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org cc: freebsd-bugs@freebsd.org Subject: Re: [Bug 2137] [vm] systat(1) total vm statistics are b In-Reply-To: Message-ID: <20151111054046.E3326@besplex.bde.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=cK4dyQqN c=1 sm=1 tr=0 a=KA6XNC2GZCFrdESI5ZmdjQ==:117 a=PO7r1zJSAAAA:8 a=9cW_t1CCXrUA:10 a=JzwRw_2MAAAA:8 a=kj9zAlcOel0A:10 a=6I5d2MoRAAAA:8 a=U4DSmcamXPAbv-4KgnQA:9 a=CjuIK1q_8ugA:10 a=nlX-WmNKIYUA:10 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2015 19:33:00 -0000 On Tue, 10 Nov 2015 a bug that doesn't want a reply wrote: > --- Comment #4 from NGie Cooper --- > This is still sadly valid on 11-CURRENT -- please note that the amount of > memory shown is negative ~2GB :(... > > This affects many people because... having this much memory is commonplace now. Er, this was fixed in 2005 (except for the count line which overflows at 1G pages = 4 TB on x86). > % sysctl hw.physmem > hw.physmem: 3188523008 That is a small memory. freefall has about 8 times as much. But only 24GB. Its real memory can grow 682 times larger before the display overflows, or 2730 times large before the kernel overflows. > % systat -vmstat > > 6 users Load 0.38 0.28 0.82 Nov 10 00:59 > > Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER > Tot Share Tot Share Free in out in out > Act 24340 7768 577584 11968 114780 count > All 27000 7816 -2146M 24652 pages freefall: Tot Share Tot Share Free in out in out Act 985808 25312 7531484 49332 5109528 count 74 All 1108128 123268 8216028 612212 pages 74 The virtual memory sizes will overflow sooner, but this one is only 8 times larger for 'Tot'. It is only about 8M, and can expand by almost a factor of 512 before overflowing. These sizes show very little of the 24GB is "Allocated" -- only about 1GB real and 8GB virtual. The other large counts (in K) on freefall now are about 5M for "wire", 13M for "inact" (vmio) and 5M for "free". That is almost all of the other 24GB of real memory. Bruce