From owner-freebsd-current@FreeBSD.ORG Tue Jul 18 16:10:41 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87D9916A4DD for ; Tue, 18 Jul 2006 16:10:41 +0000 (UTC) (envelope-from mime@traveller.cz) Received: from ss.eunet.cz (ss.eunet.cz [193.85.228.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id E573D43D46 for ; Tue, 18 Jul 2006 16:10:40 +0000 (GMT) (envelope-from mime@traveller.cz) Received: from localhost.i.cz (ss.eunet.cz [193.85.228.13]) by ss.eunet.cz (8.13.6/8.13.6) with ESMTP id k6IGAc6i000232 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 18 Jul 2006 18:10:39 +0200 (CEST) (envelope-from mime@traveller.cz) From: Michal Mertl To: freebsd-current@freebsd.org Content-Type: text/plain Date: Tue, 18 Jul 2006 18:10:30 +0200 Message-Id: <1153239030.1108.33.camel@genius.i.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: vmstat's entries type X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 16:10:41 -0000 Recent thread "2Gb SYSVSHM limitation" reminded me of my recent finding - fields in struct vmmeter (src/sys/sys/vmmeter.h) are int and not long. On an AMD64 machine which can easily make milion syscalls/second the counters seem unnecessarily restricted by being 32bit (u_int). It is possible that the change in the type may require changing of some other interfaces (e.g. vm_paging_target() in the same file) but I guess it shouldn't be too bad. P.S.: If a commiter expresses some interest in the subject I can work out a patch as I just love stats with huge numbers :-). Michal