From owner-freebsd-bugs Sat Jun 15 9:50:22 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id ED68237B429 for ; Sat, 15 Jun 2002 09:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5FGo1c27805; Sat, 15 Jun 2002 09:50:01 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 655A337B41D for ; Sat, 15 Jun 2002 09:46:13 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5FGkDhG073080 for ; Sat, 15 Jun 2002 09:46:13 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g5FGkDNG073079; Sat, 15 Jun 2002 09:46:13 -0700 (PDT) Message-Id: <200206151646.g5FGkDNG073079@www.freebsd.org> Date: Sat, 15 Jun 2002 09:46:13 -0700 (PDT) From: Andy Farkas To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/39339: pstat/swapinfo(8) is buggy Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 39339 >Category: bin >Synopsis: pstat/swapinfo(8) is buggy >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 15 09:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Andy Farkas >Release: 4.6-RELEASE >Organization: Speednet >Environment: FreeBSD 4.6-RELEASE #0: Sun Jun 16 00:17:40 EST 2002 >Description: $ grep swap /etc/fstab /dev/ad0s1b none swap sw 0 0 /dev/ad2s1b none swap sw 0 0 /dev/da0s1b none swap sw 0 0 /dev/da1s1b none swap sw 0 0 /dev/da2s1b none swap sw 0 0 $ /usr/sbin/pstat -s Device 1K-blocks Used Avail Capacity Type /dev/ad0s1b 262016 0 262016 0% Interleaved /dev/rad2s1b 262016 0 262016 0% Interleaved /dev/rda0s1b 262016 0 262016 0% Interleaved /dev/rda1s1b 262016 0 262016 0% Interleaved Total 1048064 0 1048064 0% Notice that /dev/da2s1b is not shown. This is the buggy bit. Notice that it displays "raw" devices for only some swap partitions. Also, 'man 8 swapinfo' suggests that "If you supply the option again, as in -ss, the system will display a breakdown of the swap bitmap/radix-tree." $ /usr/sbin/swapinfo -ss swapinfo: illegal option -- s usage: swapinfo [-k] [-M core] [-N system] >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message