Thread View: comp.sys.sun
1 messages
1 total messages
Started by trinkle
Thu, 27 Jun 1991 20:22
Question about stating swap /dev entries
Author: trinkle
Date: Thu, 27 Jun 1991 20:22
Date: Thu, 27 Jun 1991 20:22
23 lines
1633 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads