Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* swap error, swap devices, swap status?
@ 1994-01-20 19:16 Andrew Duchowski
  1994-01-21  2:22 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Duchowski @ 1994-01-20 19:16 UTC (permalink / raw)


First, let me thank all those that replied to my previous post regarding
swap errors.  In particular, thanks to teneyckl@sdsc.edu and 
janes@signal.dra.hmg.gb for pointing out uerf and rzdisk.  To provide
a short summary, use rzdisk to check for bad blocks on a scsi drive and
also to format if necessary.  uerf provides a log of system-wide errors.

To attempt to fix my swap error problems, I added in a smaller 80M drive
to take over the swap job.  For some reason, after I'd put in the drive,
MAKEDEV'd it, rzdisk'd it, even newfs'd it, swapon wouldn't let
me add it (rz4c) as a swap device.  It kept saying no such device, which
seems odd.  Why?

What I ended up doing was changing my kernel config file to have the 
following:
  config          vmunix  root on rz0a  swap on rz4c    dumps on rz3c
where rz3c was the apparently faulty drive which I used for swap space
before.  Btw, when I did a doconfig, it said that there's an orphaned
dump device.  What exactly does that mean?

The system now seems to be running ok, I can see the swap drive's light
come flashing as I start up many processes.  Previously, I'm sure I'd
be getting swap errors by now.  Which brings me to my question:  How
do I get a look at swap statistics?  That is, how can I check to see
what's going on?  For example, I monitor disk space by checking 'df'
frequently.  The swap drive is not mounted normally  (since the swap
device is not allowed to be unmounted), so I cannot check the usage
of the swap device this way.  Except for looking at the little light,
I can't actually tell how the swap drive is doing (it's quiet, too).
I'd like to get a look at at least stats equivalent to doing a df on
the swap device.

Any help, suggestions, explanations would be greatly appreciated.
Thank you.
-- 
-- Andrew Duchowski                   | Nothing unreal exists.          --
--                                    |                                 --
-- Texas A&M University               |   -- Kiri-Kin-Tha's first law   --
-- andrewd@cs.tamu.edu (NeXTmail ok)  |      of metaphysics             --


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: swap error, swap devices, swap status?
  1994-01-20 19:16 swap error, swap devices, swap status? Andrew Duchowski
@ 1994-01-21  2:22 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1994-01-21  2:22 UTC (permalink / raw)



In article <2hml9u$gif@news.tamu.edu>, andrewd@sematech.tamu.edu (Andrew Duchowski) writes:

>To attempt to fix my swap error problems, I added in a smaller 80M drive
>to take over the swap job.  For some reason, after I'd put in the drive,
>MAKEDEV'd it, rzdisk'd it, even newfs'd it, swapon wouldn't let
>me add it (rz4c) as a swap device.  It kept saying no such device, which
>seems odd.  Why?

ULTRIX requires page/swap device be explicitly configured into
the kernel.  Until you changed the config file below the system
didn't know it could use that device.

>
>What I ended up doing was changing my kernel config file to have the 
>following:
>  config          vmunix  root on rz0a  swap on rz4c    dumps on rz3c
>where rz3c was the apparently faulty drive which I used for swap space
>before.  Btw, when I did a doconfig, it said that there's an orphaned
>dump device.  What exactly does that mean?

It is a warning telling you that the dump device (rz3) isn't the same
as the boot device (rz0).  This might be documented in the "Guide to
System Configuration File Maintenance".  If not, please use the
Reader's Comments page to ask that it be.

>Which brings me to my question:  How
>do I get a look at swap statistics?  That is, how can I check to see
>what's going on?  For example, I monitor disk space by checking 'df'
>frequently.  The swap drive is not mounted normally  (since the swap
>device is not allowed to be unmounted), so I cannot check the usage
>of the swap device this way.  Except for looking at the little light,
>I can't actually tell how the swap drive is doing (it's quiet, too).
>I'd like to get a look at at least stats equivalent to doing a df on
>the swap device.

You can check usage of the space with the pstat(8) command and the
-s option.  The manual page give a reasonable explaination of what
the different numbers mean.  To see the I/O activity on the disk
use iostat.  Finally, vmstat may give a clue to the number of I/O
specifically for paging and swapping.

Note: While people pretty consistently use "swap" for the name of
the device it handles both paging and swapping.  With enough
memory and little enough memory usage, you may not have anything
swapped out.  Enough more memory usage and you'll get paging, but
maybe not swapping.

>-- Andrew Duchowski                   | Nothing unreal exists.          --
>
--
Alan Rollow				alan@nabeth.cxo.dec.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1994-01-21  2:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-20 19:16 swap error, swap devices, swap status? Andrew Duchowski
1994-01-21  2:22 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox