🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.hardware
Article #812

Swapfile compression algorithm (was Re: Nitro)

#812
From: Stuart Ritchie
Date: Fri, 09 Oct 1992 21:51
29 lines
1918 bytes
In article <1992Oct8.064554.3163@cubetech.com> andrew@cubetech.com writes:
>In article <1atfn1INNi4p@stephen.cs.ubc.ca> sritchie@cs.ubc.ca (Stuart Ritchie) writes:
>>andrew@cubetech.com (Andrew Loewenstern) writes:
>>>If you have a Turbo, try turning on the "swaptimizer" (see the swaptab
>>>man page).  The swaptimizer compresses pages before they go out to
>>>disk to reduce disk IO.
>>
>>Does anyone know the compression algorithm used here?
>
>Probably LZW.  Maybe even Huffman, but I would bet on LZW.  The trick
>is to find something that will do a reasonable job as quickly as
>possible.

I wouldn't leave run-length encoding out of that list.  For the right
kind of data, RLE has a good compression/CPU ratio.  The thing is,
what kind of data is normally paged out?  Also, what is the granularity,
single 8K pages or larger multiples?  If you're doing LZW, would you maintain
a dictionary for each single page, or for the whole swapfile, or something
in between?

My intuition says that they're using RLE.  I assume that much of the
paging on low memory and especially colour machines is backing store
for window bitmaps.  Take a look at the windows
on your screen.  On my desktop, I see a high percentage of contiguous
colours (grey and white).  RLE eats this stuff for breakfast.

Maybe NeXT licensed Stacker for their swapfile :~)

Stuart
Technical Details
Message-ID: <1b4us9INN7nv@stephen.cs.ubc.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!destroyer!cs.ubc.ca!stephen.cs.ubc.ca!not-for-mail
References: <1992Oct6.160854.19152@cubetech.com> <1atfn1INNi4p@stephen.cs.ubc.ca> <1992Oct8.064554.3163@cubetech.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!destroyer!cs.ubc.ca!stephen.cs.ubc.ca!not-for-mail
From: sritchie@cs.ubc.ca (Stuart Ritchie)
Newsgroups: comp.sys.next.hardware
Subject: Swapfile compression algorithm (was Re: Nitro)
Date: 9 Oct 1992 14:51:05 -0700
Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
Lines: 29
Message-ID: <1b4us9INN7nv@stephen.cs.ubc.ca>
References: <1992Oct6.160854.19152@cubetech.com> <1atfn1INNi4p@stephen.cs.ubc.ca> <1992Oct8.064554.3163@cubetech.com>
NNTP-Posting-Host: stephen.cs.ubc.ca