Date: Sat, 15 Jun 2002 09:46:13 -0700 (PDT) From: Andy Farkas <andyf@speednet.com.au> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/39339: pstat/swapinfo(8) is buggy Message-ID: <200206151646.g5FGkDNG073079@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206151646.g5FGkDNG073079>