🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #8633

Question about stating swap /dev entries

#8633
From: trinkle
Date: Thu, 27 Jun 1991 20:22
23 lines
1633 bytes
     Does anyone know why stat()ing the block /dev entry for swap
devices takes so long under SunOS 4.1.1?  I wrote a trivial program
that just does a stat() on each argv argument.  When run (via trace)
with /dev/sd* as arguments, it hangs for a second or more each time it
comes to a swap device (e.g. sd0b).  From the activity light on the
front of the drive, it appears the kernel is reading a lot of data
from the disk while stat() is waiting.  The I/O blocksize for the
device is the same as for other block devices.  This does not happen
for the corresponding raw device (e.g. rsd0b), and it does not happen
for any of the other block devices.  It does not happen at all under
SunOS 4.0.3.

     One reason I am asking is that this behavior makes the ofiles
program very slow.  Also, it seems to be a very bizarre behavior.  A
workaround is trivial, just remove the appropriate /dev/sd* entry, but
I would like to know why it is happening.  Does anyone have any
information that might be useful?

Daniel Trinkle			trinkle@cs.purdue.edu
Dept. of Computer Sciences	{backbone}!purdue!trinkle
Purdue University		317-494-7844
West Lafayette, IN 47907
Technical Details
Message-ID: <3971@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: trinkle@cs.purdue.edu
Newsgroups: comp.sys.sun
Subject: Question about stating swap /dev entries
Keywords: No Digest Subjects during Flush
Message-ID: <3971@brchh104.bnr.ca>
Date: 27 Jun 91 20:22:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sunspots, Flush Mode
Lines: 25
Approved: sun-spots@rice.edu
X-Original-Date:    Wed, 12 Jun 91 14:49:38 EST