🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #12600

file I/O performance in 4.0

#12600
From: Mike Caplinger
Date: Sat, 06 May 1989 19:54
22 lines
1721 bytes
We do a lot of file-intensive interactive image processing, like looking
at subsections of 5000x5000 images and so forth.  Under 4.0 with its new
memory-mapped I/O instead of our old friend the buffer pool, running an
I/O intensive job causes every last inactive process to get paged out, so
when the image program exits, the window system goes into a mad frenzy of
paging to get everything back in again.

The question: is there any way to defeat this?  I tried vadvising for
random behavior, but that didn't help (even hurt a bit).  What's actually
happening is that the image process has a fixed amount of the file it
wants to look at, and after it's done with that piece and reads a new one,
the old piece will probably never be looked at again and could just as
well be overwritten.  But the system goes ahead and keeps it around anyway
instead of just reusing it immediately.

Is there something I can do with mmap, perhaps remapping the same pages
over and over? (the problem here is that the pieces of the file I'm
looking at are not sequential, so I would have to do multiple mmaps.)

I really like 4.0, but this area has less than optimal behavior.

	Mike Caplinger, mc@moc.jpl.nasa.gov
Technical Details
Message-ID: <8904282307.AA11230@miranda.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: mc%miranda.uucp@moc.jpl.nasa.gov (Mike Caplinger)
Newsgroups: comp.sys.sun
Subject: file I/O performance in 4.0
Keywords: SunOS
Message-ID: <8904282307.AA11230@miranda.uucp>
Date: 6 May 89 19:54:07 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 22
Approved: Sun-Spots@rice.edu
Original-Date: Fri, 28 Apr 89 16:07:57 MST
X-Sun-Spots-Digest: Volume 7, Issue 273, message 18 of 23