TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: RICHARD KETTLEWELL
from: LEW PITCHER
date: 2018-03-01 13:00:00
subject: Re: Swapinfo equivalent s

Richard Kettlewell wrote:

> bob prohaska  writes:
>> Is there a program equivalent to swapinfo for Rasbian? I'm
>> using a Pi3 with the latest version of Rasbian. The machine
>> is configured to use dphys-swapfile, I've added a USB flash
>> swap drive and I'd like to see the effect of adding a second
>> USB flash drive. It's hard to understand what's going on without
>> some utility to compare usage.
>>
>> I've tried using apt-get install swapinfo, but it's not found.
>> Is there something lurking under a different name?
>
> The web suggests that swapinfo is an HP-UX command. Try ‘free’ on Linux.
>
> $ free
>               total        used        free      shared  buff/cache
>               available
> Mem:         444536       26996      123140       35584      294400
> 349188
> Swap:        909308        9020      900288

And, if that's not enough, the OP can
  /sbin/swapon -s
or
  cat /proc/swaps
to get more info (both report the same info)

  ~ $ /sbin/swapon -s
  Filename                        Type            Size    Used    Priority
  /dev/sda3                       partition       31471328        1180    -1

  ~ $ cat /proc/swaps
  Filename                        Type            Size    Used    Priority
  /dev/sda3                       partition       31471328        1180    -1

HTH
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.