From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,1ecae923698d43a0 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-01-21 04:53:26 PST Newsgroups: comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!olivea!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: swap error, swap devices, swap status? Message-ID: <1994Jan21.022248.9670@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Organization: Digital Equipment Corporation References: <2hml9u$gif@news.tamu.edu> Distribution: usa Date: Fri, 21 Jan 1994 02:22:48 GMT 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