From owner-freebsd-hackers Tue Aug 19 23:20:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA02286 for hackers-outgoing; Tue, 19 Aug 1997 23:20:54 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id XAA02268 for ; Tue, 19 Aug 1997 23:20:50 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA27764; Wed, 20 Aug 1997 08:20:49 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id IAA24662; Wed, 20 Aug 1997 08:03:42 +0200 (MET DST) Message-ID: <19970820080342.PN21690@uriah.heep.sax.de> Date: Wed, 20 Aug 1997 08:03:42 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Cc: searle@longacre.demon.co.uk (Michael Searle) Subject: Re: Fast measurement of used swap? References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Michael Searle on Aug 19, 1997 17:48:43 +0000 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Michael Searle wrote: > All the programs I've seen that do it use kvm, in fact using the > same piece of code from swapinfo. This is very slow (uses several > thousand syscalls) and also takes time proportional to the amount of > swap (whether this is used or not), so I don't want to do this > unless it's the only way. I'm afraid this is the only way. What is ``systat -vmstat'' using? I would assume this is the definitive reference implementation, since it's a system utility (as opposed to just a port). > (BTW, I'm using 2.1.0 if it matters.) I remember from merging the -current scheme into xperfmon++ that things got worse in later versions. Ah what, i might be confusing this with the network packet counting. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)